Skip to content

Commit

Permalink
try the v2 mech, and if that fails, then the v1 mech.
Browse files Browse the repository at this point in the history
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/marc-3des@10953 dc483132-0cff-0310-8789-dd5450dbe970
  • Loading branch information
marc committed Sep 30, 1998
1 parent 9b4fa1f commit 955bab2
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/lib/kadm5/clnt/client_init.c
Expand Up @@ -444,12 +444,26 @@ static kadm5_ret_t _kadm5_init_any(char *client_name,
&minor_stat,
gss_client_creds,
gss_target,
GSS_C_NULL_OID,
gss_mech_krb5_v2,
GSS_C_MUTUAL_FLAG | GSS_C_REPLAY_FLAG,
0,
NULL,
NULL,
NULL);

if (!handle->clnt->cl_auth)
handle->clnt->cl_auth = auth_gssapi_create(handle->clnt,
&gssstat,
&minor_stat,
gss_client_creds,
gss_target,
gss_mech_krb5,
GSS_C_MUTUAL_FLAG | GSS_C_REPLAY_FLAG,
0,
NULL,
NULL,
NULL);

(void) gss_release_name(&minor_stat, &gss_target);
#endif /* ! INIT_TEST */

Expand Down

0 comments on commit 955bab2

Please sign in to comment.