summaryrefslogtreecommitdiffstats
path: root/source3/winbindd/idmap_util.c
Commit message (Collapse)AuthorAgeFilesLines
* idmap: Store negative cache entries if the backend failsVolker Lendecke2013-05-031-2/+2
| | | | | | | | | | | | | | | | | | This changes the behaviour for out-of-range queries: The tdb backend (probably all backends) returns NT_STATUS_NONE_MAPPED and does not set the map.status value to ID_UNMAPPED. This means that we did an early error exit, not setting a negative cache value. This makes smbd ask winbind over and over again for out-of-range gids, which can be a performance problem in certain scenarios. The new code makes us fall through to the code setting the negative cache entry in all cases. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Fri May 3 14:48:35 CEST 2013 on sn-devel-104
* idmap: Print error from idmap_backends_unixid_to_sidVolker Lendecke2013-05-031-2/+4
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3-winbindd: Move idmap_fetch_secret to idmap_utils.c for reuseChristof Schmitt2013-03-091-0/+25
| | | | Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s3-winbindd: Move common code for LDAP id mapping to idmap_utilsChristof Schmitt2013-03-091-0/+41
| | | | | | | | idmap_ad and idmap_ldap use the same helper functions and the same maximum query size. Move the code to idmap_utils so that it can be shared by every module issuing LDAP queries. Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s3:winbindd: remove unused idmap_sid_to_gid()Michael Adam2012-12-031-74/+0
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3:winbindd: remove unused idmap_sid_to_uid()Michael Adam2012-12-031-74/+0
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3-idmap: convert most idmap_cache callers to unixid APIAndrew Bartlett2012-05-021-6/+12
| | | | | | | | | This will eventually allow the struct unixid to be passed all the way up and down the stack. Andrew Bartlett Signed-off-by: Michael Adam <obnox@samba.org>
* s3-winbind: Make sure the map is clean.Andreas Schneider2011-11-151-1/+5
|
* s3:winbindd/idmap_util.c: add my CMichael Adam2011-01-031-0/+1
|
* s3:winbind correct a copy&paste errorChristian Ambach2010-11-241-3/+3
| | | | | | | | | | | negative results of sid->gid lookups should be stored with idmap_cache_set_sid2gid instead of idmap_cache_set_sid2uid This seems to be a copy&paste error when similar logic from the sid2uid path was copied here in 84b88f4b. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Nov 24 16:53:01 CET 2010 on sn-devel-104
* libcli/security Provide a common, top level libcli/security/security.hAndrew Bartlett2010-10-121-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
* s3-idmap: only include idmap headers where needed.Günther Deschner2010-08-261-0/+2
| | | | Guenther
* s3:idmap: add idmap_unix_id_is_in_range() for checking an id against an ↵Michael Adam2010-08-141-0/+19
| | | | idmap range
* s3:idmap: add a debug message to idmap_sid_to_gidMichael Adam2010-08-141-0/+1
|
* s3:idmap: add a debug message to idmap_sid_to_uidMichael Adam2010-08-141-0/+1
|
* s3:idmap: don't call idmap_new_mapping idmap_sid_to_gidMichael Adam2010-08-141-25/+16
| | | | | | | The setting of a new mapping is moved into the backend code to achieve atomicity and greater flexibility. Michael
* s3:idmap: don't call idmap_new_mapping idmap_sid_to_unixid.Michael Adam2010-08-141-25/+15
| | | | | | | The setting of a new mapping is moved into the backend code to achieve atomicity and greater flexibility. Michael
* s3:dom_sid Global replace of DOM_SID with struct dom_sidAndrew Bartlett2010-05-211-4/+4
| | | | | | | | | | 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>
* Fix a typoVolker Lendecke2009-05-161-1/+1
|
* Fix a bunch of compiler warnings about wrong format types.Jeremy Allison2009-05-111-2/+4
| | | | | Should make Solaris 10 builds look cleaner. Jeremy.
* Fix #6167: winbindd -n should disable the winbind idmap cacheVolker Lendecke2009-03-121-20/+50
|
* s3:winbindd/idmap_util: unify entering debug messages and add ouput of domainMichael Adam2008-12-011-4/+8
| | | | Michael
* idmap: Fix typo is gid2sid() that was caching using idmap_cache_set_sid2uid()Gerald W. Carter2008-09-251-1/+1
|
* idmap_gid_to_sid: Fix a cut-a-npaste error.Gerald (Jerry) Carter2008-08-221-1/+1
| | | | | The call was looking up a uid and not gid in the cache. (This used to be commit 25293ba1507f8f8fa7e33c302200184e980bb123)
* Do not create a new mapping if a domain with an explicit config failsVolker Lendecke2008-08-121-0/+18
| | | | (This used to be commit 2c27de44269198e22c323191dd4762d1aab81b22)
* idmap rewriteVolker Lendecke2008-08-121-32/+130
| | | | (This used to be commit 30a180f2fce8cf6a3e5548f6bba453272ba70b33)
* Directly call backends from idmap_[ugs]_to_[ugs]idVolker Lendecke2008-08-121-22/+6
| | | | (This used to be commit f955407042e6d2384acccc399d72ff65ba0e721c)
* Revert "Fix nonempty whitespace only lines"Volker Lendecke2008-07-111-6/+6
| | | | | This reverts commit cc77db2acbc35cea58576f1e28c7a760a5e31609. (This used to be commit ed5b516c2027d78011cdaa7cbbc01bb01e766381)
* Revert "Make use of ADD_TO_ARRAY"Volker Lendecke2008-07-111-13/+21
| | | | | This reverts commit 81f334bd6da601a040f754c46705cfa2fd4f8c45. (This used to be commit d4d106776af3f475d46a4dd78794b7b48a3572af)
* Make use of ADD_TO_ARRAYVolker Lendecke2008-07-051-21/+13
| | | | (This used to be commit 81f334bd6da601a040f754c46705cfa2fd4f8c45)
* Fix nonempty whitespace only linesVolker Lendecke2008-07-021-6/+6
| | | | (This used to be commit cc77db2acbc35cea58576f1e28c7a760a5e31609)
* Fix valgrind bug in debug statement. Don't reference uninitialized memory.Jeremy Allison2008-05-301-3/+2
| | | | | Jeremy. (This used to be commit 25e76a19f22cdf726928d6c4b165745de9e455d6)
* Replace sid_string_static by sid_string_dbg in DEBUGsVolker Lendecke2007-12-151-6/+6
| | | | (This used to be commit bb35e794ec129805e874ceba882bcc1e84791a09)
* r25154: move winbindd code into winbindd/Stefan Metzmacher2007-10-101-0/+171
metze (This used to be commit 3ac7566ae14c48ff9b0f6b232e0ec4b2f73df558)