summaryrefslogtreecommitdiff
path: root/source3/include/rap.h
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-11-12 15:30:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:15 -0500
commit69ddbbf97b4c37cba879f7dd9ce8cb5f4d336857 (patch)
tree2da0fd100b9e47dfc77179742b0b38015919573c /source3/include/rap.h
parentc34ec6180a011f23de16cc5e19902470dc7feb6f (diff)
downloadsamba-69ddbbf97b4c37cba879f7dd9ce8cb5f4d336857.tar.gz
samba-69ddbbf97b4c37cba879f7dd9ce8cb5f4d336857.tar.bz2
samba-69ddbbf97b4c37cba879f7dd9ce8cb5f4d336857.zip
r3704: Implement a cache get saves the result of a pdb_getsampwnam for later
retrieval by pdb_getsampwsid. This solves our problem that we do lots of calls to LDAP during a typical XP login. XP does a lookupnames, then an openuser and some queryinfo stuff. Lookupnames triggers the initial getsampwnam, and all the subsequent ones make us call getsampwsid. This patch gets this down to one call to LDAP. Yes, a more "correct" way would be to stick the information to the open user handle, but this one is simpler and saves the LDAP roundtrip for the openuser call. Volker (This used to be commit 3d9758fa3c584bb25eca0b7ed04af4ddfeba315f)
Diffstat (limited to 'source3/include/rap.h')
0 files changed, 0 insertions, 0 deletions