Last post May 19, 2011 12:22 AM by aDEEL-nAWAZ
May 17, 2011 01:04 AM|aDEEL-nAWAZ|LINK
I have created a site and linked it up with AD, users can login into it with their Domain Credantials every thing working fine when
my site was deployed on same Domian as user have, problem started when i deployed my site to the system which was not a part of domain (workgroup computer)
now users can't login into it here is the code for validating users.
public bool ValidateUser()
DirectoryEntry Entry = new DirectoryEntry("LDAP://" + Domain, UserId, Password);
DirectorySearcher Searcher = new DirectorySearcher(Entry);
Result = Searcher.FindOne();
DirectoryEntry rs = Result.GetDirectoryEntry();
return status = rs == null ? false : true;
May 17, 2011 07:02 AM|tiagosalgado|LINK
Do you avoid any related permission?
Try do change the ldap path to something like
DirectoryEntry Entry = new DirectoryEntry("LDAP://DC=" + Domain, UserId, Password);
May 19, 2011 12:22 AM|aDEEL-nAWAZ|LINK
Thanks for reply.i tried this but it dosen't work, i dnt knw what permissions do i need???can u please tel me?