summaryrefslogtreecommitdiff
path: root/source3/winbindd/idmap_tdb.c
AgeCommit message (Collapse)AuthorFilesLines
2012-05-01s3:winbindd/idmap_tdb: use idmap_tdb_common codeChristian Ambach1-558/+18
2012-01-18s3: Add a "lock_order" argument to db_openVolker Lendecke1-1/+2
This will be used to enforce a lock hierarchy between the databases. We have seen deadlocks between locking.tdb, brlock.tdb, serverid.tdb and notify*.tdb. These should be fixed by refusing a dbwrap_fetch_locked that does not follow a defined lock hierarchy.
2011-10-11s3:dbwrap: change dbwrap_store_uint32() to NTSTATUS return typeMichael Adam1-7/+6
for consistency and better error propagation Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Tue Oct 11 15:51:00 CEST 2011 on sn-devel-104
2011-10-11s3:dbwrap: change dbwrap_store_int32() to NTSTATUS return typeMichael Adam1-6/+12
for consistency and better error propagation
2011-10-11s3:dbwrap: change dbwrap_fetch_uint32() to NTSTATUS return type (instead of ↵Michael Adam1-6/+5
bool) for consistency and better error propagation
2011-10-11s3:dbwrap: convert dbwrap_fetch_int32() to NTSTATUS return codeMichael Adam1-4/+18
Return the int32 value retrieved from the db by reference. Before this, return value "-1" was used as a error indication, but it could also be a valid value from the database.
2011-10-11s3:idmap_tdb: fix hwm-handling to use uint32 consistentlyMichael Adam1-8/+10
The initialization code user int32, later writes used uint32...
2011-10-11s3:idmap: convert idmap_tdb to use dbwrap wrapper functions.Michael Adam1-22/+34
Avoid direct use of the db_record and db_context structs.
2011-10-11s3:dbwrap: convert dbwrap_fetch(), dbwrap_fetch_bystring() and ↵Michael Adam1-4/+4
dbwrap_fetch_bystring_upper() to NTSTATUS
2011-07-29s3:dbwrap: move all .c and .h files of dbwrap to lib/dbwrap/Michael Adam1-1/+1
Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Fri Jul 29 13:34:22 CEST 2011 on sn-devel-104
2011-07-29s3:dbwrap: move db_open() to a file dbwrap_open.c of its own.Michael Adam1-0/+1
Also start new folder lib/dbwrap/ where dbwrap_open.c is stored and make the fallbacke implementation functoins non-static and create a dbwrap_private.h header file that contains their prototypes.
2011-06-20source3/winbindd/idmap_tdb.c: tdb2 support for wrong endian.Rusty Russell1-2/+16
TDB has no idea of endian itself, but it knows whether the TDB is the same endian as the current machine, so we should use that rather than implementing TDB_BIGENDIAN in tdb2. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-05-06s3: only include tdb headers where needed.Günther Deschner1-0/+1
Guenther
2011-03-30s3-includes: only include system/filesys.h when needed.Günther Deschner1-0/+1
Guenther
2011-03-27s3: Fix Coverity ID 2296: UNUSED_VALUEVolker Lendecke1-3/+0
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Mar 27 12:12:35 CEST 2011 on sn-devel-104
2011-03-22s3:idmap: remove the params argument from the init functionMichael Adam1-1/+1
2011-03-06s3: Remove close_fn from idmap_methodsVolker Lendecke1-6/+0
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Mar 6 13:37:13 CET 2011 on sn-devel-104
2011-03-06s3-idmap-tdb: private_data is a talloc child of domVolker Lendecke1-7/+0
2011-02-27s3: Fix some nonempty blank linesVolker Lendecke1-9/+9
2010-11-02s3: Fix a typo in a DEBUG msgVolker Lendecke1-1/+1
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Nov 2 13:13:39 UTC 2010 on sn-devel-104
2010-10-12libcli/security Provide a common, top level libcli/security/security.hAndrew Bartlett1-0/+1
This will reduce the noise from merges of the rest of the libcli/security code, without this commit changing what code is actually used. This includes (along with other security headers) dom_sid.h and security_token.h Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
2010-08-26s3-build: use dbwrap.h only where needed.Günther Deschner1-0/+1
Guenther
2010-08-26s3-idmap: only include idmap headers where needed.Günther Deschner1-0/+1
Guenther
2010-08-19s3-idmap: fix uninitialized variable in idmap_tdb_sids_to_unixids_action().Günther Deschner1-1/+1
Michael, please check. Guenther
2010-08-14s3:idmap_tdb: use idmap_rw_new_mapping in idmap_tdb_new_mappingMichael Adam1-34/+3
2010-08-14s3:idmap_tdb: add idmap_rw_ops to idmap_tdb_context and initialize them in ↵Michael Adam1-0/+15
init_db
2010-08-14s3:idmap_tdb: add my (C)Michael Adam1-0/+1
2010-08-14s3:idmap_tdb: properly initialize the idmap_tdb context with zeroMichael Adam1-1/+1
2010-08-14s3:idmap_tdb: prevent opening the idmap db more than once.Michael Adam1-0/+5
2010-08-14s3:idmap_tdb: rewrite sids_to_unixids to create mappings for unmapped sids.Michael Adam1-19/+72
2010-08-14s3:idmap_tdb: add a idmap_tdb_new_mapping().Michael Adam1-0/+52
High level function to create a new mapping for an unmapped sid. This builds logic that used to reside in the top level idmap code in the backend. To be called inside a transaction to guarantee atomicity of the operation.
2010-08-14s3:idmap_tdb: move the set_mapping code upMichael Adam1-103/+104
2010-08-14s3:idmap_tdb: use transaction wrapper for idmap_tdb_set_mapping().Michael Adam1-38/+46
2010-08-14s3:idmap_tdb: remove unused struct idmap_tdb_state.Michael Adam1-8/+0
2010-08-14s3:idmap_tdb: remove unused idmap_alloc_dbMichael Adam1-2/+0
2010-08-14s3:idmap_tdb: remove unused idmap_tdb_alloc_close().Michael Adam1-10/+0
2010-08-14s3:idmap_tdb: give idmap_domain arg to idmap_tdb_allocate_id and use ctx->dbMichael Adam1-5/+9
instead of alloc_db
2010-08-14s3:idmap_tdb: call idmap_tdb_init_hwm() from idmap_tdb_open_db().Michael Adam1-1/+2
2010-08-14s3:idmap_tdb: move idmap_tdb_init_hwm up.Michael Adam1-62/+58
2010-08-14s3:idmap_tdb: remove unused idmap_tdb_load_ranges()Michael Adam1-35/+0
The idmap_tdb_state (which should actually be called idmap_tdb_alloc_context) is being removed since the alloc part is combined with the id mapping part.
2010-08-14s3:idmap_tdb: have idmap_tdb_open_db take an idmap_domain struct as argumentMichael Adam1-18/+11
the other arguments are not needed any more and are removed.
2010-08-14s3:idmap_tdb: rename idmap_tdb_alloc_init->idmap_tdb_init_hwm and use db ↵Michael Adam1-24/+13
from idmap_tdb_context instead of the special idmap_alloc_db
2010-08-14s3:idmap_tdb: move definition of struct idmap_tdb_context up.Michael Adam1-4/+4
2010-08-14s3:idmap_tdb: remove filter_low_id,filter_high_id from idmap_tdb_contextMichael Adam1-57/+3
These are now taken from the idmap_domain struct.
2010-08-14s3:idmap_tdb: add idmap domain arg to idmap_tdb_upgrade and use domain rangeMichael Adam1-4/+4
2010-08-14s3:idmap_tdb: use filter from idmap_domain rather than from idmap_tdb_contextMichael Adam1-6/+4
2010-08-14s3:idmap_tdb: give idmap domain argument to idmap_tdb_sid_to_idMichael Adam1-2/+5
instead of idmap_tdb_context. This is in preparation of using the filter from the idmap_domain struct.
2010-08-14s3:idmap_tdb: give idmap domain argument to idmap_tdb_id_to_sidMichael Adam1-3/+6
instead of idmap_tdb_context. This is in preparation of using the filter from the idmap_domain struct.
2010-08-14s3:idmap_tdb: implement allocate_id in idmap methods for tdb backendMichael Adam1-0/+1
2010-08-14s3:idmap_tdb: add idmap_tdb_get_new_id() to allocate a new id given a domainMichael Adam1-0/+24
Currently this only works with the default domain, calling out to idmap_tdb_allocate_id(). In the future this will be extended to also work for non-default domains.