]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9305 clients: print actual error from connect failure 809/head
authorHoward Chu <hyc@openldap.org>
Fri, 5 Dec 2025 10:23:53 +0000 (10:23 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 9 Dec 2025 15:06:05 +0000 (15:06 +0000)
Related to ITS#10371

clients/tools/common.c

index 5e1ffbbdd5e88b953ccdb7f36f66d5935b65fb81..13fe3707d692196af27b68fb2f1811def29ccc6f 100644 (file)
@@ -1416,8 +1416,8 @@ dnssrv_free:;
                rc = ldap_connect( ld );
                if( rc != LDAP_SUCCESS ) {
                        fprintf( stderr,
-                               "Could not connect to URI=%s (%d): %s\n",
-                               ldapuri, rc, ldap_err2string(rc) );
+                               "Could not connect to URI=%s ", ldapuri );
+                       tool_perror2( ld, "" );
                        tool_exit( ld, EXIT_FAILURE );
                }