summaryrefslogtreecommitdiff
path: root/source3/winbindd/idmap_util.c
AgeCommit message (Collapse)AuthorFilesLines
2013-05-03idmap: Store negative cache entries if the backend failsVolker Lendecke1-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
2013-05-03idmap: Print error from idmap_backends_unixid_to_sidVolker Lendecke1-2/+4
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2013-03-09s3-winbindd: Move idmap_fetch_secret to idmap_utils.c for reuseChristof Schmitt1-0/+25
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2013-03-09s3-winbindd: Move common code for LDAP id mapping to idmap_utilsChristof Schmitt1-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>
2012-12-03s3:winbindd: remove unused idmap_sid_to_gid()Michael Adam1-74/+0
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2012-12-03s3:winbindd: remove unused idmap_sid_to_uid()Michael Adam1-74/+0
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2012-05-02s3-idmap: convert most idmap_cache callers to unixid APIAndrew Bartlett1-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>
2011-11-15s3-winbind: Make sure the map is clean.Andreas Schneider1-1/+5
2011-01-03s3:winbindd/idmap_util.c: add my CMichael Adam1-0/+1
2010-11-24s3:winbind correct a copy&paste errorChristian Ambach1-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
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-idmap: only include idmap headers where needed.Günther Deschner1-0/+2
Guenther
2010-08-14s3:idmap: add idmap_unix_id_is_in_range() for checking an id against an ↵Michael Adam1-0/+19
idmap range
2010-08-14s3:idmap: add a debug message to idmap_sid_to_gidMichael Adam1-0/+1
2010-08-14s3:idmap: add a debug message to idmap_sid_to_uidMichael Adam1-0/+1
2010-08-14s3:idmap: don't call idmap_new_mapping idmap_sid_to_gidMichael Adam1-25/+16
The setting of a new mapping is moved into the backend code to achieve atomicity and greater flexibility. Michael
2010-08-14s3:idmap: don't call idmap_new_mapping idmap_sid_to_unixid.Michael Adam1-25/+15
The setting of a new mapping is moved into the backend code to achieve atomicity and greater flexibility. Michael
2010-05-21s3:dom_sid Global replace of DOM_SID with struct dom_sidAndrew Bartlett1-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>
2009-05-16Fix a typoVolker Lendecke1-1/+1
2009-05-11Fix a bunch of compiler warnings about wrong format types.Jeremy Allison1-2/+4
Should make Solaris 10 builds look cleaner. Jeremy.
2009-03-12Fix #6167: winbindd -n should disable the winbind idmap cacheVolker Lendecke1-20/+50
2008-12-01s3:winbindd/idmap_util: unify entering debug messages and add ouput of domainMichael Adam1-4/+8
Michael
2008-09-25idmap: Fix typo is gid2sid() that was caching using idmap_cache_set_sid2uid()Gerald W. Carter1-1/+1
2008-08-22idmap_gid_to_sid: Fix a cut-a-npaste error.Gerald (Jerry) Carter1-1/+1
The call was looking up a uid and not gid in the cache. (This used to be commit 25293ba1507f8f8fa7e33c302200184e980bb123)
2008-08-12Do not create a new mapping if a domain with an explicit config failsVolker Lendecke1-0/+18
(This used to be commit 2c27de44269198e22c323191dd4762d1aab81b22)
2008-08-12idmap rewriteVolker Lendecke1-32/+130
(This used to be commit 30a180f2fce8cf6a3e5548f6bba453272ba70b33)
2008-08-12Directly call backends from idmap_[ugs]_to_[ugs]idVolker Lendecke1-22/+6
(This used to be commit f955407042e6d2384acccc399d72ff65ba0e721c)
2008-07-11Revert "Fix nonempty whitespace only lines"Volker Lendecke1-6/+6
This reverts commit cc77db2acbc35cea58576f1e28c7a760a5e31609. (This used to be commit ed5b516c2027d78011cdaa7cbbc01bb01e766381)
2008-07-11Revert "Make use of ADD_TO_ARRAY"Volker Lendecke1-13/+21
This reverts commit 81f334bd6da601a040f754c46705cfa2fd4f8c45. (This used to be commit d4d106776af3f475d46a4dd78794b7b48a3572af)
2008-07-05Make use of ADD_TO_ARRAYVolker Lendecke1-21/+13
(This used to be commit 81f334bd6da601a040f754c46705cfa2fd4f8c45)
2008-07-02Fix nonempty whitespace only linesVolker Lendecke1-6/+6
(This used to be commit cc77db2acbc35cea58576f1e28c7a760a5e31609)
2008-05-30Fix valgrind bug in debug statement. Don't reference uninitialized memory.Jeremy Allison1-3/+2
Jeremy. (This used to be commit 25e76a19f22cdf726928d6c4b165745de9e455d6)
2007-12-15Replace sid_string_static by sid_string_dbg in DEBUGsVolker Lendecke1-6/+6
(This used to be commit bb35e794ec129805e874ceba882bcc1e84791a09)
2007-10-10r25154: move winbindd code into winbindd/Stefan Metzmacher1-0/+171
metze (This used to be commit 3ac7566ae14c48ff9b0f6b232e0ec4b2f73df558)