]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Conditionalize use of LDAP_OPT_DEBUG_LEVEL
authorGreg Hudson <ghudson@mit.edu>
Fri, 28 Feb 2014 15:17:29 +0000 (10:17 -0500)
committerGreg Hudson <ghudson@mit.edu>
Fri, 28 Feb 2014 23:17:48 +0000 (18:17 -0500)
The LDAP debug level option (#7551) causes a build failure with the
Solaris LDAP library, which does not have LDAP_OPT_DEBUG_LEVEL.

ticket: 7870 (new)
target_version: 1.12.2
tags: pullup

src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap_conn.c

index b2730d689d5d9ff4ef9dd992444d8292354ed3a6..b9f70fd6cd3f89e3f12d2b875e8e6a38e099e309 100644 (file)
@@ -154,7 +154,9 @@ krb5_ldap_db_init(krb5_context context, krb5_ldap_context *ldap_context)
     if ((st=krb5_validate_ldap_context(context, ldap_context)) != 0)
         return st;
 
+#ifdef LDAP_OPT_DEBUG_LEVEL
     ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, &ldap_context->ldap_debug);
+#endif
     ldap_set_option(NULL, LDAP_OPT_PROTOCOL_VERSION, &version);
 #ifdef LDAP_OPT_NETWORK_TIMEOUT
     ldap_set_option(NULL, LDAP_OPT_NETWORK_TIMEOUT, &local_timelimit);