diff options
author | Sumit Bose <sbose@redhat.com> | 2009-08-24 15:17:37 +0200 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-08-24 11:03:22 -0400 |
commit | ce0111fe4f1c5ea09a23c2be43fc1fcc1cdbdac8 (patch) | |
tree | dcea6a6071220dda84ee0e6abc6479780c9ce41d /server/providers/ldap/sdap.c | |
parent | 7bc48f82f587b148b821e34f57c1414e82a18276 (diff) | |
download | sssd-ce0111fe4f1c5ea09a23c2be43fc1fcc1cdbdac8.tar.gz sssd-ce0111fe4f1c5ea09a23c2be43fc1fcc1cdbdac8.tar.bz2 sssd-ce0111fe4f1c5ea09a23c2be43fc1fcc1cdbdac8.zip |
some UPN handling fixes
- making the realm part upper case is now optional and done in the
LDAP backend
- using a username@realm UPN is now optional
Diffstat (limited to 'server/providers/ldap/sdap.c')
-rw-r--r-- | server/providers/ldap/sdap.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/server/providers/ldap/sdap.c b/server/providers/ldap/sdap.c index 0b16db43..312a3674 100644 --- a/server/providers/ldap/sdap.c +++ b/server/providers/ldap/sdap.c @@ -40,7 +40,8 @@ struct sdap_gen_opts default_basic_opts[] = { { "groupSearchScope", "sub", NULL }, { "groupSearchFilter", NULL, NULL }, { "ldapSchema", "rfc2307", NULL }, - { "offline_timeout", "5", NULL } + { "offline_timeout", "5", NULL }, + { "force_upper_case_realm", "0", NULL } }; struct sdap_id_map default_user_map[] = { @@ -137,6 +138,11 @@ int sdap_get_options(TALLOC_CTX *memctx, &opts->offline_timeout); if (ret != EOK) goto done; + ret = confdb_get_bool(cdb, opts, conf_path, + "force_upper_case_realm", false, + &opts->force_upper_case_realm); + if (ret != EOK) goto done; + /* schema type */ if (strcasecmp(opts->basic[SDAP_SCHEMA].value, "rfc2307") == 0) { opts->schema_type = SDAP_SCHEMA_RFC2307; |