By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,759 Members | 1,244 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,759 IT Pros & Developers. It's quick & easy.

How to filter Active Directory using objectGUID ?

P: n/a
Hello !

I want to do something like this:
string strFilter = "SyntaxThatICantFound";
DirectoryEntry dreAD = new DirectoryEntry("LDAP://", "Admin",
DirectorySearcher drsAD = new DirectorySearcher(dreAD);
drsAD.Filter = "objectGUID=" + strFilter;
But I can't found the syntax for the string strFilter, indeed in Active
Directory objectGUID is a Byte[] and the drsAD.Filter take a string.
"XX-XX-XX-XX-XX-XX-XX-XX-XX-XX-XX-XX-XX-XX-XX-XX" with no result.
Someone have a solution ?
Thanks in advance.
Nov 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.