]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/open.c
Initial implementation of Kerberos password verification for
[openldap] / libraries / libldap / open.c
index 2ed9021b00fd13fe5465b9b362570ead821220f3..4cb084f50673aa6f0f8d7e90ffb2ecc0859e9a99 100644 (file)
@@ -321,15 +321,15 @@ open_ldap_connection( LDAP *ld, Sockbuf *sb, LDAPURLDesc *srv,
 #endif
 
        if ( krbinstancep != NULL ) {
-#ifdef HAVE_KERBEROS
+#ifdef LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
                char *c;
                if (( *krbinstancep = ldap_host_connected_to( sb )) != NULL &&
                    ( c = strchr( *krbinstancep, '.' )) != NULL ) {
                        *c = '\0';
                }
-#else /* HAVE_KERBEROS */
+#else /* LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND */
                *krbinstancep = NULL;
-#endif /* HAVE_KERBEROS */
+#endif /* LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND */
        }
 
        return( 0 );