diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2012-07-05 20:44:24 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-07-06 11:44:46 -0400 |
commit | 346f41f1ede975cb2db0af570f5b454b9b306704 (patch) | |
tree | bf4eb3e7ad812658e36ecc4b4741b36c218f2cd3 | |
parent | a6cbaf2932762e3e191a6bec252afec3c91bf97c (diff) | |
download | sssd-346f41f1ede975cb2db0af570f5b454b9b306704.tar.gz sssd-346f41f1ede975cb2db0af570f5b454b9b306704.tar.bz2 sssd-346f41f1ede975cb2db0af570f5b454b9b306704.zip |
AD: Force case-insensitive operation in AD provider
-rw-r--r-- | src/providers/ad/ad_common.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/providers/ad/ad_common.c b/src/providers/ad/ad_common.c index 18534552..d8e761c8 100644 --- a/src/providers/ad/ad_common.c +++ b/src/providers/ad/ad_common.c @@ -113,6 +113,24 @@ ad_get_common_options(TALLOC_CTX *mem_ctx, goto done; } + /* Active Directory is always case-insensitive */ + dom->case_sensitive = false; + + /* Set this in the confdb so that the responders pick it + * up when they start up. + */ + ret = confdb_set_bool(cdb, conf_path, "case_sensitive", + dom->case_sensitive); + if (ret != EOK) { + DEBUG(SSSDBG_CRIT_FAILURE, + ("Could not set domain case-sensitive: [%s]\n", + strerror(ret))); + goto done; + } + + DEBUG(SSSDBG_CONF_SETTINGS, + ("Setting domain case-insensitive\n")); + ret = EOK; *_opts = opts; |