Active Directory Authentication
<p>I am have made one web application in asp.net.In my project Authentication was done  by matching the username and password in database.But now client ask me for the auto login in application with the help Of Active Directory authentication. Client ask suggest me to use the  Email Id of user in AD  for the authentication.</p>

<p>I tried to fetch the records in the AD, I could fetch the Fullname of user but I couldn't get the Email id,</p>

<p>I tried the code:</p>

<pre><code> System.Security.Principal.WindowsIdentity wi = System.Security.Principal.WindowsIdentity.GetCurrent();
  string[] a = Context.User.Identity.Name.Split('\\');

  System.DirectoryServices.DirectoryEntry ADEntry = new System.DirectoryServices.DirectoryEntry("WinNT://" + a[0] + "/" + a[1]);
  string Name = ADEntry.Properties["FullName"].Value.ToString();
</code></pre>

<p>Further more I Use DirectorySearcher but it genterates Error that Coulnot search the record in the client server..</p>

<p>I am Stuck to this so plz............</p>
