summaryrefslogtreecommitdiffstats
path: root/source/include/includes.h
Commit message (Collapse)AuthorAgeFilesLines
* r25387: Sync with 3.2.0 svn treeGerald Carter2007-09-271-6/+0
|
* r24962: This merges the winreg rpc server and client code from 3_2,Michael Adam2007-09-051-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | i.e. it removes the hand woven parsing and marshalling code and useses the pidl generated code instead. This removes the files rpc_server/srv_winreg.c, rpc_parse/parse_reg.c, include/rpc_reg.h and registry/reg_frontend_legacy.c. It effectively *copies* the files rpc_client/cli_reg.c and rpc_server/srv_winreg_nt.c. So not only the rewrite of srv_winreg_nt to use the pidl based rpc code ist taken but also Volker's rewrite to use the new reg_api code in r19991 and following. Furthermore, net_rpc_registry.c is copied from 3_2, giving us a full command line regedit replacement in 3_2_0. Michael PS: This patch sums up to 6309 lines in total, but of this, there are 2848 lines removed by the four deleted files alone. Diffstat says: 1098 insertions(+), 4562 deletions(-). So it's not that bad... :-)
* r24809: Consolidate the use of temporary talloc contexts.Volker Lendecke2007-08-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the two functions talloc_stackframe() and talloc_tos(). * When a new talloc stackframe is allocated with talloc_stackframe(), then * the TALLOC_CTX returned with talloc_tos() is reset to that new * frame. Whenever that stack frame is TALLOC_FREE()'ed, then the reverse * happens: The previous talloc_tos() is restored. * * This API is designed to be robust in the sense that if someone forgets to * TALLOC_FREE() a stackframe, then the next outer one correctly cleans up and * resets the talloc_tos(). The original motivation for this patch was to get rid of the sid_string_static & friends buffers. Explicitly passing talloc context everywhere clutters code too much for my taste, so an implicit talloc_tos() is introduced here. Many of these static buffers are replaced by a single static pointer. The intended use would thus be that low-level functions can rather freely push stuff to talloc_tos, the upper layers clean up by freeing the stackframe. The more of these stackframes are used and correctly freed the more exact the memory cleanup happens. This patch removes the main_loop_talloc_ctx, tmp_talloc_ctx and lp_talloc_ctx (did I forget any?) So, never do a tmp_ctx = talloc_init("foo"); anymore, instead, use tmp_ctx = talloc_stackframe() :-) Volker
* r24419: Hm, I think this protoype is not required here.Günther Deschner2007-08-141-5/+0
| | | | Guenther
* r24305: merge from SAMBA_3_2:Stefan Metzmacher2007-08-101-0/+4
| | | | | | | | | patch from Bjoern JAcke <bj@SerNet.DE>: attached patches add EA support for Solaris. If no one disagrees, can someone check this in please? metze
* r23971: Prevent build failures.Günther Deschner2007-07-191-1/+5
| | | | Guenther
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-07-101-2/+1
|
* r23780: Find and fix more GPL2 -> GPL3.Jeremy Allison2007-07-091-1/+1
| | | | Jeremy.
* r23732: removed reference to non-existent structureHerb Lewis2007-07-061-2/+0
|
* r23646: Generalize our internal keytab handling to support a broader range ↵Günther Deschner2007-06-291-0/+4
| | | | | | | | | | of default keytabnames (like "ANY:FILE:/etc/krb5.keytab,krb4:/etc/srvtab"). This also fixes keytab support with Heimdal (which supports the WRFILE pragma as well now). Guenther
* r23582: Fix event based krb5 ticket refreshing in winbindd.Günther Deschner2007-06-221-1/+1
| | | | | | | We were incorrectly using the renew_till timestamp instead of the renewed ticket's endtime to calculate the next refreshing date. Guenther
* r23509: This activates the global options from the registry in loadparm. Michael Adam2007-06-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The global options are stored as values in the subkey "global" of the SMBCONF registry key. The activation is accomplished in smb.conf though a new special semantic of the "include" parameter: "include = registry" triggers the processing of the registry global options exactly at the position of the include statement. Options read from the registry take the same precedence as parameters loaded from a file via include. Need to reload the registry globals is detected by watching the tdb sequence number. Registry shares are automatically activated when the registry globals are processed. So a "registry only" configuration can be realized by an smb.conf that looks as follows: ================================ [global] include = registry ================================ The global options and registry shares can be conveniently edited with the "net conf" utility. Caveat: A possible pitfall consists in using "include = registry" together with the "lock directory" directive in the registry. This problem will be addressed in the next time. Note on the code: Processing of the registry options is accomplished by a function process_registry_globals() in loadparm.c The current version is only an interim solution: It is handcoded instead of using the infrastructure of reg_api.c. The reason for this is that using reg_api still has too large linker dependencies, bloating virtually all targets by PASSDB_OBJ, SMBLDAP_OBJ, GROUPDB_OBJ and LDB stuff. A version of process_registry_globals that uses reg_api is included but commented out. The goal is to eventually refactor and restructure the registry code so that one can use the reg_api to access only the registry tdb and not link all the dynamic backends with all their linking implications.
* r23410: Merge the core of the cluster code.Volker Lendecke2007-06-101-0/+2
| | | | | | | | | | | | | | | | I'm 100% certain I've forgotten to merge something, but the main code should be in. It's mainly in dbwrap_ctdb.c, ctdbd_conn.c and messages_ctdbd.c. There should be no changes to the non-cluster case, it does survive make test on my laptop. It survives some very basic tests with ctdbd enables, I did not do the full test suite for clusters yet. Phew... Volker
* r23329: merge from SAMBA_3_0:Stefan Metzmacher2007-06-041-2/+2
| | | | | | | don't typedef ber_tag_t when it's already done by openldap headers on HP-UX (lber_types.h defines _LBER_TYPES_H). metze
* r23308: merge from SAMBA_3_0:Stefan Metzmacher2007-06-021-0/+3
| | | | | | fix build on hosts with missing readahead prototype metze
* r23277: This might break the shutdown script functionality.Gerald Carter2007-05-311-1/+2
| | | | | | | | I think it is safe for now. * Merge the initshutdown code from SAMBA_3_0 * Replace _reg_close() with the pidl generate winreg_CloseKey() client and server code
* r23275: Have not tested this (I don't think the dfs RPC code has even Gerald Carter2007-05-311-1/+0
| | | | | really been considered stable). merge the complete netdfs pipe support from SAMBA_3_0.
* r23273: Replace hand written CloseEventlog() with pidl generated stubGerald Carter2007-05-311-0/+1
|
* r23270: Replace hand code CloseServiceHandle() with the pidl generated stubsGerald Carter2007-05-311-1/+5
| | | | (client and server)
* r23246: Convert all of the exist echo pipe calls to use Gerald Carter2007-05-301-1/+0
| | | | the pidl generated stubs
* r23245: convert the echo_AddOne() rpc call to use the generated stubGerald Carter2007-05-301-0/+1
|
* r23055: Rewrite messages.c to use auto-generated marshalling in the tdb. I'mVolker Lendecke2007-05-211-1/+1
| | | | | | | | | | | doing this because for the clustering the marshalling is needed in more than one place, so I wanted a decent routine to marshall a message_rec struct which was not there before. Tridge, this seems about the same speed as it used to be before, the librpc/ndr overhead in my tests was under the noise. Volker
* r22946: remove reference to backup_tdb()Stefan Metzmacher2007-05-161-1/+0
| | | | metze
* r22939: Merge -r22468 from 3_0.Günther Deschner2007-05-161-2/+0
| | | | Guenther
* r22857: merge "net ads keytab list" from 3_0.Günther Deschner2007-05-141-0/+5
| | | | Guenther
* r22796: Add security descriptor to GROUP_POLICY_OBJECT structure (in ↵Günther Deschner2007-05-111-1/+1
| | | | | | | | preparation of adding GPO security filtering for libgpo). Guenther
* r22775: For the cluster code I've developed a wrapper around tdb to put ↵Volker Lendecke2007-05-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | different database backends in place dynamically. The main abstractions are db_context and db_record, it should be mainly self-describing, see include/dbwrap.h. You open the db just as you would open a tdb, this time with db_open(). If you want to fetch a record, just do the db->fetch() call, if you want to do operations on it, you need to get it with fetch_locked(). I added dbwrap_file.c (not heavily tested lately) as an example for what can be done with that abstraction, uses a file per key. So if anybody is willing to shape that up, we might have a chance on reiserfs again.... :-) This abstraction works fine for brlock.tdb, locking.tdb, connections.tdb and sessionid.tdb. It should work fine for the others as well, I just did not yet get around to convert them. If nobody loudly screams NO, then I will import the code that uses this soon. Volker
* r22370: Merge -r21777:21779 from 3_0 to fix the build with Heimdal 0.8.Günther Deschner2007-04-191-2/+5
| | | | Guenther
* r22108: Fix from <don.mccall@hp.com> to try and fix the HPUX builds.Jeremy Allison2007-04-061-2/+2
| | | | Jeremy.
* r22049: HPUX build fixes from <don.mccall@hp.com>.Jeremy Allison2007-04-021-0/+9
| | | | Jeremy.
* r22003: Fix from Jiri.Sasek@Sun.COM to wrap our krb5_locate_kdcJeremy Allison2007-03-281-0/+3
| | | | | | call as smb_krb5_locate_kdc to prevent incorrect linking and crashes on Solaris. Jeremy.
* r21845: Refactor the sessionsetupX code a little to allow usJeremy Allison2007-03-151-0/+4
| | | | | | | | | | | to return a NT_STATUS_TIME_DIFFERENCE_AT_DC error to a client when there's clock skew. Will help people debug this. Prepare us for being able to return the correct sessionsetupX "NT_STATUS_MORE_PROCESSING_REQUIRED" error with associated krb5 clock skew error to allow clients to re-sync time with us when we're eventually able to be a KDC. Jeremy.
* r21322: No feedback means consent :-)Volker Lendecke2007-02-131-0/+1
| | | | | | | | | | | It does not matter if I screw up 3.0.25 or 3.0.26 with this, so do it rather sooner than later. Add the notify support that already exists in 3_0 to 3_0_25. If you want to see this patch dissected into digestable parts, look at 3_0, revisions at about 20800 and following. Volker
* r21241: Merge from 3_0:Günther Deschner2007-02-081-1/+1
| | | | | | | | | | | | | | | | | | | Fix longstanding Bug #4009. For the winbind cached ADS LDAP connection handling (ads_cached_connection()) we were (incorrectly) assuming that the service ticket lifetime equaled the tgt lifetime. For setups where the service ticket just lives 10 minutes, we were leaving hundreds of LDAP connections in CLOSE_WAIT state, until we fail to service entirely with "Too many open files". Also sequence_number() in winbindd_ads.c needs to delete the cached LDAP connection after the ads_do_search_retry() has failed to submit the search request (although the bind succeeded (returning an expired service ticket that we cannot delete from the memory cred cache - this will get fixed later)). Guenther
* r21186: * Merge nss_info and idmap interface changes to current Gerald Carter2007-02-061-0/+2
| | | | | | stable branch * Also include pam_winbind changes for multiple groups in the require-membership-of parameter
* r21110: Fix kinit with Heimdal (Bug #4226).Günther Deschner2007-02-011-0/+2
| | | | Guenther
* r20501: Check in config.h fix from Michael Adam <ma@sernet.de>Volker Lendecke2007-01-031-0/+8
|
* r20387: merge from samba3:Stefan Metzmacher2006-12-281-6/+0
| | | | | | | | | remove unneeded dlopen related configure checks and includes this is done by libreplace... this hopefully fixes the build on HPUX 11.00 metze
* r19815: Minimal merge of wkssvc client and server auto-generated code.Gerald Carter2006-11-211-5/+0
|\ | | | | | | | | | | | | | | | | This is to allow for more ndr testing. The wkssvc pipe has a minimal set of operations (only one we actually supported). I think the 3.0.24 merge is done now. The remaining pieces are the full unfinished IDL support and the security descriptor structure changes.
| * r19808: remove old smbwrapper referencesGerald Carter2006-11-211-4/+0
| |
* | r19810: more merge work....does not compile currently. Working on smbd mergeGerald Carter2006-11-211-0/+1
| |
* | r19796: * copy libgpo and grab libads changesGerald Carter2006-11-191-0/+5
|\| | | | | | | | | * update net to include dns and gpo commands * include server name rap call in net
* | r19767: Intermediate checking (does not yet compile)Gerald Carter2006-11-181-419/+37
|\| | | | | | | | | | | | | | | | | * bring over lib/{ldb,replace,talloc,socket_wrapper} * bring over libaddns, tdb * remove smbwrappper * grab Makefile and configure.in from SAMBA_3_0 * Start dealing with snum -> share struct issues * Start merging filename mangling code
| * r19758: remove the LDAP_SCOPE_ONELEVEL define (not needed after svnup)Gerald Carter2006-11-171-3/+0
| |
| * r19754: * When using a krb5 session setup, we don't fill in the server_nameGerald Carter2006-11-161-0/+3
| | | | | | | | | | | | | | string the clis_state struct. So call saf_store() after we have the short domain name in the lsa_query_inof_policy code. * Remove unused server string in saf_delete()
| * r19429: moved tdb/common/tdbutil.c into lib/util_tdb.cAndrew Tridgell2006-10-201-1/+1
| | | | | | | | see discussion on samba-technical
| * r19270: Stop depending on internal MIT symbols. These are private on MacOSJames Peach2006-10-131-1/+8
| | | | | | | | | | | | | | x, so we can't get at them even if we wanted to. Kerberos experts, please take a look to make sure I've done the right thing!
| * r19240: move the NO_CONFIG_H check to libreplaceStefan Metzmacher2006-10-111-2/+0
| | | | | | | | | | | | | | this fixes the quota detection configure and maybe more configure tests metze
| * r19026: we don't need this twiceStefan Metzmacher2006-10-021-8/+0
| | | | | | | | metze
| * r18963: * Move parts of registry headers that were still in Gerald Carter2006-09-271-3/+0
| | | | | | | | | | use to reg_objects.h * Remove unused rpc headers