LDAP *ld = NULL;
int valuesReturnFilter;
BerElement *ber;
- struct berval *bvalp;
+ struct berval *bvalp = NULL;
char *vrFilter = NULL, *control = NULL, *s;
debug = verbose = not = vals2tmp = referrals = valuesReturnFilter =
attrsonly = manageDSAit = ldif = want_bindpw = 0;
+ prog = lutil_progname( "ldapsearch", argc, argv );
+
lutil_log_initialize(argc, argv);
deref = sizelimit = timelimit = version = -1;
urlize( def_urlpre );
- prog = (prog = strrchr(argv[0], *LDAP_DIRSEP)) == NULL ? argv[0] : prog + 1;
-
while (( i = getopt( argc, argv, "Aa:b:E:F:f:Ll:S:s:T:tuz:"
"Cd:D:h:H:IkKMnO:p:P:QR:U:vw:WxX:Y:Z")) != EOF )
{
}
if ( valuesReturnFilter ) {
- struct berval *bvalp;
ctrls[i++]=&c2;
ctrls[i] = NULL;