summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-11-25 09:43:43 -0500
committerStephen Gallagher <sgallagh@redhat.com>2009-11-25 11:03:12 -0500
commit5ffb0443ca36ed2be262a7a5dda514686dbd539f (patch)
treefe1a5d353386d052850e13433c5f6bdd41bb28c9
parent04f015616f5e659086dacde2d4c398bab8ccf2ea (diff)
downloadsssd-5ffb0443ca36ed2be262a7a5dda514686dbd539f.tar.gz
sssd-5ffb0443ca36ed2be262a7a5dda514686dbd539f.tar.bz2
sssd-5ffb0443ca36ed2be262a7a5dda514686dbd539f.zip
In IPA, the realm is always the domain uppercased.
-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);