diff options
author | Isaac Boukris <iboukris@gmail.com> | 2018-12-03 02:33:07 +0200 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2018-12-08 15:21:14 -0500 |
commit | 5e6d1796106df8ba6bc1973ee0917c170d929086 (patch) | |
tree | 49a9ba21286538ff7942e7ccb303fc69a28780fc /src/tests/gssapi/t_s4u.py | |
parent | 23ef16ac32554e547ac42a9cb79d9040af8de5ba (diff) | |
download | krb5-5e6d1796106df8ba6bc1973ee0917c170d929086.zip krb5-5e6d1796106df8ba6bc1973ee0917c170d929086.tar.gz krb5-5e6d1796106df8ba6bc1973ee0917c170d929086.tar.bz2 |
Ignore password attributes for S4U2Self requests
For consistency with Windows KDCs, allow protocol transition to work
even if the password has expired or needs changing.
Also, when looking up an enterprise principal with an AS request,
treat ERR_KEY_EXP as confirmation that the client is present in the
realm.
[ghudson@mit.edu: added comment in kdc_process_s4u2self_req(); edited
commit message]
ticket: 8763 (new)
tags: pullup
target_version: 1.17
Diffstat (limited to 'src/tests/gssapi/t_s4u.py')
-rwxr-xr-x | src/tests/gssapi/t_s4u.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tests/gssapi/t_s4u.py b/src/tests/gssapi/t_s4u.py index fd29e1a..84f3fbd 100755 --- a/src/tests/gssapi/t_s4u.py +++ b/src/tests/gssapi/t_s4u.py @@ -19,6 +19,14 @@ pservice2 = 'p:' + service2 # Get forwardable creds for service1 in the default cache. realm.kinit(service1, None, ['-f', '-k']) +# Try S4U2Self for user with a restricted password. +realm.run([kadminl, 'modprinc', '+needchange', realm.user_princ]) +realm.run(['./t_s4u', 'e:user', '-']) +realm.run([kadminl, 'modprinc', '-needchange', + '-pwexpire', '1/1/2000', realm.user_princ]) +realm.run(['./t_s4u', 'e:user', '-']) +realm.run([kadminl, 'modprinc', '-pwexpire', 'never', realm.user_princ]) + # Try krb5 -> S4U2Proxy with forwardable user creds. This should fail # at the S4U2Proxy step since the DB2 back end currently has no # support for allowing it. |