diff options
Diffstat (limited to 'src/providers/ad')
-rw-r--r-- | src/providers/ad/ad_common.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/providers/ad/ad_common.c b/src/providers/ad/ad_common.c index 90cfe412..7568798a 100644 --- a/src/providers/ad/ad_common.c +++ b/src/providers/ad/ad_common.c @@ -33,7 +33,6 @@ ad_get_common_options(TALLOC_CTX *mem_ctx, { errno_t ret; int gret; - size_t i; struct ad_options *opts = NULL; char *domain; char *server; @@ -98,16 +97,12 @@ ad_get_common_options(TALLOC_CTX *mem_ctx, /* Always use the upper-case AD domain for the kerberos realm */ - realm = talloc_strdup(opts, domain); + realm = get_uppercase_realm(opts, domain); if (!realm) { ret = ENOMEM; goto done; } - for (i = 0; realm[i]; i++) { - realm[i] = toupper(realm[i]); - } - ret = dp_opt_set_string(opts->basic, AD_KRB5_REALM, realm); if (ret != EOK) { goto done; |