diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-01-30 22:28:19 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2010-02-15 14:46:54 +0100 |
commit | 35752c0aace9015f7e856ecbce59ed6f0a3e3a19 (patch) | |
tree | d518524e03bed23562518db46c96d2d84f1590ed /examples | |
parent | b9ec2da1d16401a5abb30d826784fc35c2d27852 (diff) | |
download | samba-35752c0aace9015f7e856ecbce59ed6f0a3e3a19.tar.gz samba-35752c0aace9015f7e856ecbce59ed6f0a3e3a19.tar.xz samba-35752c0aace9015f7e856ecbce59ed6f0a3e3a19.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
(similar to commit 0fb99386d41241f62312d4bb535976344e5d6492)
(cherry picked from commit 479087716f50e8a1961163750b1d651dcd23dfc2)
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions