Authetificacion por Formulario
Messages   Related Types
This message was discovered on ASPFriends.com 'aspnges' list.


Victor Saldivia

Tengo un problema, estoy tratando de que el usuario se Autentifique en
el sitio para poder obtener el "USER" y su "PASSWORD" de windows,
necesito esto para crear credenciales y asi comunicarme con un Web
Service, estoy trabajando con WebForms y la version RC1 de .NET
No se que esta mal, si alguien sabe como obtener el user y la password
de windows de otra manera, se lo agradeceria.

el WEB.CONFIG

<?xml version=3D"1.0" encoding=3D"utf-8" ?>
<configuration>
    <system.web>
        <authentication mode=3D"Forms" >
            <forms name=3D".ASPXLOGINCONSULTA"
loginUrl=3D"LoginUser.aspx" protection=3D"All" timeout=3D"60" />
        </authentication>
        <authorization>
            <allow roles=3D"SYSTEM_DOM\Usuarios OT" />
            <deny users=3D"*" />
            <deny users=3D"?" />
        </authorization>
    </system.web>
</configuration>

El Codigo de LoginUser.aspx

Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnLogin.Click
' Intento Crear la Credencial
' glbCredencial =3D New
System.Net.NetworkCredential(txtUser.Text,txtPass.Text)=20
FormsAuthentication.RedirectFromLoginPage(txtUser.Text,True)
End Sub

Al Momento de Iniciar la sesion, no se realiza la Redireccion a la
pagina principal.

VICTOR SALDIVIA URIBE
System Staffing
Fono : 6203217

Reply to this message...
 
    
Francisco Foyain
Disculpa, el RC1 es la version ya liberada de .NET o estas hablando del Beta
1... y si es el RC1 donde lo conseguiste???

Saludos,

Francisco

From: "Victor Saldivia" <Click here to reveal e-mail address>
Reply-To: "aspnges" <Click here to reveal e-mail address>
To: "aspnges" <Click here to reveal e-mail address>
Subject: [aspnges] Authetificacion por Formulario
Date: Mon, 19 Nov 2001 14:22:47 -0400

Tengo un problema, estoy tratando de que el usuario se Autentifique en
el sitio para poder obtener el "USER" y su "PASSWORD" de windows,
necesito esto para crear credenciales y asi comunicarme con un Web
Service, estoy trabajando con WebForms y la version RC1 de .NET
No se que esta mal, si alguien sabe como obtener el user y la password
de windows de otra manera, se lo agradeceria.

el WEB.CONFIG

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <system.web>
        <authentication mode="Forms" >
            <forms name=".ASPXLOGINCONSULTA"
loginUrl="LoginUser.aspx" protection="All" timeout="60" />
        </authentication>
        <authorization>
            <allow roles="SYSTEM_DOM\Usuarios OT" />
            <deny users="*" />
            <deny users="?" />
        </authorization>
    </system.web>
</configuration>

El Codigo de LoginUser.aspx

Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnLogin.Click
' Intento Crear la Credencial
' glbCredencial = New
System.Net.NetworkCredential(txtUser.Text,txtPass.Text)
FormsAuthentication.RedirectFromLoginPage(txtUser.Text,True)
End Sub

Al Momento de Iniciar la sesion, no se realiza la Redireccion a la
pagina principal.

VICTOR SALDIVIA URIBE
System Staffing
Fono : 6203217

| [aspnges] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspnges.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

Reply to this message...
 
    
Victor Saldivia
La empresa donde Trabajo, es Microsoft Certified Gold Partner
ademas, tiene varios Trainer y uno de ellos se lo consiguio aca en
Microsoft Chile.

-----Original Message-----
From: Francisco Foyain [mailto:Click here to reveal e-mail address]
Sent: Lunes, 19 de Noviembre de 2001 03:11
To: aspnges
Subject: [aspnges] Re: Authetificacion por Formulario

Disculpa, el RC1 es la version ya liberada de .NET o estas hablando del
Beta=20
1... y si es el RC1 donde lo conseguiste???

Saludos,

Francisco

From: "Victor Saldivia" <Click here to reveal e-mail address>
Reply-To: "aspnges" <Click here to reveal e-mail address>
To: "aspnges" <Click here to reveal e-mail address>
Subject: [aspnges] Authetificacion por Formulario
Date: Mon, 19 Nov 2001 14:22:47 -0400

Tengo un problema, estoy tratando de que el usuario se Autentifique en
el sitio para poder obtener el "USER" y su "PASSWORD" de windows,
necesito esto para crear credenciales y asi comunicarme con un Web
Service, estoy trabajando con WebForms y la version RC1 de .NET
No se que esta mal, si alguien sabe como obtener el user y la password
de windows de otra manera, se lo agradeceria.

el WEB.CONFIG

<?xml version=3D"1.0" encoding=3D"utf-8" ?>
<configuration>
    <system.web>
        <authentication mode=3D"Forms" >
            <forms name=3D".ASPXLOGINCONSULTA"
loginUrl=3D"LoginUser.aspx" protection=3D"All" timeout=3D"60" />
        </authentication>
        <authorization>
            <allow roles=3D"SYSTEM_DOM\Usuarios OT" />
            <deny users=3D"*" />
            <deny users=3D"?" />
        </authorization>
    </system.web>
</configuration>

El Codigo de LoginUser.aspx

Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e
As
System.EventArgs) Handles btnLogin.Click
' Intento Crear la Credencial
' glbCredencial =3D New
System.Net.NetworkCredential(txtUser.Text,txtPass.Text)
FormsAuthentication.RedirectFromLoginPage(txtUser.Text,True)
End Sub

Al Momento de Iniciar la sesion, no se realiza la Redireccion a la
pagina principal.

VICTOR SALDIVIA URIBE
System Staffing
Fono : 6203217

| [aspnges] member Click here to reveal e-mail address =3D YOUR ID
| http://www.asplists.com/asplists/aspnges.asp =3D JOIN/QUIT
| http://www.asplists.com/search =3D SEARCH Archives

_________________________________________________________________
Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp

| [aspnges] member Click here to reveal e-mail address =3D YOUR ID
| http://www.asplists.com/asplists/aspnges.asp =3D JOIN/QUIT
| http://www.asplists.com/search =3D SEARCH Archives

Reply to this message...
 
 
System.EventArgs
System.Net.NetworkCredential
System.Object
System.Web.Security.FormsAuthentication




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com