blpriv->ldap = ldap_init (blpriv->ldap_host, blpriv->ldap_port);
+ if (NULL != blpriv->ldap) {
+ gint ldap_error;
+
#if defined (DEBUG) && defined (LDAP_OPT_DEBUG_LEVEL)
{
gint debug_level = 4;
ldap_set_option (blpriv->ldap, LDAP_OPT_DEBUG_LEVEL, &debug_level);
}
#endif
- if (NULL != blpriv->ldap) {
- gint ldap_error;
-
ldap_error = ldap_set_option (blpriv->ldap, LDAP_OPT_PROTOCOL_VERSION, &protocol_version);
if (LDAP_SUCCESS != ldap_error) {
g_warning ("failed to set protocol version to LDAPv3");
fi
AM_CONDITIONAL(SUNLDAP, [test "$with_sunldap" != no])
+ LDAP_CFLAGS="$LDAP_CFLAGS -DLDAP_DEPRECATED"
else
dnl Win32 LDAP support
LDAP_CFLAGS="-DLDAP_DEPRECATED"