]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/sbind.c
Remove LDAP_PORT dependencies so that ldap.conf defaults take over.
[openldap] / libraries / libldap / sbind.c
index e8a5b2731fba421c8d9424291f140c2891cdf36b..10497561016ea6e5a875074452a5b3134053a71f 100644 (file)
@@ -15,9 +15,8 @@ static char copyright[] = "@(#) Copyright (c) 1993 Regents of the University of
 
 #include <ac/socket.h>
 #include <ac/string.h>
+#include <ac/time.h>
 
-#include "lber.h"
-#include "ldap.h"
 #include "ldap-int.h"
 
 
@@ -68,11 +67,11 @@ ldap_simple_bind( LDAP *ld, char *dn, char *passwd )
                return( -1 );
        }
 
-#ifndef NO_CACHE
+#ifndef LDAP_NOCACHE
        if ( ld->ld_cache != NULL ) {
                ldap_flush_cache( ld );
        }
-#endif /* !NO_CACHE */
+#endif /* !LDAP_NOCACHE */
 
        /* send the message */
        return( ldap_send_initial_request( ld, LDAP_REQ_BIND, dn, ber ));