]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
cups-browsed: Renamed ldap_connect() due to conflict in new openldap
authorBhavna2020 <75832214+Bhavna2020@users.noreply.github.com>
Wed, 12 May 2021 17:02:44 +0000 (22:32 +0530)
committerTill Kamppeter <till.kamppeter@gmail.com>
Tue, 15 Jun 2021 18:38:19 +0000 (20:38 +0200)
(cherry picked from commit d8269287647819c96a24a8f345f0f541df45c866)

utils/cups-browsed.c

index 0c3350555de4b68fd236767c1447bed18cdd01fc..d1c3bde93066da6314405209b7a648d34f29b692 100644 (file)
@@ -91,7 +91,7 @@ char    *BrowseLDAPCACertFile = NULL;
 
 #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,
@@ -4349,11 +4349,11 @@ ldap_rebind_proc(LDAP *RebindLDAPHandle,   /* I - LDAP handle */
 
 #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 */
@@ -4373,7 +4373,7 @@ ldap_connect(void)
   */
 
   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,
@@ -4434,7 +4434,7 @@ ldap_connect(void)
       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);
 
  /*
@@ -4602,7 +4602,7 @@ ldap_reconnect(void)
 
   debug_printf("Try LDAP reconnect...\n");
 
-  TempBrowseLDAPHandle = ldap_connect();
+  TempBrowseLDAPHandle = ldap_new_connection();
 
   if (TempBrowseLDAPHandle != NULL) {
     if (BrowseLDAPHandle != NULL)
@@ -11388,7 +11388,7 @@ browse_ldap_poll (gpointer data)
        * Open LDAP handle...
        */
 
-      BrowseLDAPHandle = ldap_connect();
+      BrowseLDAPHandle = ldap_new_connection();
     }
 
     cupsdUpdateLDAPBrowse();