summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_cm.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-01-30 22:28:19 +0100
committerStefan Metzmacher <metze@samba.org>2010-02-08 11:23:17 +0100
commit779821df8ecfe3ed2392582b500d26332f0b80fc (patch)
treebb1d4583c181337a43e8623cc066fd993a2c095f /source3/winbindd/winbindd_cm.c
parent4a4b2a5eafe89e87798d231522c756750d14ce60 (diff)
downloadsamba-779821df8ecfe3ed2392582b500d26332f0b80fc.tar.gz
samba-779821df8ecfe3ed2392582b500d26332f0b80fc.tar.bz2
samba-779821df8ecfe3ed2392582b500d26332f0b80fc.zip
s3: shortcut gid_to_sid when "ldapsam:trusted = yes"
The normal gid_to_sid behaviour is to call sys_getgrgid() to get the name for the given gid and then call the getsamgrnam passdb method for the resulting name. In the ldapsam:trusted case we can reduce the gid_to_sid operation to one simple search for the gidNumber attribute and only get the sambaSID attribute from the correspoinding LDAP object. This reduces the number of ldap roundtrips for this operation. metze
Diffstat (limited to 'source3/winbindd/winbindd_cm.c')
0 files changed, 0 insertions, 0 deletions