summaryrefslogtreecommitdiff
path: root/source4/heimdal
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2014-02-18 13:53:38 +1300
committerStefan Metzmacher <metze@samba.org>2014-04-02 17:12:47 +0200
commitd202191f9c6f304cfd603b1a78a56bb5a33fec49 (patch)
tree5c7294d4551f4f1eb93562cf2cd7ad3a1993cf45 /source4/heimdal
parent580a705b83014e94556b9d5a8877406816e02190 (diff)
downloadsamba-d202191f9c6f304cfd603b1a78a56bb5a33fec49.tar.gz
heimdal: Only indicate successful authentication after successful authz
This is needed to match Windows behaviour for NTLM logins. Andrew Bartlett Change-Id: I142de19b480cd6499d6f7f025f655e220558d54c Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/heimdal')
-rw-r--r--source4/heimdal/kdc/kerberos5.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/heimdal/kdc/kerberos5.c b/source4/heimdal/kdc/kerberos5.c
index 939d1b01423..bab4b8ca542 100644
--- a/source4/heimdal/kdc/kerberos5.c
+++ b/source4/heimdal/kdc/kerberos5.c
@@ -1448,10 +1448,6 @@ _kdc_as_rep(krb5_context context,
goto out;
}
- if (clientdb->hdb_auth_status)
- (clientdb->hdb_auth_status)(context, clientdb, client,
- HDB_AUTH_SUCCESS);
-
/*
* Verify flags after the user been required to prove its identity
* with in a preauth mech.
@@ -1463,6 +1459,10 @@ _kdc_as_rep(krb5_context context,
if(ret)
goto out;
+ if (clientdb->hdb_auth_status)
+ (clientdb->hdb_auth_status)(context, clientdb, client,
+ HDB_AUTH_SUCCESS);
+
/*
* Selelct the best encryption type for the KDC with out regard to
* the client since the client never needs to read that data.