domain1 = new DirectoryEntry("LDAP://lnties.com/DC=dept1,DC=com", "domainadmin", "12345", AuthenticationTypes.ReadonlyServer);
in the above line, i dont have "domainadmin" and "12345"(password), since its a overload method, i am passing "LDAP://lnties.com/DC=dept1,DC=com"as parameter.
its throwing an error "A referral was returned from the server."in the code line "results1 = searcher1.FindAll();"