Holaa amigos el siguiente codigo funciona perfectamente en IExplorer, pero no
en Opera y el resto. ¿alguien puede adyudarme con esto?. El problema esta
parece con el FormsAuthentication.RedirectFromLoginPage. Estoy usando asp.net
4.0. GRacias
if (Authenticate(this.Login2.UserName, this.Login2.Password,
ConfigurationManager.AppSettings["dominio"]) == true)
{
FormsAuthentication.RedirectFromLoginPage(this.Login2.UserName.ToString(),
true);
}
public bool Authenticate(string userName, string password, string domain)
{
bool authentic = false;
try
{
DirectoryEntry entry = new DirectoryEntry(domain,
userName, password);
object nativeObject = entry.NativeObject;
authentic = true;
}
catch (DirectoryServicesCOMException) { }
return authentic;
}
PEPE
Pepe Ballaga
Empresa Generacion Distribuida Ciudad Habana
Telf: 8613543 ext 812
861 2679
862 8675
862 3686
8643521 (directo)
[email protected]
[email protected]