summaryrefslogtreecommitdiffstats
path: root/source3/winbindd/idmap_rid.c
Commit message (Collapse)AuthorAgeFilesLines
* idmap_rid: remove a legacy comment from sid_to_idMichael Adam2014-04-251-4/+0
| | | | | | | | | | | With the introduction of the ID_TYPE_BOTH mapping to idmap_rid, it is not a deficiency but a virtue of the rid backend that it does not care about the existence or type of the sid to be mapped. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* Rename module init functions from samba_init_moduleChristof Schmitt2014-04-021-1/+1
| | | | | | | | | | | | | | | Some modules use samba_init_module as the name for the init functions, others use a name based on the module name. Rename the init functions from samba_init_module, to be consistent across all modules. This change also allows to build idmap_tdb2 and perfcount_test statically. Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Apr 2 08:50:04 CEST 2014 on sn-devel-104
* s3:idmap_rid: force mapping type to ID_TYPE_BOTH for sid->unixid mappingMichael Adam2012-12-031-0/+2
| | | | | | | | | | | | | | | | | This is to remove problems with the same unix-id being used both as a uid and a gid. The rid backend will map a given number to the same SID, no matter whether this is a uid or a gid. This will prime the idmap cache with mappings. The sid-to-u/gid mapping, when not going through the cache, instead checks for the type of the sid and only allows unix ids of the corresponding type. Hence the rid backend will give different results, depending on whether the cache is filled or not. This patch lets the rid backend always create sid->id mappings of type both. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* Revert making public of the samba-module library.Jelmer Vernooij2011-12-031-1/+1
| | | | | | | | | | | | | | | This library was tiny - containing just two public functions than were themselves trivial. The amount of overhead this causes isn't really worth the benefits of sharing the code with other projects like OpenChange. In addition, this code isn't really generically useful anyway, as it can only load from the module path set for Samba at configure time. Adding a new library was breaking the API/ABI anyway, so OpenChange had to be updated to cope with the new situation one way or another. I've added a simpler (compatible) routine for loading modules to OpenChange, which is less than 100 lines of code. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Dec 3 08:36:33 CET 2011 on sn-devel-104
* lib/util Rename samba_init_module -> samba_module_initAndrew Bartlett2011-10-281-1/+1
| | | | | | | This is to provide a cleaner namespace in the public samba plugin functions. Andrew Bartlett
* s3:winbindd/idmap make idmap modules loadable againChristian Ambach2011-10-211-1/+1
| | | | | commit 355b5e3a831415d9bef97 changed the module system to expect 'samba_init_module' as fixed initializer function
* s3-talloc Change TALLOC_ZERO_P() to talloc_zero()Andrew Bartlett2011-06-091-1/+1
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_P isn't standard talloc.
* s3:idmap: remove the params argument from the init functionMichael Adam2011-03-221-2/+1
|
* s3: Remove close_fn from idmap_methodsVolker Lendecke2011-03-061-6/+0
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Mar 6 13:37:13 CET 2011 on sn-devel-104
* s3-idmap-rid: private_data is a talloc child of domVolker Lendecke2011-03-061-1/+0
|
* s3: Remove an unnecessary if-statementVolker Lendecke2011-03-061-3/+1
|
* s3-winbind: Fixed the build of idmap_rid.Andreas Schneider2010-10-151-0/+1
|
* s3-idmap: only include idmap headers where needed.Günther Deschner2010-08-261-0/+1
| | | | Guenther
* s3:idmap_rid: remove a comment that does not apply in that place.Michael Adam2010-08-141-4/+0
| | | | Probably got copied from a different location.
* s3:idmap_rid: remove unused domain_name from the idmap_rid_context.Michael Adam2010-08-141-3/+1
|
* s3:idmap_rid: remove range from idmap_rid_context()Michael Adam2010-08-141-39/+0
| | | | Now, the idmap_domain range that is centrally parsed is used.
* s3:idmap_rid: use range from idmap_domain in idmap_rid_sid_to_id()Michael Adam2010-08-141-8/+8
|
* s3:idmap_rid: use ranges from idmap_domain struct in idmap_rid_id_to_sid()Michael Adam2010-08-141-11/+12
|
* s3:idmap_rid: remove unused talloc context var from idmap_rid_sids_to_unixids()Michael Adam2010-08-141-8/+0
|
* s3:idmap_rid: remove unused talloc context arg from idmap_rid_sid_to_id()Michael Adam2010-08-141-2/+2
|
* s3:idmap_rid: remove unused talloc context var from idmap_rid_unixids_to_sids()Michael Adam2010-08-141-8/+0
|
* s3:idmap_rid: remove unused talloc ctx argument from idmap_rid_id_to_sid()Michael Adam2010-08-141-2/+2
|
* s3:idmap_rid: untangle assignment from check in idmap_rid_initialize()Michael Adam2010-08-141-1/+2
|
* More fix to initialize idmap statusesBo Yang2009-03-021-0/+10
|
* idmap rewriteVolker Lendecke2008-08-121-18/+2
| | | | (This used to be commit 30a180f2fce8cf6a3e5548f6bba453272ba70b33)
* Revert "fix typos"Volker Lendecke2008-07-111-4/+2
| | | | | This reverts commit e0957c6f4b1e81c27fda1de7fb7cbc9c585f5ac9. (This used to be commit 0d2fc3c394d300d906cdcd14f1abf8e6f84beff7)
* fix typosVolker Lendecke2008-07-021-2/+4
| | | | (This used to be commit e0957c6f4b1e81c27fda1de7fb7cbc9c585f5ac9)
* Replace sid_string_static by sid_string_dbg in DEBUGsVolker Lendecke2007-12-151-1/+1
| | | | (This used to be commit bb35e794ec129805e874ceba882bcc1e84791a09)
* r25154: move winbindd code into winbindd/Stefan Metzmacher2007-10-101-0/+267
metze (This used to be commit 3ac7566ae14c48ff9b0f6b232e0ec4b2f73df558)