summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-05-19 10:07:59 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-05-27 14:44:14 -0400
commit2892c3c025882d63559a3adc06f62c2ca4e4c55a (patch)
treed41d5bf869f4e33b542570f93fcbe43634f324f1 /src
parentbeb8badafcd17a279e910b1133e777c129166ce1 (diff)
downloadsssd-2892c3c025882d63559a3adc06f62c2ca4e4c55a.tar.gz
sssd-2892c3c025882d63559a3adc06f62c2ca4e4c55a.tar.xz
sssd-2892c3c025882d63559a3adc06f62c2ca4e4c55a.zip
Fix check if LDAP id provider is already initialized
Diffstat (limited to 'src')
-rw-r--r--src/providers/ldap/ldap_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ldap/ldap_init.c b/src/providers/ldap/ldap_init.c
index 5c6f4b790..3a9b12d22 100644
--- a/src/providers/ldap/ldap_init.c
+++ b/src/providers/ldap/ldap_init.c
@@ -64,7 +64,7 @@ int sssm_ldap_id_init(struct be_ctx *bectx,
/* If we're already set up, just return that */
if(bectx->bet_info[BET_ID].mod_name &&
- strcmp("LDAP", bectx->bet_info[BET_ID].mod_name)) {
+ strcmp("ldap", bectx->bet_info[BET_ID].mod_name) == 0) {
DEBUG(8, ("Re-using sdap_id_ctx for this provider\n"));
*ops = bectx->bet_info[BET_ID].bet_ops;
*pvt_data = bectx->bet_info[BET_ID].pvt_bet_data;