This will allow us to specify the cache as one to fill with credentials.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
DATA_BLOB nt_response;
DATA_BLOB nt_session_key;
+ const char *ccache_name;
struct ccache_container *ccache;
struct gssapi_creds_container *client_gss_creds;
struct keytab_container *keytab;
return 0;
}
+ if (name != NULL) {
+ cred->ccache_name = talloc_strdup(cred, name);
+ if (cred->ccache_name == NULL) {
+ (*error_string) = error_message(ENOMEM);
+ return ENOMEM;
+ }
+ }
+
ccc = talloc(cred, struct ccache_container);
if (!ccc) {
(*error_string) = error_message(ENOMEM);