summaryrefslogtreecommitdiffstats
path: root/source3/auth/auth_sam.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-11-15 21:43:57 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-11-15 21:43:57 +0000
commitc64d762997c80bd9ad2d47d1799cf9ec870d455a (patch)
tree6839d179517104a114f726a8ee4d7a299c3534f6 /source3/auth/auth_sam.c
parent392e2b2a0aab5e0e86d831b462b174abe8d089cb (diff)
downloadsamba-c64d762997c80bd9ad2d47d1799cf9ec870d455a.tar.gz
samba-c64d762997c80bd9ad2d47d1799cf9ec870d455a.tar.xz
samba-c64d762997c80bd9ad2d47d1799cf9ec870d455a.zip
Updates from HEAD:
- const for PACKS() in lanman.c - change auth to 'account before password' - add help to net rpc {vampire,samsync} - configure updates for sun workshop cc - become_root() around pdb_ calls in auth_util for guest login. Andrew Bartlett (This used to be commit 43e90eb6e331d478013a9c038292f245edc51bd0)
Diffstat (limited to 'source3/auth/auth_sam.c')
-rw-r--r--source3/auth/auth_sam.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/auth/auth_sam.c b/source3/auth/auth_sam.c
index 9fa33dccf68..02f8511d6af 100644
--- a/source3/auth/auth_sam.c
+++ b/source3/auth/auth_sam.c
@@ -393,6 +393,8 @@ static NTSTATUS check_sam_security(const struct auth_context *auth_context,
return NT_STATUS_NO_SUCH_USER;
}
+ nt_status = sam_account_ok(mem_ctx, sampass, user_info);
+
nt_status = sam_password_ok(auth_context, mem_ctx, sampass, user_info, user_sess_key);
if (!NT_STATUS_IS_OK(nt_status)) {
@@ -400,8 +402,6 @@ static NTSTATUS check_sam_security(const struct auth_context *auth_context,
return nt_status;
}
- nt_status = sam_account_ok(mem_ctx, sampass, user_info);
-
if (!NT_STATUS_IS_OK(nt_status)) {
pdb_free_sam(&sampass);
return nt_status;