summaryrefslogtreecommitdiffstats
path: root/source3/winbindd/idmap.c
Commit message (Collapse)AuthorAgeFilesLines
* s3-talloc Change TALLOC_ARRAY() to talloc_array()Andrew Bartlett2011-06-091-1/+1
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ARRAY isn't standard talloc.
* s3: Make idmap_find_domain publicVolker Lendecke2011-04-131-1/+1
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3-passdb: use passdb headers where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3:idmap: make sure that the id mapping system is initialized for first accessMichael Adam2011-03-221-0/+4
|
* s3:idmap: remove (now) unneeded function parse_idmap_module()Michael Adam2011-03-221-38/+0
|
* s3:idmap: simply call idmap_init_named_domain for "*" in ↵Michael Adam2011-03-221-41/+14
| | | | | | | idmap_init_default_domain The default domain "*" is now treated exactly the same as other explicitly configured domains.
* s3:idmap: remove passdb argument from idmap_init_domain()Michael Adam2011-03-221-5/+3
|
* s3:idmap: remove the params argument from the init functionMichael Adam2011-03-221-1/+1
|
* s3:idmap: remove the special treatment of the default domain "*" from ↵Michael Adam2011-03-221-65/+23
| | | | idmap_init_domain
* s3: Remove close_fn from idmap_methodsVolker Lendecke2011-03-061-14/+0
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Mar 6 13:37:13 CET 2011 on sn-devel-104
* s3:winbindd/idmap.c: add my CMichael Adam2011-01-031-0/+1
|
* Second part of fix for bug #7777 - When requesting lookups for BUILTIN sids, ↵Jeremy Allison2010-11-081-1/+3
| | | | | | | | | | | | winbindd allocates new uids/gids in error. Ensure we return after calling passdb for SID lookups for which we are authoritative. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Nov 8 22:24:34 UTC 2010 on sn-devel-104
* First part of fix for bug #7777 - When requesting lookups for BUILTIN sids, ↵Jeremy Allison2010-11-081-0/+10
| | | | | | | | | winbindd allocates new uids/gids in error. Ensure idmap_init_passdb_domain() correctly initialized the default domain first. Jeremy.
* s3-idmap: only include idmap headers where needed.Günther Deschner2010-08-261-0/+1
| | | | Guenther
* s3:idmap: fix sid_to_unixid for builtin and own domain.Michael Adam2010-08-141-2/+12
| | | | | | | The old idmap code created a new mapping if asking the backends failed. Now with the new layering, if passdb (which is used for our own domain and builtin), then we need to continue and ask the backends, giving tdb or whatever the default backend is a chance to create a mapping.
* s3:idmap: fix spacing/indentationMichael Adam2010-08-141-2/+2
|
* s3:idmap: don't check range for passdb idmap domainMichael Adam2010-08-141-21/+30
|
* s3:idmap: parse ranges and "read only" in idmap_init_domain().Michael Adam2010-08-141-0/+78
|
* s3:idmap: remove idmap_alloc_context from idmap.cMichael Adam2010-08-141-14/+0
| | | | | | | | The registering of alloc backends is being removed. The idmap backends are responsible for initializing their alloc code on their own if necessary. No list of alloc backends is maintained any more in the top level.
* s3:idmap: remove the alloc methods list from idmap.cMichael Adam2010-08-141-12/+0
| | | | | | | | The registering of alloc backends is being removed. The idmap backends are responsible for initializing their alloc code on their own if necessary. No list of alloc backends is maintained any more in the top level.
* s3:idmap: remove unused get_alloc_methods().Michael Adam2010-08-141-13/+0
|
* s3:idmap: remove unused smb_register_idmap_alloc().Michael Adam2010-08-141-49/+0
| | | | | | The registering of alloc backends is being removed. The idmap backends are responsible for initializing their alloc code on their own if necessary.
* s3:idmap: remove unused idmap_alloc_init().Michael Adam2010-08-141-79/+0
|
* s3:idmap: use allocate_id() from the idmap_methods in idmap_allocate_unixid()Michael Adam2010-08-141-4/+12
| | | | The idmap alloc methods are being removed.
* s3:idmap: factor out common code of idmap_allocate_uid|gid()Michael Adam2010-08-141-10/+9
| | | | into new idmap_allocate_unixid().
* s3:idmap: remove idmap_new_mapping() - now implemented in the backendsMichael Adam2010-08-141-68/+0
|
* s3:idmap: remove unused idmap_remove_mapping().Michael Adam2010-08-141-17/+0
| | | | Michael
* s3:idmap: remove unused idmap_set_mapping().Michael Adam2010-08-141-17/+0
| | | | Michael
* s3:idmap: remove unused idmap_set_gid_hwm()Michael Adam2010-08-141-13/+0
| | | | Michael
* s3:idmap: remove unused idmap_set_uid_hwm()Michael Adam2010-08-141-13/+0
| | | | Michael
* s3:winbindd: make sure we only call static_init_idmap onceStefan Metzmacher2010-06-011-7/+18
| | | | | | metze Signed-off-by: Michael Adam <obnox@samba.org>
* s3:winbind Ensure we always init idmap_passdb before we use itAndrew Bartlett2010-06-011-0/+4
| | | | | | | | | | It seems that it is possible for idmap_init_passdb_domain() to be run before idmap_init_domain(), so ensure we run the static init functions in both. Andrew Bartlett Signed-off-by: Michael Adam <obnox@samba.org>
* s3:idmap: fix a comment typoMichael Adam2009-05-271-1/+1
| | | | Michael
* s3-idmap: Fix bug #6286: Call init function for builtin idmap modules before ↵Günther Deschner2009-04-241-0/+2
| | | | | | | | probing for them as shared modules. idmap-gurus of the world, please check. Guenther
* Alternative fix for 45db33e73 and 0d443ae7931Volker Lendecke2009-01-021-1/+2
| | | | | | | | | | | | | Simo is right, we need to ask passdb first. At least this fixes a nasty to find NT_STATUS_ACCESS_DENIED problem in the build farm for the test run I just did on host "opi". Michael, can you re-check if this also fixes the error you found, leading to the two fixes? Thanks, Volker
* Revert "s:Fix uid_to_sid mapping when the idmap cache is empty."Volker Lendecke2009-01-021-7/+8
| | | | This reverts commit 9a9b64dbdfce4414ada22d4f882c8c757b5813e1.
* Revert "s3:idmap: Remove passd check from idmap_backends_unixid_to_sid()."Volker Lendecke2009-01-021-0/+9
| | | | This reverts commit 45db33e73262d8e195a46fb96405dfb3dc43d6bc.
* s3:idmap: Remove passd check from idmap_backends_unixid_to_sid().Michael Adam2008-12-251-9/+0
| | | | | | | | | | | | | As noted by Metzy, it makes no sense here to check id->sid. What is worse, this might even be passed in uninitialized. This still fixes the bug for me (of course), but we might need to check, if another special handling of passdb is needed (possibly changing from constant return code NT_STATUS_OK...) Michael Signed-off-by: Michael Adam <obnox@samba.org>
* s:Fix uid_to_sid mapping when the idmap cache is empty.Michael Adam2008-12-251-8/+7
| | | | | | | | | | | | | | | | | This failed for backends other than passed, since idmap_backends_unixid_to_sid() always asked passdb first, which returned Success no matter whether a mapping was found or not. One effect wast that getpwuid failed after "net cache flush". Only after filling the cache with a getpwnam call it succeeded. This fix makes the behaviour of idmap_backends_unixid_to_sid() exactly the same as that of idmap_backends_sid_to_unixid() Michael Signed-off-by: Michael Adam <obnox@samba.org>
* s3:winbindd/idmap: add diagnostic entry debug msg to ↵Michael Adam2008-12-011-0/+3
| | | | | | idmap_backends_sid_to_unixid Michael
* s3:winbindd/idmap: add diagnostic entry debug msg to ↵Michael Adam2008-12-011-0/+4
| | | | | | idmap_backends_unixid_to_sid Michael
* s3:winbindd/idmap: add diagnostic entry debug msg to idmap_find_domain().Michael Adam2008-12-011-0/+3
| | | | Michael
* Added ability to remove id mappings in wbinfo and libwbclient.Steven Danneman2008-11-181-0/+17
| | | | | | | | | | | | | | | | | 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
* get rid of unneeded argument in get_methods and get_alloc_methodsHerb Lewis2008-09-041-14/+9
| | | | (This used to be commit 07b0323472b78d49cff06b78924c3015bea52a30)
* idmap tdb2: fix inconsistent mappings by checking for race and retrying to ↵Michael Adam2008-08-131-0/+9
| | | | | | | fetch mapping. Michael (This used to be commit cb4c74c9c206e5a445ca636fa6562ce721ea5839)
* Some doxygen comments for idmapVolker Lendecke2008-08-121-10/+91
| | | | (This used to be commit adecc6d91338e7e34afd0672aada5d0e47247a33)
* idmap rewriteVolker Lendecke2008-08-121-815/+336
| | | | (This used to be commit 30a180f2fce8cf6a3e5548f6bba453272ba70b33)
* Remove the multi-ID lookup code and the 3.2.0 version of idmap_cacheVolker Lendecke2008-08-121-434/+0
| | | | (This used to be commit 1bd98521dc3f16ad77ccccd3979288c58e03ebe8)
* Directly call backends from idmap_[ugs]_to_[ugs]idVolker Lendecke2008-08-121-0/+39
| | | | (This used to be commit f955407042e6d2384acccc399d72ff65ba0e721c)
* Fix regression introduced with 4086ef15b395f1a536fb669af2103a33ecc14de4Simo Sorce2008-07-121-15/+15
| | | | | | | We must not return an error here just because we are offline. We must instead fix the mappings to the best of our knowledge (ie mark as mapped, expired ones, and as unmapped, unknown ones) (This used to be commit 4436272dd4d6cdd223b1dc3d217a97cbe3bc887b)