diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2016-06-08 10:56:03 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2016-06-08 10:56:03 +0200 |
commit | c0283c4a322ce5218c4ad1ae1e8391e37505d248 (patch) | |
tree | 4fe172728860344cd8617af9c6b0beeb23903081 | |
parent | 525525b4050f9bd6850bfa5aadaf3e03f16b2661 (diff) |
Remove unused patch
-rw-r--r-- | samba-4.2-auth-credentials-if-credentials-have-principal-set-t.patch | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/samba-4.2-auth-credentials-if-credentials-have-principal-set-t.patch b/samba-4.2-auth-credentials-if-credentials-have-principal-set-t.patch deleted file mode 100644 index f6ae63a..0000000 --- a/samba-4.2-auth-credentials-if-credentials-have-principal-set-t.patch +++ /dev/null @@ -1,35 +0,0 @@ -From 97d7bc19bb463cfbb9d45b69cec1e668eb15b4a1 Mon Sep 17 00:00:00 2001 -From: Alexander Bokovoy <ab@samba.org> -Date: Thu, 7 May 2015 14:12:03 +0000 -Subject: [PATCH] auth/credentials: if credentials have principal set, they are - not anonymous anymore - -When dealing with Kerberos, we cannot consider credentials anonymous -if credentials were obtained properly. - -Signed-off: Alexander Bokovoy <ab@samba.org> ---- - auth/credentials/credentials.c | 7 +++++++ - 1 file changed, 7 insertions(+) - -diff --git a/auth/credentials/credentials.c b/auth/credentials/credentials.c -index 78b5955..b1ccc5a 100644 ---- a/auth/credentials/credentials.c -+++ b/auth/credentials/credentials.c -@@ -921,6 +921,13 @@ _PUBLIC_ bool cli_credentials_is_anonymous(struct cli_credentials *cred) - cred->machine_account_pending_lp_ctx); - } - -+ if (cli_credentials_get_kerberos_state(cred) != CRED_DONT_USE_KERBEROS) { -+ /* if principal is set, it's not anonymous */ -+ if (cred->principal && cred->principal_obtained >= cred->username_obtained) { -+ return false; -+ } -+ } -+ - username = cli_credentials_get_username(cred); - - /* Yes, it is deliberate that we die if we have a NULL pointer --- -2.4.0 - |