Originally Posted by
psilos
It can be done as many off the shelf helpdesk packages tie back into Active Directory. As you will be creating an intranet website that will reduce your external access risk. By the way communicating with Active Directory can be secure, as after all Window clients communicating with AD is already secure as it uses Kerberos.
oh ok cool so do u have any sample of how the strnig to the Active Directory might look?
i found this code snippet
Code:
public bool IsUserAuthenticated (string strAdPath, string strDomain, string strUserName, string strPassword)
{
DirectoryEntry directoryEntry = new DirectoryEntry(string strAdPath, string strDomain+@"\"+strUserName,strPassword);
Object obj = directoryEntry.NativeObject;
DirectorySearcher directorySearcher = new DirectorySearcher(directoryEntry);
directorySearch.Filter ="(SAMAccountName = " + strUserName + ")";
directorySearch.PropertiesToLoad.Add("cn");
SearchResult searchResult = directorySearch.FindOne();
if (searchResult ==null)
{
return false; // not authenticated
}
else
{
return true; // authenticated
}
}
but this section
Code:
(string strAdPath, string strDomain+@"\"+strUserName,strPassword);
i know all of the parameters except the Active Directory address, my network guy at my office say him not sure what that is but if him see a sample of one him would know directly how to find it and then tell me