summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-05-19 10:07:59 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-05-20 14:04:56 -0400
commite2f32ec2253f6034cc6290ed38a4a3a87a374014 (patch)
treee1919593472767c0f855ec6ff385a8fc8e2e6aff
parent98f575bfe887af5ec0a4a474386e79b6e34b637d (diff)
downloadsssd_unused-e2f32ec2253f6034cc6290ed38a4a3a87a374014.tar.gz
sssd_unused-e2f32ec2253f6034cc6290ed38a4a3a87a374014.tar.xz
sssd_unused-e2f32ec2253f6034cc6290ed38a4a3a87a374014.zip
Fix check if LDAP id provider is already initialized
-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 af98d8e5..3079caad 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;