diff options
author | Pavel Březina <pbrezina@redhat.com> | 2013-01-14 09:46:22 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-15 20:55:36 +0100 |
commit | 2f44d0aeeff3de67bdc531dfc0b4ef2b30984673 (patch) | |
tree | 5accd64380e8aa6dd8187f603fcd054ba8355cca /src/providers | |
parent | c3f785d5bd5c52b3498ac8d9ed9b671bd3bb5021 (diff) | |
download | sssd-2f44d0aeeff3de67bdc531dfc0b4ef2b30984673.tar.gz sssd-2f44d0aeeff3de67bdc531dfc0b4ef2b30984673.tar.xz sssd-2f44d0aeeff3de67bdc531dfc0b4ef2b30984673.zip |
let ldap_backup_chpass_uri work
https://fedorahosted.org/sssd/ticket/1760
Diffstat (limited to 'src/providers')
-rw-r--r-- | src/providers/ldap/ldap_init.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/providers/ldap/ldap_init.c b/src/providers/ldap/ldap_init.c index 52bd233f1..b8e5ee3aa 100644 --- a/src/providers/ldap/ldap_init.c +++ b/src/providers/ldap/ldap_init.c @@ -219,6 +219,7 @@ int sssm_ldap_chpass_init(struct be_ctx *bectx, void *data; struct sdap_auth_ctx *ctx = NULL; const char *urls; + const char *backup_urls; const char *dns_service_name; ret = sssm_ldap_auth_init(bectx, ops, &data); @@ -237,13 +238,14 @@ int sssm_ldap_chpass_init(struct be_ctx *bectx, } urls = dp_opt_get_string(ctx->opts->basic, SDAP_CHPASS_URI); - if (!urls && !dns_service_name) { + backup_urls = dp_opt_get_string(ctx->opts->basic, SDAP_CHPASS_BACKUP_URI); + if (!urls && !backup_urls && !dns_service_name) { DEBUG(9, ("ldap_chpass_uri and ldap_chpass_dns_service_name not set, " "using ldap_uri.\n")); ctx->chpass_service = NULL; } else { ret = sdap_service_init(ctx, ctx->be, "LDAP_CHPASS", dns_service_name, - urls, NULL, &ctx->chpass_service); + urls, backup_urls, &ctx->chpass_service); if (ret != EOK) { DEBUG(1, ("Failed to initialize failover service!\n")); goto done; |