summaryrefslogtreecommitdiff
path: root/codepages
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-11-16 11:37:18 +0100
committerMichael Adam <obnox@samba.org>2009-11-19 17:55:47 +0100
commit457055871af86567acc122fb0309c2db9517879a (patch)
tree564303da8b953a41c6cf18a18b8876711f7370ee /codepages
parentfc9f199f2619635f73e8ee7f3b5359521d63f325 (diff)
downloadsamba-457055871af86567acc122fb0309c2db9517879a.tar.gz
samba-457055871af86567acc122fb0309c2db9517879a.tar.bz2
samba-457055871af86567acc122fb0309c2db9517879a.zip
s3: shortcut uid_to_sid when "ldapsam:trusted = yes"
The normal uid_to_sid behaviour is to call sys_getpwuid() to get the name for the given uid and then call the getsampwnam passdb method for the resulting name. In the ldapsam:trusted case we can reduce the uid_to_sid operation to one simple search for the uidNumber attribute and only get the sambaSID attribute from the correspoinding LDAP object. This reduces the number of ldap roundtrips for this operation. Michael
Diffstat (limited to 'codepages')
0 files changed, 0 insertions, 0 deletions