"There is no such object on the server" when I try to search users from a group RRS feed

  • Question

  • User-1829411134 posted

    DirectoryEntry entry = new DirectoryEntry("LDAP://DC=mycompany,DC=corp,cn=testgroup1,ou=group", adusername, adpassword); 
    entry.RefreshCache();     //ERROR here: "There is no such object on the server"
    for (int i = 0; i < entry.Properties["member"].Count; i++)

    Please help.


    Thursday, November 20, 2008 2:36 PM

All replies

  • User-2009597737 posted

     Looks like your directory entry is not in the correct order,  s/be

    DirectoryEntry entry = new DirectoryEntry("LDAP://YourDomainControllerORADserverName/cn=FullCNOftTeGroup testgroup1,DC=mycompany,DC=corp", adusername, adpassword); 

    Thursday, November 20, 2008 4:45 PM