}
-const char options[] = "a:As:S" "Cd:D:e:h:H:InO:p:QR:U:vw:WxX:Y:Z";
+const char options[] = "a:As:S"
+ "Cd:D:e:h:H:InO:p:QR:U:vVw:WxX:Y:Z";
int
handle_private_option( int i )
int crit;
char *control, *cvalue;
case 'E': /* passwd controls */
- if( version == LDAP_VERSION2 ) {
+ if( protocol == LDAP_VERSION2 ) {
fprintf( stderr, "%s: -E incompatible with LDAPv%d\n",
- prog, version );
+ prog, protocol );
exit( EXIT_FAILURE );
}
char *user = NULL;
LDAP *ld = NULL;
- struct berval bv = {0};
+ struct berval bv = {0, NULL};
BerElement *ber = NULL;
int id, code = LDAP_OTHER;
prog = lutil_progname( "ldappasswd", argc, argv );
/* LDAPv3 only */
- version = LDAP_VERSION3;
+ protocol = LDAP_VERSION3;
tool_args( argc, argv );