I am converting a website fro being hosted on Linux and Apache to Windows and IIS. The pages are currently written in php but new functionality will be in something along the lines of C#.net
In the php files there is a popen command calling the ldapsearch command for linux and performing a query based on the users' id. What I need to do is switch this command over to dsquery, does anyone know of an easy way to convert between the two commands.
I have looked at Microsofts' documentation for dsquery but it seems lacking compared to ldapsearch. If anyone has a suggestion that may better fit this require I am open to the idea, but using dsquery or ldifde (or another built-in command) would be best.
Thank you for your help and replies.
|
| |||
|
feedback
|
|
PHP code should not have called ldapsearch. .net code should not call dsquery. | |||
feedback
|
|
are you sure you were looking in the right place for the documentation? Here is a link to the dsquery command. the ldapsearch syntax should be very similar from a dsquery filter perspective. off hte top of my head (meaning I didn't test this) to query for a user by uid:
| |||
|
feedback
|