return 1;
}
- fprintf( stderr, "PID=%ld - got %d values.\n", (long) pid, ndns );
+ fprintf( stderr, " PID=%ld - got %d values.\n", (long) pid, ndns );
/* Ok, got list of RDNs, now start binding to each */
for ( i = 0; i < maxloop; i++ ) {
end = GetTickCount();
end -= beg;
- fprintf( stderr, "Done %d Binds in %d.%03d seconds.\n", i,
- end / 1000, end % 1000 );
+ fprintf( stderr, " PID=%ld - Bind done %d in %d.%03d seconds.\n",
+ (long) pid, i, end / 1000, end % 1000 );
#else
gettimeofday( &end, NULL );
end.tv_usec -= beg.tv_usec;
}
end.tv_sec -= beg.tv_sec;
- fprintf( stderr, "Done %d Binds in %ld.%06ld seconds.\n", i,
- (long) end.tv_sec, (long) end.tv_usec );
+ fprintf( stderr, " PID=%ld - Bind done %d in %ld.%06ld seconds.\n",
+ (long) pid, i, (long) end.tv_sec, (long) end.tv_usec );
#endif
if ( dns ) {
ldap_msgfree( res );
if ( do_retry == maxretries ) {
- fprintf( stderr, "PID=%ld - got %d values.\n", (long) pid, nvalues );
+ fprintf( stderr, " PID=%ld - got %d values.\n", (long) pid, nvalues );
}
for ( i = 0; i < innerloop; i++ ) {
ldap_msgfree( res );
if ( do_retry == maxretries ) {
- fprintf( stderr, "PID=%ld - got %d values.\n", (long) pid, nvalues );
+ fprintf( stderr, " PID=%ld - got %d values.\n", (long) pid, nvalues );
}
for ( i = 0; i < innerloop; i++ ) {
bargs[banum - 4] = breqs[jj];
bargs[banum - 2] = bcreds[jj];
+ bargs[banum - 1] = NULL;
if ( battrs[jj] != NULL ) {
+ bargs[banum - 5] = "-b";
bargs[banum - 1] = "-a";
bargs[banum] = battrs[jj];
-
- } else {
- sargs[sanum - 1] = NULL;
}
fork_child( bcmd, bargs );
+ bargs[banum - 5] = "-D";
}
}