summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2010-05-28 11:07:49 -0400
committerAndrew Bartlett <abartlet@samba.org>2010-06-07 22:53:06 +1000
commit1bb0afa662cb65ad8eeec59d40008c6604b791bc (patch)
treef0960900c7ccdebf678ad2d6a769ac2059a2ceb9 /source3/auth
parentaa3272588662f1389138a177a4c6644668c052fa (diff)
downloadsamba-1bb0afa662cb65ad8eeec59d40008c6604b791bc.tar.gz
samba-1bb0afa662cb65ad8eeec59d40008c6604b791bc.tar.bz2
samba-1bb0afa662cb65ad8eeec59d40008c6604b791bc.zip
s3:auth make sure we set the right username
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_util.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index a64fd33db2..8ea1f410f1 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -590,6 +590,11 @@ NTSTATUS make_server_info_pw(struct auth_serversupplied_info **server_info,
return status;
}
+ /* In pathological cases the above call can set the account
+ * name to the DOMAIN\username form. Reset the account name
+ * using unix_username */
+ pdb_set_username(sampass, unix_username, PDB_SET);
+
result = make_server_info(NULL);
if (result == NULL) {
TALLOC_FREE(sampass);