summaryrefslogtreecommitdiffstats
path: root/src/util/k5test.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/k5test.py')
-rw-r--r--src/util/k5test.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/k5test.py b/src/util/k5test.py
index 6097c9be96..f2a36b4d3d 100644
--- a/src/util/k5test.py
+++ b/src/util/k5test.py
@@ -301,6 +301,9 @@ Scripts may use the following realm methods and attributes:
* realm.host_princ: The name of the host principal for this machine,
with realm.
+* realm.nfs_princ: The name of the nfs principal for this machine,
+ with realm.
+
* realm.krbtgt_princ: The name of the krbtgt principal for the realm.
* realm.keytab: A keytab file in realm.testdir. Initially contains a
@@ -698,6 +701,7 @@ class K5Realm(object):
self.user_princ = 'user@' + self.realm
self.admin_princ = 'user/admin@' + self.realm
self.host_princ = 'host/%s@%s' % (hostname, self.realm)
+ self.nfs_princ = 'nfs/%s@%s' % (hostname, self.realm)
self.krbtgt_princ = 'krbtgt/%s@%s' % (self.realm, self.realm)
self.keytab = os.path.join(self.testdir, 'keytab')
self.ccache = os.path.join(self.testdir, 'ccache')