I am working on an C# and ASP.Net application, that uses Forms Authentication that I found here... http://msdn.microsoft.com/en-us/library/ms180890(v=vs.90).aspx
It works great but now I would like to go alittle further and also pull the email address from the mail field in LDAP and pipe it to a text with the rest of the lblName.Text = "Hello " + Context.User.Identity.Name + "."; lblAuthType.Text = "You were authenticated using " + Context.User.Identity.AuthenticationType + ".";
I have searched and read alot of stuff and from what I can tell I need to add code to the LdapAuthentication.cs like another DirectorySearcher query but do I have to make a totally new search or can I just add it to the query it makes when it looks up the usersname?? Like
using System;
using System.Text;
using System.Collections;
using System.Web.Security;
...
Go to the complete details ...