]> git.sur5r.net Git - openldap/blobdiff - clients/tools/ldappasswd.c
StartTLS requires LDAPv3
[openldap] / clients / tools / ldappasswd.c
index 70de7e66890002f66b3db00b63c65cc7a50cba9f..a5cd3db7ae960a5a8113c11224ab93a6ea34606e 100644 (file)
@@ -302,6 +302,7 @@ main( int argc, char *argv[] )
        /* don't chase referrals */
        ldap_set_option( ld, LDAP_OPT_REFERRALS, LDAP_OPT_OFF );
 
+       /* LDAPv3 only */
        version = 3;
        rc = ldap_set_option( ld, LDAP_OPT_PROTOCOL_VERSION, &version );
 
@@ -448,5 +449,5 @@ main( int argc, char *argv[] )
        /* disconnect from server */
        ldap_unbind (ld);
 
-       return ( EXIT_SUCCESS );
+       return EXIT_SUCCESS;
 }