[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: correction::ldapsearch as own process
Mark Adamson wrote:
> > char commando[100];
> > strcpy(commando,".\\bin\\ldapsearch.exe -b \"dc=envilogg,dc=se\"
> > -s base \"objectclass=*\" > d:/myldif999.ldf");
> >
> > CreateProcess(NULL,commando,NULL,NULL,false,0,NULL,NULL,&si,&piDelete);
>
> Is the asterisk "*" in the objectclass being misused by CreateProcess()?
> Try putting a backslash \ in front of it like you do the double quotes
>
> -s base \"objectclass=\*\"
>
> This is just a guess, but I know the * gets a lot of uses.
>
> -Mark Adamson
> Carnegie Mellon Univ
I just tried it, didnt help :-((
I get the output(in the new console window for ldapsearch.exe):
ldap_search:Bad search filer
so something should be wrong with the objectclass stuff, right?
--
Sincerely
Mikael