]> git.sur5r.net Git - openldap/blobdiff - clients/tools/ldappasswd.c
Add -H to usage
[openldap] / clients / tools / ldappasswd.c
index ad5af860108cdf15c856a1de2a57f9e5226bbfe0..9a6cb8838a5ef16903122385c803cf656b051269 100644 (file)
@@ -580,7 +580,8 @@ main( int argc, char *argv[] )
        }
 
        if( ld == NULL ) {
-               fprintf( stderr, "Could not create LDAP session handle (%d): %s\n", rc );
+               fprintf( stderr, "Could not create LDAP session handle (%d): %s\n",
+                       rc, ldap_err2string(rc) );
                return EXIT_FAILURE;
        }