Last post Sep 26, 2012 09:30 AM by lamba.rahul89
Sep 24, 2012 05:16 AM|shivani.gupta|LINK
I want to access Active Directory Details without using LDAP. is there any other way to do so.
Urgent Help required
Sep 24, 2012 02:26 PM|sarvankarthik6|LINK
You can use SQLServer..
If iam not right.. plz correct me as me too a fresher in this development..
Sep 26, 2012 09:30 AM|lamba.rahul89|LINK
Yes you can comunicate by using PrincipalContext.
Let me show you an example
PrincipalContext pr = new PrincipalContext(ContextType.Domain, "corp.local", "dc=corp,dc=local", username, password); UserPrincipal user = UserPrincipal.FindByIdentity(pr, DomainId);
Boolean flag = false;
if (user != null && user.Enabled == true)
flag = true;
flag = false;
Hope this is what you were looking for.