@@ -44,9 +44,9 @@ Acquires Kerberos ticket-granting ticket (TGT) with keytab file.
44
44
:caption: Python
45
45
:linenos:
46
46
47
- import krb5
47
+ import krb5ticket
48
48
49
- krb = krb5 .Krb5(" [email protected] " , " /tmp/krb5cc_user" )
49
+ krb = krb5ticket .Krb5(" [email protected] " , " /tmp/krb5cc_user" )
50
50
krb.acquire_with_keytab(" /home/user/user.keytab" )
51
51
52
52
Acquires Kerberos ticket-granting ticket (TGT) with password.
@@ -55,9 +55,9 @@ Acquires Kerberos ticket-granting ticket (TGT) with password.
55
55
:caption: Python
56
56
:linenos:
57
57
58
- from krb5 import Krb5
58
+ from krb5ticket import Krb5
59
59
60
- krb = Krb5 (" [email protected] " , " /tmp/krb5cc_user" )
60
+ krb = krb5ticket (" [email protected] " , " /tmp/krb5cc_user" )
61
61
krb.acquire_with_password(" thisismypassword" )
62
62
63
63
ktutil
@@ -76,7 +76,7 @@ Reads the Kerberos V5 keytab file keytab into the current keylist, then prints t
76
76
:caption: Python
77
77
:linenos:
78
78
79
- from krb5 import ktutil
79
+ from krb5ticket import ktutil
80
80
81
81
KEYTAB = " jsmith.keytab"
82
82
@@ -110,7 +110,7 @@ to a keytab file.
110
110
:caption: Python
111
111
:linenos:
112
112
113
- from krb5 import ktutil
113
+ from krb5ticket import ktutil
114
114
115
115
116
116
PASSWORD = " securepassword"
@@ -137,7 +137,7 @@ Deletes an entry to the current keylist and writes it to a ``NEW`` keytab file.
137
137
:caption: Python
138
138
:linenos:
139
139
140
- from krb5 import ktutil
140
+ from krb5ticket import ktutil
141
141
142
142
KEYTAB = " jsmith.keytab"
143
143
NEW_KEYTAB = " jsmith_new.keytab"
0 commit comments