Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
gss_cred_id_t cred_handle;
const char *error_string;
int ret;
+ bool ok;
DEBUG(10, ("Delegated credentials supplied by client\n"));
}
session_info->credentials = creds;
- cli_credentials_set_conf(creds, lp_ctx);
+ ok = cli_credentials_set_conf(creds, lp_ctx);
+ if (!ok) {
+ *reason = "Failed to load smb.conf";
+ return NULL;
+ }
+
/* Just so we don't segfault trying to get at a username */
cli_credentials_set_anonymous(creds);