s3: Cache the result of the username map script
authorVolker Lendecke <vl@samba.org>
Mon, 12 Apr 2010 08:34:29 +0000 (10:34 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 12 Apr 2010 11:09:08 +0000 (13:09 +0200)
source3/smbd/map_username.c

index 47aa54d2ba1c11f3aa1e93cf8b61b4c92435e81f..8b1e1dbd7c2ce3568685b5ec96cd48aebae98e63 100644 (file)
@@ -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] );
                }