G
Guest
Hello !
I want to do something like this:
string strFilter = "SyntaxThatICantFound";
DirectoryEntry dreAD = new DirectoryEntry("LDAP://192.168.0.1", "Admin",
"Admin");
DirectorySearcher drsAD = new DirectorySearcher(dreAD);
drsAD.Filter = "objectGUID=" + strFilter;
drsAD.FindOne().GetDirectoryEntry();
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.
I have try "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" and
"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.
I want to do something like this:
string strFilter = "SyntaxThatICantFound";
DirectoryEntry dreAD = new DirectoryEntry("LDAP://192.168.0.1", "Admin",
"Admin");
DirectorySearcher drsAD = new DirectorySearcher(dreAD);
drsAD.Filter = "objectGUID=" + strFilter;
drsAD.FindOne().GetDirectoryEntry();
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.
I have try "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" and
"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.