#ifdef HAVE_LDAP
#define LDAP_BROWSE_FILTER "(objectclass=cupsPrinter)"
-static LDAP *ldap_connect(void);
+static LDAP *ldap_new_connection(void);
static LDAP *ldap_reconnect(void);
static void ldap_disconnect(LDAP *ld);
static int ldap_search_rec(LDAP *ld, char *base, int scope,
#ifdef HAVE_LDAP
/*
- * 'ldap_connect()' - Start new LDAP connection
+ * 'ldap_new_connection()' - Start new LDAP connection
*/
static LDAP * /* O - LDAP handle */
-ldap_connect(void)
+ldap_new_connection(void)
{
int rc; /* LDAP API status */
int version = 3; /* LDAP version */
*/
if (BrowseLDAPCACertFile) {
- debug_printf("ldap_connect: Setting CA certificate file \"%s\"\n",
+ debug_printf("ldap_new_connection: Setting CA certificate file \"%s\"\n",
BrowseLDAPCACertFile);
if ((rc = ldap_set_option(NULL, LDAP_OPT_X_TLS_CACERTFILE,
ldap_port = LDAP_PORT;
}
- debug_printf("ldap_connect: PROT:%s HOST:%s PORT:%d\n",
+ debug_printf("ldap_new_connection: PROT:%s HOST:%s PORT:%d\n",
ldap_protocol, ldap_host, ldap_port);
/*
debug_printf("Try LDAP reconnect...\n");
- TempBrowseLDAPHandle = ldap_connect();
+ TempBrowseLDAPHandle = ldap_new_connection();
if (TempBrowseLDAPHandle != NULL) {
if (BrowseLDAPHandle != NULL)
* Open LDAP handle...
*/
- BrowseLDAPHandle = ldap_connect();
+ BrowseLDAPHandle = ldap_new_connection();
}
cupsdUpdateLDAPBrowse();