summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-04-12 10:34:29 +0200
committerVolker Lendecke <vl@samba.org>2010-04-12 13:09:08 +0200
commit757766d5af54e116bb08f0d825e51741f3ee9e05 (patch)
treea61f071cd420e5597fb0621e171fb2cffa2c8eca /source3/smbd
parent49d4dd530f3983de2e538e07b32e1c3df4efa649 (diff)
downloadsamba-757766d5af54e116bb08f0d825e51741f3ee9e05.tar.gz
samba-757766d5af54e116bb08f0d825e51741f3ee9e05.tar.bz2
samba-757766d5af54e116bb08f0d825e51741f3ee9e05.zip
s3: Cache the result of the username map script
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/map_username.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/map_username.c b/source3/smbd/map_username.c
index 47aa54d2ba..8b1e1dbd7c 100644
--- a/source3/smbd/map_username.c
+++ b/source3/smbd/map_username.c
@@ -125,6 +125,7 @@ bool map_username(struct smbd_server_connection *sconn, fstring user)
if (numlines && qlines) {
DEBUG(3,("Mapped user %s to %s\n", user, qlines[0] ));
+ set_last_from_to(user, qlines[0]);
fstrcpy( user, qlines[0] );
}