we need to generate a local subkey here
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11333 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -318,7 +318,7 @@ init_auth
|
|||||||
&cred->session);
|
&cred->session);
|
||||||
|
|
||||||
flags = 0;
|
flags = 0;
|
||||||
ap_options = AP_OPTS_USE_SUBKEY;
|
ap_options = 0;
|
||||||
if (req_flags & GSS_C_DELEG_FLAG)
|
if (req_flags & GSS_C_DELEG_FLAG)
|
||||||
do_delegation ((*context_handle)->auth_context,
|
do_delegation ((*context_handle)->auth_context,
|
||||||
ccache, cred, target_name, &fwd_data, &flags);
|
ccache, cred, target_name, &fwd_data, &flags);
|
||||||
@@ -367,6 +367,16 @@ init_auth
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
kret = krb5_auth_con_generatelocalsubkey(gssapi_krb5_context,
|
||||||
|
(*context_handle)->auth_context,
|
||||||
|
&cred->session);
|
||||||
|
if(kret) {
|
||||||
|
gssapi_krb5_set_error_string ();
|
||||||
|
*minor_status = kret;
|
||||||
|
ret = GSS_S_FAILURE;
|
||||||
|
goto failure;
|
||||||
|
}
|
||||||
|
|
||||||
kret = krb5_build_authenticator (gssapi_krb5_context,
|
kret = krb5_build_authenticator (gssapi_krb5_context,
|
||||||
(*context_handle)->auth_context,
|
(*context_handle)->auth_context,
|
||||||
enctype,
|
enctype,
|
||||||
|
@@ -318,7 +318,7 @@ init_auth
|
|||||||
&cred->session);
|
&cred->session);
|
||||||
|
|
||||||
flags = 0;
|
flags = 0;
|
||||||
ap_options = AP_OPTS_USE_SUBKEY;
|
ap_options = 0;
|
||||||
if (req_flags & GSS_C_DELEG_FLAG)
|
if (req_flags & GSS_C_DELEG_FLAG)
|
||||||
do_delegation ((*context_handle)->auth_context,
|
do_delegation ((*context_handle)->auth_context,
|
||||||
ccache, cred, target_name, &fwd_data, &flags);
|
ccache, cred, target_name, &fwd_data, &flags);
|
||||||
@@ -367,6 +367,16 @@ init_auth
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
kret = krb5_auth_con_generatelocalsubkey(gssapi_krb5_context,
|
||||||
|
(*context_handle)->auth_context,
|
||||||
|
&cred->session);
|
||||||
|
if(kret) {
|
||||||
|
gssapi_krb5_set_error_string ();
|
||||||
|
*minor_status = kret;
|
||||||
|
ret = GSS_S_FAILURE;
|
||||||
|
goto failure;
|
||||||
|
}
|
||||||
|
|
||||||
kret = krb5_build_authenticator (gssapi_krb5_context,
|
kret = krb5_build_authenticator (gssapi_krb5_context,
|
||||||
(*context_handle)->auth_context,
|
(*context_handle)->auth_context,
|
||||||
enctype,
|
enctype,
|
||||||
|
Reference in New Issue
Block a user