X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=clients%2Ftools%2Fldapmodrdn.c;h=066ebfd6dc805436b5bddd50e55a4be1905341a3;hb=fb6590f8db1b3cec24e00a888e033ee427d4aaab;hp=8782d1c077e7ba5d2a31861ed8ff0693a8005a2c;hpb=e97cdfb7a9d13d619f97a62d9070bb4cfb17f64a;p=openldap diff --git a/clients/tools/ldapmodrdn.c b/clients/tools/ldapmodrdn.c index 8782d1c077..066ebfd6dc 100644 --- a/clients/tools/ldapmodrdn.c +++ b/clients/tools/ldapmodrdn.c @@ -77,6 +77,7 @@ usage( const char *s ) " -D binddn bind DN\n" " -f file read operations from `file'\n" " -h host LDAP server\n" +" -H URI LDAP Uniform Resource Indentifier(s)\n" " -I use SASL Interactive mode\n" " -k use Kerberos authentication\n" " -K like -k, but do only step 1 of the Kerberos bind\n" @@ -551,8 +552,9 @@ main(int argc, char **argv) (void) ldap_initialize( &ld, ldapuri ); } - if( ld != NULL ) { - fprintf( stderr, "Could not create LDAP session handle (%d): %s\n", rc ); + if( ld == NULL ) { + fprintf( stderr, "Could not create LDAP session handle (%d): %s\n", + rc, ldap_err2string(rc) ); return EXIT_FAILURE; }