diff options
author | Volker Lendecke <vlendec@samba.org> | 2003-08-14 21:07:49 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2003-08-14 21:07:49 +0000 |
commit | bb6dff2cb1599882ed6142c3617560b6e9755841 (patch) | |
tree | 18dc1609d8db525876a1182a8d20e237c020e850 /source3/libads | |
parent | 4e4558998ed3ac1c9c4568e64dd5d348e4cb87eb (diff) | |
download | samba-bb6dff2cb1599882ed6142c3617560b6e9755841.tar.gz samba-bb6dff2cb1599882ed6142c3617560b6e9755841.tar.bz2 samba-bb6dff2cb1599882ed6142c3617560b6e9755841.zip |
In ads_verify_realm, all we use in the ADS_STRUCT is the
auth.realm. So directly pass that instead of setting up and tearing
down the ADS_STRUCT.
Volker
(This used to be commit ce5b8d2ec20fe1f4d3d1956020d88272fb84124a)
Diffstat (limited to 'source3/libads')
-rw-r--r-- | source3/libads/kerberos_verify.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libads/kerberos_verify.c b/source3/libads/kerberos_verify.c index 48b61cd1f2..b82e13b05b 100644 --- a/source3/libads/kerberos_verify.c +++ b/source3/libads/kerberos_verify.c @@ -28,7 +28,7 @@ verify an incoming ticket and parse out the principal name and authorization_data if available */ -NTSTATUS ads_verify_ticket(ADS_STRUCT *ads, const DATA_BLOB *ticket, +NTSTATUS ads_verify_ticket(const char *realm, const DATA_BLOB *ticket, char **principal, DATA_BLOB *auth_data, DATA_BLOB *ap_rep, uint8 session_key[16]) @@ -79,7 +79,7 @@ NTSTATUS ads_verify_ticket(ADS_STRUCT *ads, const DATA_BLOB *ticket, return NT_STATUS_LOGON_FAILURE; } - ret = krb5_set_default_realm(context, ads->auth.realm); + ret = krb5_set_default_realm(context, realm); if (ret) { DEBUG(1,("ads_verify_ticket: krb5_set_default_realm failed (%s)\n", error_message(ret))); sret = NT_STATUS_LOGON_FAILURE; |