summaryrefslogtreecommitdiffstats
path: root/src/kdc/t_emptytgt.py
blob: 8f7717a011c208f66bd1a7ebb69fbc3421958315 (plain)
1
2
3
4
5
6
7
8
#!/usr/bin/python
from k5test import *

realm = K5Realm(create_host=False)
output = realm.run([kvno, 'krbtgt/'], expected_code=1)
if 'not found in Kerberos database' not in output:
    fail('TGT lookup for empty realm failed in unexpected way')
success('Empty tgt lookup.')