author | John Beck <John.Beck@Oracle.COM> |
Thu, 08 Sep 2016 09:45:54 -0700 | |
changeset 6864 | 45128c94429d |
parent 6599 | 1d033832c5e7 |
child 6978 | 14cbeb78966a |
permissions | -rw-r--r-- |
6145
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
1 |
# |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
2 |
# This patch fixes an issue where the k5identity built-in ccache selection |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
3 |
# plugin is calling fopen() for a .k5identity file located in a user's home |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
4 |
# directory. The problem with this is that this behavior can cause gssd to |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
5 |
# hang when trying to estabish a gss security context on behalf of a user whose |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
6 |
# home dir is NFS sec=krb5 protected. Since the plugin implementation does not |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
7 |
# provide a means of setting a plugin to disabled state by default we are |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
8 |
# disabling the k5identity plugin from being registered which basically |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
9 |
# disables the plugin completely. |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
10 |
# |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
11 |
# This problem has been reported to MIT via this ticket: |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
12 |
# 8420 built in plugins need a method to disable/enable by default |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
13 |
# Once the fix for 8420 is in Userland then: |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
14 |
# 23514346 The k5identity tests should be re-enabled when MIT ticket 8420 is fixed upstream |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
15 |
# should also be addressed. |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
16 |
# |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
17 |
# Patch source: in-house |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
18 |
# |
6599
1d033832c5e7
24377741 Update Userland krb5 to MIT 1.14.3
Shawn Emery <shawn.emery@oracle.com>
parents:
6145
diff
changeset
|
19 |
diff --git a/src/lib/krb5/ccache/ccselect.c b/src/lib/krb5/ccache/ccselect.c |
1d033832c5e7
24377741 Update Userland krb5 to MIT 1.14.3
Shawn Emery <shawn.emery@oracle.com>
parents:
6145
diff
changeset
|
20 |
--- a/src/lib/krb5/ccache/ccselect.c |
1d033832c5e7
24377741 Update Userland krb5 to MIT 1.14.3
Shawn Emery <shawn.emery@oracle.com>
parents:
6145
diff
changeset
|
21 |
+++ b/src/lib/krb5/ccache/ccselect.c |
1d033832c5e7
24377741 Update Userland krb5 to MIT 1.14.3
Shawn Emery <shawn.emery@oracle.com>
parents:
6145
diff
changeset
|
22 |
@@ -59,12 +59,17 @@ load_modules(krb5_context context) |
6145
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
23 |
krb5_plugin_initvt_fn *modules = NULL, *mod; |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
24 |
size_t count; |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
25 |
|
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
26 |
-#ifndef _WIN32 |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
27 |
+ /* |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
28 |
+ * This plugin tries to access a .k5identity file in a user's home dir |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
29 |
+ * which causes the Solaris gssd to hang when that home dir is shared as a |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
30 |
+ * sec=krb5 protected NFS share so we are disabling this for now. |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
31 |
+ */ |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
32 |
+#if 0 /* ************ Begin IFDEF'ed OUT ***************************** */ |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
33 |
ret = k5_plugin_register(context, PLUGIN_INTERFACE_CCSELECT, "k5identity", |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
34 |
ccselect_k5identity_initvt); |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
35 |
if (ret != 0) |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
36 |
goto cleanup; |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
37 |
-#endif |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
38 |
+#endif /* ************** END IFDEF'ed OUT ***************************** */ |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
39 |
|
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
40 |
ret = k5_plugin_register(context, PLUGIN_INTERFACE_CCSELECT, "realm", |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
41 |
ccselect_realm_initvt); |
6599
1d033832c5e7
24377741 Update Userland krb5 to MIT 1.14.3
Shawn Emery <shawn.emery@oracle.com>
parents:
6145
diff
changeset
|
42 |
diff --git a/src/man/krb5.conf.man b/src/man/krb5.conf.man |
1d033832c5e7
24377741 Update Userland krb5 to MIT 1.14.3
Shawn Emery <shawn.emery@oracle.com>
parents:
6145
diff
changeset
|
43 |
--- a/src/man/krb5.conf.man |
1d033832c5e7
24377741 Update Userland krb5 to MIT 1.14.3
Shawn Emery <shawn.emery@oracle.com>
parents:
6145
diff
changeset
|
44 |
+++ b/src/man/krb5.conf.man |
1d033832c5e7
24377741 Update Userland krb5 to MIT 1.14.3
Shawn Emery <shawn.emery@oracle.com>
parents:
6145
diff
changeset
|
45 |
@@ -943,10 +943,6 @@ dynamic modules, the following built\-in modules exist (and may be |
6145
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
46 |
disabled with the disable tag): |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
47 |
.INDENT 0.0 |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
48 |
.TP |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
49 |
-.B \fBk5identity\fP |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
50 |
-Uses a .k5identity file in the user\(aqs home directory to select a |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
51 |
-client principal |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
52 |
-.TP |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
53 |
.B \fBrealm\fP |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
54 |
Uses the service realm to guess an appropriate cache from the |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
55 |
collection |
6599
1d033832c5e7
24377741 Update Userland krb5 to MIT 1.14.3
Shawn Emery <shawn.emery@oracle.com>
parents:
6145
diff
changeset
|
56 |
diff --git a/src/tests/gssapi/t_ccselect.py b/src/tests/gssapi/t_ccselect.py |
1d033832c5e7
24377741 Update Userland krb5 to MIT 1.14.3
Shawn Emery <shawn.emery@oracle.com>
parents:
6145
diff
changeset
|
57 |
--- a/src/tests/gssapi/t_ccselect.py |
1d033832c5e7
24377741 Update Userland krb5 to MIT 1.14.3
Shawn Emery <shawn.emery@oracle.com>
parents:
6145
diff
changeset
|
58 |
+++ b/src/tests/gssapi/t_ccselect.py |
1d033832c5e7
24377741 Update Userland krb5 to MIT 1.14.3
Shawn Emery <shawn.emery@oracle.com>
parents:
6145
diff
changeset
|
59 |
@@ -103,22 +103,24 @@ r1.run(['./t_ccselect', gssserver], expected_code=1) |
6145
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
60 |
r1.kinit(bob, password('bob')) |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
61 |
|
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
62 |
# Try some cache selections using .k5identity. |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
63 |
-k5id = open(os.path.join(r1.testdir, '.k5identity'), 'w') |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
64 |
-k5id.write('%s realm=%s\n' % (alice, r1.realm)) |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
65 |
-k5id.write('%s service=ho*t host=%s\n' % (zaphod, hostname)) |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
66 |
-k5id.write('noprinc service=bogus') |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
67 |
-k5id.close() |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
68 |
-output = r1.run(['./t_ccselect', host1]) |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
69 |
-if output != (alice + '\n'): |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
70 |
- fail('alice not chosen via .k5identity realm line.') |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
71 |
-output = r2.run(['./t_ccselect', gssserver]) |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
72 |
-if output != (zaphod + '\n'): |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
73 |
- fail('zaphod not chosen via .k5identity service/host line.') |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
74 |
-output = r1.run(['./t_ccselect', refserver]) |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
75 |
-if output != (bob + '\n'): |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
76 |
- fail('bob not chosen via primary cache when no .k5identity line matches.') |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
77 |
-output = r1.run(['./t_ccselect', 'h:bogus@' + hostname], expected_code=1) |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
78 |
-if 'Can\'t find client principal noprinc' not in output: |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
79 |
- fail('Expected error not seen when k5identity selects bad principal.') |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
80 |
+#k5id = open(os.path.join(r1.testdir, '.k5identity'), 'w') |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
81 |
+#k5id.write('%s realm=%s\n' % (alice, r1.realm)) |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
82 |
+#k5id.write('%s service=ho*t host=%s\n' % (zaphod, hostname)) |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
83 |
+#k5id.write('noprinc service=bogus') |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
84 |
+#k5id.close() |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
85 |
+#output = r1.run(['./t_ccselect', host1]) |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
86 |
+#if output != (alice + '\n'): |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
87 |
+# fail('alice not chosen via .k5identity realm line.') |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
88 |
+#output = r2.run(['./t_ccselect', gssserver]) |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
89 |
+#if output != (zaphod + '\n'): |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
90 |
+# fail('zaphod not chosen via .k5identity service/host line.') |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
91 |
+#output = r1.run(['./t_ccselect', refserver]) |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
92 |
+#if output != (bob + '\n'): |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
93 |
+# fail('bob not chosen via primary cache when no .k5identity line matches.') |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
94 |
+#output = r1.run(['./t_ccselect', 'h:bogus@' + hostname], expected_code=1) |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
95 |
+#if 'Can\'t find client principal noprinc' not in output: |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
96 |
+# fail('Expected error not seen when k5identity selects bad principal.') |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
97 |
+sys.stderr.write("Support of k5identity ccselect plugin disabled, skipping " |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
98 |
+ "k5identity tests...\n"); |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
99 |
|
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
100 |
success('GSSAPI credential selection tests') |
6599
1d033832c5e7
24377741 Update Userland krb5 to MIT 1.14.3
Shawn Emery <shawn.emery@oracle.com>
parents:
6145
diff
changeset
|
101 |
diff --git a/src/tests/gssapi/t_client_keytab.py b/src/tests/gssapi/t_client_keytab.py |
1d033832c5e7
24377741 Update Userland krb5 to MIT 1.14.3
Shawn Emery <shawn.emery@oracle.com>
parents:
6145
diff
changeset
|
102 |
--- a/src/tests/gssapi/t_client_keytab.py |
1d033832c5e7
24377741 Update Userland krb5 to MIT 1.14.3
Shawn Emery <shawn.emery@oracle.com>
parents:
6145
diff
changeset
|
103 |
+++ b/src/tests/gssapi/t_client_keytab.py |
1d033832c5e7
24377741 Update Userland krb5 to MIT 1.14.3
Shawn Emery <shawn.emery@oracle.com>
parents:
6145
diff
changeset
|
104 |
@@ -21,15 +21,17 @@ if realm.user_princ not in out: |
6145
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
105 |
realm.run([kdestroy]) |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
106 |
|
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
107 |
# Test 2: no name/cache specified, pick principal from k5identity |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
108 |
-k5idname = os.path.join(realm.testdir, '.k5identity') |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
109 |
-k5id = open(k5idname, 'w') |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
110 |
-k5id.write('%s service=host host=%s\n' % (bob, hostname)) |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
111 |
-k5id.close() |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
112 |
-out = realm.run(['./t_ccselect', gssserver]) |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
113 |
-if bob not in out: |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
114 |
- fail('Authenticated as wrong principal') |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
115 |
-os.remove(k5idname) |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
116 |
-realm.run([kdestroy]) |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
117 |
+#k5idname = os.path.join(realm.testdir, '.k5identity') |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
118 |
+#k5id = open(k5idname, 'w') |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
119 |
+#k5id.write('%s service=host host=%s\n' % (bob, hostname)) |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
120 |
+#k5id.close() |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
121 |
+#out = realm.run(['./t_ccselect', gssserver]) |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
122 |
+#if bob not in out: |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
123 |
+# fail('Authenticated as wrong principal') |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
124 |
+#os.remove(k5idname) |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
125 |
+#realm.run([kdestroy]) |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
126 |
+sys.stderr.write("Support of k5identity ccselect plugin disabled, skipping " |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
127 |
+ "Test 2...\n"); |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
128 |
|
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
129 |
# Test 3: no name/cache specified, default ccache has name but no creds |
2a630b6b61ec
23301407 MIT krb k5identity feature hangs gssd when accessing krb protected nfs home dir
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
130 |
realm.run(['./ccinit', realm.ccache, bob]) |