mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-18 10:07:56 -05:00
Change start tls warning message
This commit is contained in:
parent
ffcdc6d11d
commit
ed9bacc1a6
5 changed files with 5 additions and 10 deletions
|
|
@ -546,11 +546,10 @@ main( int argc, char **argv )
|
|||
}
|
||||
|
||||
if ( use_tls && ldap_start_tls_s( ld, NULL, NULL ) != LDAP_SUCCESS ) {
|
||||
ldap_perror( ld, "ldap_start_tls" );
|
||||
if ( use_tls > 1 ) {
|
||||
ldap_perror( ld, "ldap_start_tls" );
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
fprintf( stderr, "WARNING: could not start TLS\n" );
|
||||
}
|
||||
|
||||
if (want_bindpw) {
|
||||
|
|
|
|||
|
|
@ -616,11 +616,10 @@ main( int argc, char **argv )
|
|||
}
|
||||
|
||||
if ( use_tls && ldap_start_tls_s( ld, NULL, NULL ) != LDAP_SUCCESS ) {
|
||||
ldap_perror( ld, "ldap_start_tls" );
|
||||
if ( use_tls > 1 ) {
|
||||
ldap_perror( ld, "ldap_start_tls" );
|
||||
return( EXIT_FAILURE );
|
||||
}
|
||||
fprintf( stderr, "WARNING: could not start TLS\n" );
|
||||
}
|
||||
|
||||
if (want_bindpw) {
|
||||
|
|
|
|||
|
|
@ -583,11 +583,10 @@ main(int argc, char **argv)
|
|||
}
|
||||
|
||||
if ( use_tls && ldap_start_tls_s( ld, NULL, NULL ) != LDAP_SUCCESS ) {
|
||||
ldap_perror( ld, "ldap_start_tls" );
|
||||
if ( use_tls > 1 ) {
|
||||
ldap_perror( ld, "ldap_start_tls" );
|
||||
return( EXIT_FAILURE );
|
||||
}
|
||||
fprintf( stderr, "WARNING: could not start TLS\n" );
|
||||
}
|
||||
|
||||
if (want_bindpw) {
|
||||
|
|
|
|||
|
|
@ -597,11 +597,10 @@ main( int argc, char *argv[] )
|
|||
}
|
||||
|
||||
if ( use_tls && ldap_start_tls_s( ld, NULL, NULL ) != LDAP_SUCCESS ) {
|
||||
ldap_perror( ld, "ldap_start_tls" );
|
||||
if ( use_tls > 1 ) {
|
||||
ldap_perror( ld, "ldap_start_tls" );
|
||||
return( EXIT_FAILURE );
|
||||
}
|
||||
fprintf( stderr, "WARNING: could not start TLS\n" );
|
||||
}
|
||||
|
||||
if ( authmethod == LDAP_AUTH_SASL ) {
|
||||
|
|
|
|||
|
|
@ -733,11 +733,10 @@ main( int argc, char **argv )
|
|||
|
||||
|
||||
if ( use_tls && ldap_start_tls_s( ld, NULL, NULL ) != LDAP_SUCCESS ) {
|
||||
ldap_perror( ld, "ldap_start_tls" );
|
||||
if ( use_tls > 1 ) {
|
||||
ldap_perror( ld, "ldap_start_tls" );
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
fprintf( stderr, "WARNING: could not start TLS\n" );
|
||||
}
|
||||
|
||||
if (want_bindpw) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue