forked from krb5/krb5-anonsvn
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
version_fixed: 1.9 status: resolved pull up r24566 from trunk ------------------------------------------------------------------------ r24566 | ghudson | 2010-12-14 12:28:38 -0500 (Tue, 14 Dec 2010) | 9 lines ticket: 6838 tags: pullups target_version: 1.9 Fix a regression in the client-side ticket renewal code where KDC options were not folded into the renewal request (most notably, the KDC_OPT_RENEWABLE flag), so we didn't request renewable renewed tickets. Add a simple test case for ticket renewal. git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-9@24570 dc483132-0cff-0310-8789-dd5450dbe970
- Loading branch information
tlyu
committed
Dec 14, 2010
1 parent
ebdc78b
commit 3074a10
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/python | ||
from k5test import * | ||
|
||
realm = K5Realm(create_host=False, start_kadmind=False, get_creds=False) | ||
|
||
# Configure the realm to allow renewable tickets and acquire some. | ||
realm.run_kadminl('modprinc -maxrenewlife "2 days" user') | ||
realm.run_kadminl('modprinc -maxrenewlife "2 days" %s' % realm.krbtgt_princ) | ||
realm.kinit(realm.user_princ, password('user'), flags=['-r', '2d']) | ||
|
||
# Renew twice, to test that renewed tickets are renewable. | ||
realm.kinit(realm.user_princ, flags=['-R']) | ||
realm.kinit(realm.user_princ, flags=['-R']) | ||
realm.klist(realm.user_princ) | ||
|
||
success('Renewing credentials.') |