bool ok;
char *upper = NULL;
bool get_krbtgt = false;
+ char *princ_str = NULL;
*entry = (struct sdb_entry) {};
}
}
+ smb_krb5_unparse_name(frame, context, principal, &princ_str);
+
if (!check_realm) {
TALLOC_FREE(frame);
return 0;
return 0;
}
+ DBG_ERR("%s: princ_str[%s] check_realm[%u] local_realm[%s] realm[%s]\n",
+ __location__,
+ princ_str,
+ check_realm,
+ lpcfg_realm(kdc_db_ctx->lp_ctx),
+ realm);
status = dsdb_trust_routing_table_load(kdc_db_ctx->samdb,
frame, &trt);
if (!NT_STATUS_IS_OK(status)) {
/*
* This principal has to be local
*/
+ DBG_ERR("%s: princ_str[%s] check_realm[%u] local_realm[%s] realm[%s]\n",
+ __location__,
+ princ_str,
+ check_realm,
+ lpcfg_realm(kdc_db_ctx->lp_ctx),
+ realm);
TALLOC_FREE(frame);
return 0;
}
/*
* This principal has to be local
*/
+ DBG_ERR("%s: princ_str[%s] check_realm[%u] local_realm[%s] realm[%s]\n",
+ __location__,
+ princ_str,
+ check_realm,
+ lpcfg_realm(kdc_db_ctx->lp_ctx),
+ realm);
TALLOC_FREE(frame);
return 0;
}
/*
* This principal has to be local
*/
+ DBG_ERR("%s: princ_str[%s] check_realm[%u] local_realm[%s] realm[%s]\n",
+ __location__,
+ princ_str,
+ check_realm,
+ lpcfg_realm(kdc_db_ctx->lp_ctx),
+ realm);
TALLOC_FREE(frame);
return 0;
}
*
* Just search in our local database.
*/
+ DBG_ERR("%s: princ_str[%s] check_realm[%u] local_realm[%s] realm[%s]\n",
+ __location__,
+ princ_str,
+ check_realm,
+ lpcfg_realm(kdc_db_ctx->lp_ctx),
+ realm);
TALLOC_FREE(frame);
return 0;
}
+ DBG_ERR("%s: princ_str[%s] check_realm[%u] local_realm[%s] realm[%s]\n",
+ __location__,
+ princ_str,
+ check_realm,
+ lpcfg_realm(kdc_db_ctx->lp_ctx),
+ realm);
+
ret = krb5_copy_principal(context, principal,
&entry->principal);
if (ret) {
return ret;
}
+ DBG_ERR("%s: princ_str[%s] check_realm[%u] local_realm[%s] realm[%s] upper[%s]\n",
+ __location__,
+ princ_str,
+ check_realm,
+ lpcfg_realm(kdc_db_ctx->lp_ctx),
+ realm,
+ upper);
TALLOC_FREE(frame);
return SDB_ERR_WRONG_REALM;
}