diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2011-02-23 17:40:44 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-03-07 14:58:16 -0500 |
commit | 1184c6ef1c36fbd2304fe18ff7720fceada1aab0 (patch) | |
tree | 9c3661114e3d425efbd181a28c3a3794be32e356 /src/providers/ipa/ipa_utils.c | |
parent | 2825ea49b18af95a192d1231fa655fe687b0a5ba (diff) | |
download | sssd-1184c6ef1c36fbd2304fe18ff7720fceada1aab0.tar.gz sssd-1184c6ef1c36fbd2304fe18ff7720fceada1aab0.tar.xz sssd-1184c6ef1c36fbd2304fe18ff7720fceada1aab0.zip |
Use realm for basedn instead of IPA domain
https://fedorahosted.org/sssd/ticket/807
Diffstat (limited to 'src/providers/ipa/ipa_utils.c')
-rw-r--r-- | src/providers/ipa/ipa_utils.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/providers/ipa/ipa_utils.c b/src/providers/ipa/ipa_utils.c index 504a8772c..a1e48f2d7 100644 --- a/src/providers/ipa/ipa_utils.c +++ b/src/providers/ipa/ipa_utils.c @@ -23,6 +23,8 @@ */ +#include <ctype.h> + #include "providers/ipa/ipa_common.h" int domain_to_basedn(TALLOC_CTX *memctx, const char *domain, char **basedn) @@ -52,6 +54,10 @@ int domain_to_basedn(TALLOC_CTX *memctx, const char *domain, char **basedn) return ENOMEM; } + for (p=dn; *p; ++p) { + *p = tolower(*p); + } + *basedn = dn; return EOK; } |