.NETGURU
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




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification