summaryrefslogtreecommitdiff
path: root/server/providers
diff options
context:
space:
mode:
Diffstat (limited to 'server/providers')
-rw-r--r--server/providers/ipa/ipa_common.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/server/providers/ipa/ipa_common.c b/server/providers/ipa/ipa_common.c
index 740aac8d..0b0eb489 100644
--- a/server/providers/ipa/ipa_common.c
+++ b/server/providers/ipa/ipa_common.c
@@ -507,6 +507,7 @@ int ipa_service_init(TALLOC_CTX *memctx, struct be_ctx *ctx,
TALLOC_CTX *tmp_ctx;
struct ipa_service *service;
char **list = NULL;
+ char *realm;
int count = 0;
int ret;
int i;
@@ -550,11 +551,15 @@ int ipa_service_init(TALLOC_CTX *memctx, struct be_ctx *ctx,
goto done;
}
- service->krb5_service->realm = talloc_strdup(service, domain);
- if (!service->krb5_service->realm) {
+ realm = talloc_strdup(service, domain);
+ if (!realm) {
ret = ENOMEM;
goto done;
}
+ for (i = 0; realm[i]; i++) {
+ realm[i] = toupper(realm[i]);
+ }
+ service->krb5_service->realm = realm;
/* split server parm into a list */
ret = sss_split_list(tmp_ctx, servers, ", ", &list, &count);