From 1bb0afa662cb65ad8eeec59d40008c6604b791bc Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 28 May 2010 11:07:49 -0400 Subject: s3:auth make sure we set the right username Signed-off-by: Andrew Bartlett --- source3/auth/auth_util.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/auth/auth_util.c') 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); -- cgit