Lines Matching defs:realm

169     const char *realm;
183 realm = dp_opt_get_cstring(opts, KRB5_REALM);
184 if (realm == NULL) {
190 realm = dom->name;
193 krb5_ctx->realm = talloc_strdup(krb5_ctx, realm);
194 if (krb5_ctx->realm == NULL) {
196 "Failed to set realm, krb5_child might not work as expected.\n");
391 errno_t write_krb5info_file(const char *realm, const char *server,
403 if (realm == NULL || *realm == '\0' || server == NULL || *server == '\0' ||
406 "Missing or empty realm, server or service.\n");
410 if (sss_krb5_realm_has_proxy(realm)) {
412 "KDC Proxy available for realm [%s], no kdcinfo file created.\n",
413 realm);
441 krb5info_name = talloc_asprintf(tmp_ctx, name_tmpl, realm);
563 ret = write_krb5info_file(krb5_service->realm, safe_address,
725 const char *realm,
756 service->realm = talloc_strdup(service, realm);
757 if (!service->realm) {
801 errno_t remove_krb5_info_files(TALLOC_CTX *mem_ctx, const char *realm)
807 file = talloc_asprintf(mem_ctx, KDCINFO_TMPL, realm);
821 file = talloc_asprintf(mem_ctx, KPASSWDINFO_TMPL, realm);
873 ret = remove_krb5_info_files(tmp_ctx, ctx->realm);
888 char *realm = (char *)private_data;
891 ret = remove_krb5_info_files(se, realm);
924 ctx->realm = talloc_strdup(ctx, krb5_realm);
925 if (ctx->realm == NULL) {
993 const char *realm = NULL;
1015 realm = dp_opt_get_cstring(krb5_ctx->opts, KRB5_REALM);
1016 if (realm == NULL) {
1017 DEBUG(SSSDBG_OP_FAILURE, "Missing Kerberos realm.\n");
1035 name, realm != NULL ? realm : uc_dom);
1051 errno_t compare_principal_realm(const char *upn, const char *realm,
1056 if (upn == NULL || realm == NULL || different_realm == NULL ||
1057 *upn == '\0' || *realm == '\0') {
1067 if (strcmp(realm, at_sign + 1) == 0) {