svn rev #25333: trunk/src/appl/gss-sample/
hartmans@MIT.EDU
hartmans at MIT.EDU
Fri Oct 14 10:40:17 EDT 2011
http://src.mit.edu/fisheye/changelog/krb5/?cs=25333
Commit By: hartmans
Log Message:
Add "-dce" commandline option to gss-client.c to set GSS_C_DCE_STYLE flag
Signed-off-by: Kevin Wasserman <kevin.wasserman at painless-security.com>
Changed Files:
U trunk/src/appl/gss-sample/README
U trunk/src/appl/gss-sample/gss-client.c
U trunk/src/appl/gss-sample/t_gss_sample.py
Modified: trunk/src/appl/gss-sample/README
===================================================================
--- trunk/src/appl/gss-sample/README 2011-10-14 14:40:10 UTC (rev 25332)
+++ trunk/src/appl/gss-sample/README 2011-10-14 14:40:17 UTC (rev 25333)
@@ -84,7 +84,7 @@
The client's command line usage is
gss-client [-port port] [-mech mechanism] [-d] [-f] [-q]
- [-seq] [-noreplay] [-nomutual]
+ [-seq] [-noreplay] [-nomutual] [-dce]
[-ccount count] [-mcount count] [-na] [-nw] [-nx] [-nm]
host service_name msg
@@ -112,6 +112,8 @@
-noreplay Tells the client to disable the use of replay
detection.
+-dce Tells the client to request DCE-style authentication.
+
-nomutual Tells the client to disable the use of mutual authentication.
-f Tells the client that the "msg" argument is actually the name
Modified: trunk/src/appl/gss-sample/gss-client.c
===================================================================
--- trunk/src/appl/gss-sample/gss-client.c 2011-10-14 14:40:10 UTC (rev 25332)
+++ trunk/src/appl/gss-sample/gss-client.c 2011-10-14 14:40:17 UTC (rev 25333)
@@ -825,6 +825,8 @@
usage();
max_threads = atoi(*argv);
#endif
+ } else if (strcmp(*argv, "-dce") == 0) {
+ gss_flags |= GSS_C_DCE_STYLE;
} else if (strcmp(*argv, "-d") == 0) {
gss_flags |= GSS_C_DELEG_FLAG;
} else if (strcmp(*argv, "-seq") == 0) {
Modified: trunk/src/appl/gss-sample/t_gss_sample.py
===================================================================
--- trunk/src/appl/gss-sample/t_gss_sample.py 2011-10-14 14:40:10 UTC (rev 25332)
+++ trunk/src/appl/gss-sample/t_gss_sample.py 2011-10-14 14:40:17 UTC (rev 25333)
@@ -72,9 +72,13 @@
tgs_test(realm, ['-krb5'])
tgs_test(realm, ['-spnego'])
tgs_test(realm, ['-iakerb'])
+ # test default (i.e., krb5) mechanism with GSS_C_DCE_STYLE
+ tgs_test(realm, ['-dce'])
as_test(realm, ['-krb5'])
as_test(realm, ['-spnego'])
as_test(realm, ['-iakerb'])
+ # test default (i.e., krb5) mechanism with GSS_C_DCE_STYLE
+ as_test(realm, ['-dce'])
success('GSS sample application')
More information about the cvs-krb5
mailing list