summaryrefslogtreecommitdiff
path: root/source3/winbindd/idmap_tdb.c
AgeCommit message (Collapse)AuthorFilesLines
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.
2010-08-14s3:idmap_tdb: convert idmap_tdb_allocate_id() to use transaction wrappersMichael Adam1-45/+68
2010-08-14s3:idmap_tdb: remove an extra blank lineMichael Adam1-1/+0
2010-08-14s3:idmap_tdb: remove unused idmap_alloc_methodsMichael Adam1-7/+0
2010-08-14s3:idmap_tdb: remove unused idmap_alloc_tdb_init()Michael Adam1-5/+0
2010-08-14s3:idmap_tdb: don't call idmap_alloc_tdb_init in idmap_tdb_initMichael Adam1-7/+0
The registering of alloc backends is being removed. The idmap backends are responsible for initializing their alloc code on their own if necessary.
2010-08-14s3:idmap_tdb: make idmap_alloc_tdb_init() static.Michael Adam1-1/+1
2010-08-14s3:idmap: remove the set_mapping method from the idmap APIMichael Adam1-1/+0
2010-08-14s3:idmap: remove unused method set_id_hwm from idmap APIMichael Adam1-45/+0
Michael
2010-08-14s3:idmap: remove unused alloc method get_id_hwm from idmap APIMichael Adam1-46/+0
Michael
2010-08-14s3:idmap: remove unused method dump_data() from the idmap APIMichael Adam1-94/+0
Michael
2010-08-14s3:idmap: remove the remove_mapping method from API and backendsMichael Adam1-119/+0
Michael
2010-05-21s3:dom_sid Global replace of DOM_SID with struct dom_sidAndrew Bartlett1-2/+2
This matches the structure that new code is being written to, and removes one more of the old-style named structures, and the need to know that is is just an alias for struct dom_sid. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-17s3:winbind:idmap_tdb: don't check ranges when an invalid entry was found.Michael Adam1-0/+1
There is no point in checking the ranges this if the record found had an invalid/unknown type: the mapping is not filled in. If it were initialized to some defaults before, the check just might replace the status NT_STATUS_INTERNAL_DB_ERROR with a NT_STATUS_NONE_MAPPED, which is not as precise.
2010-01-10s3: Replace most calls to sid_append_rid() by sid_compose()Volker Lendecke1-2/+1
2009-07-29s3:winbind: use transaction store in idmap_tdb_set_hwm() to store new hwm.Michael Adam1-5/+4
Btw, the previous code must have failed to warn when exceeding the high_hwm, because it overwrote hwm with the return value of the dbwrap_store_uint32(), which does not return the hwm but 0 or -1, depending on success. Michael
2009-07-29s3:winbind: fix typo in debug message in idmap_tdb.Michael Adam1-1/+1
Michael
2009-07-29s3:winbind: fix typo in debugmessage of idmap_tdbMichael Adam1-1/+1
Michael
2009-07-29s3:dbwrap: change dbwrap_change_uint32_atomic() to return NTSTATUS not uint32_t.Michael Adam1-4/+5
Michael
2009-05-27s3:idmap_tdb: add an entry debug statment to idmap_tdb_db_init()Michael Adam1-0/+2
Michael
2009-05-27s3:idmap_tdb: filter out of range mappings in default idmap configMichael Adam1-16/+57
This fixes bug #6415 Michael
2009-03-02More fix to initialize idmap statusesBo Yang1-0/+10
2009-02-06s3:idmap_tdb: simplify talloc usage with temp context from talloc_stackframeMichael Adam1-6/+2
Michael
2009-02-06s3:idmap_tdb: refactor out new function idmap_tdb_load_ranges()Michael Adam1-22/+30
Michael
2009-02-06s3:idmap_tdb: use transactions in idmap_tdb_allocate_id()Michael Adam1-1/+18
Michael
2009-02-06s3:idmap_tdb: add tmp talloc ctx to idmap_tdb_sid_to_id and remove an fstringMichael Adam1-7/+5
Michael
2009-01-30s3:idmap: move IDMAP_VERSION to the idmap tdb backend, where it belogns.Michael Adam1-0/+5
Michael
2009-01-19s3:idmap_tdb: convert to the dbwrap apiStefan Metzmacher1-244/+223
metze
2008-11-18Clean-up various trailing space and >80 column lines.Steven Danneman1-19/+30
2008-11-18Added ability to remove id mappings in wbinfo and libwbclient.Steven Danneman1-2/+12
The idmap_tdb backend already provides an interface to remove existing id mappings. This commit plumbs that ability up through, winbindd, libwbclient, and wbinfo. Added new winbindd command: WINBINDD_REMOVE_MAPPING Added new libwbclient interfaces: wbcRemoveUidMapping() and wbcRemoveGidMapping() Added new wbinfo options: --remove-uid-mapping --remove-gid-mapping Increased libwbclient version to 0.2 Increased winbind interface version to 20
2008-10-18Use separate make variables for libutil and libcrypto.Jelmer Vernooij1-1/+1
2008-08-12Remove two unused variablesVolker Lendecke1-2/+1
(This used to be commit 257b0401ee675b6b7eddf2b46a0f8115940e6640)
2008-08-12Remove "idmap alloc config : range" parameterVolker Lendecke1-47/+28
This was overwritten by "idmap uid/gid" anyway. These are now the range parameters for the alloc backend. (This used to be commit d563a7b80dc3e759069db2cd54d596a1b8c55191)