Browse Source

Bug 727511 - ldclt SSL search requests are failing with "illegal error numbe
r -1" error

https://bugzilla.redhat.com/show_bug.cgi?id=727511
Resolves: bug 727511
Bug Description: ldclt SSL search requests are failing with "illegal error number -1" error
Reviewed by: me
Branch: master
Fix Description: Put openldap specific code inside ifdef block.
Platforms tested: RHEL5
Flag Day: no
Doc impact: no

Rich Megginson 14 years ago
parent
commit
009660a527
1 changed files with 5 additions and 2 deletions
  1. 5 2
      ldap/servers/slapd/tools/ldclt/ldapfct.c

+ 5 - 2
ldap/servers/slapd/tools/ldclt/ldapfct.c

@@ -603,6 +603,7 @@ referralSetup (
 
 
 
+#if defined(USE_OPENLDAP)
 /* ****************************************************************************
 	FUNCTION :	dirname
 	PURPOSE :	given a relative or absolute path name, return
@@ -702,6 +703,7 @@ done:
 
   return rc;
 }
+#endif /* USE_OPENLDAP */
 
 /* mctx is a global */
 LDAP *
@@ -1076,16 +1078,17 @@ connectToLDAP(thread_context *tttctx, const char *bufBindDN, const char *bufPass
     }
   }
 
- done:
+done:
   if (ret) {
     ldap_unbind_ext(ld, NULL, NULL);
     ld = NULL;
   }
+#if defined(USE_OPENLDAP)
   if (ldapurl) {
     PR_smprintf_free(ldapurl);
     ldapurl = NULL;
   }
-
+#endif
   return ld;
 }