diff options
author | Simo Sorce <ssorce@redhat.com> | 2009-11-25 09:43:43 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2009-11-25 11:03:12 -0500 |
commit | 5ffb0443ca36ed2be262a7a5dda514686dbd539f (patch) | |
tree | fe1a5d353386d052850e13433c5f6bdd41bb28c9 /server/providers | |
parent | 04f015616f5e659086dacde2d4c398bab8ccf2ea (diff) | |
download | sssd2-5ffb0443ca36ed2be262a7a5dda514686dbd539f.tar.gz sssd2-5ffb0443ca36ed2be262a7a5dda514686dbd539f.tar.xz sssd2-5ffb0443ca36ed2be262a7a5dda514686dbd539f.zip |
In IPA, the realm is always the domain uppercased.
Diffstat (limited to 'server/providers')
-rw-r--r-- | server/providers/ipa/ipa_common.c | 9 |
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); |