Skip to main content

Si nacesitas un login que aunentique contra un dominio de windows, no integras el sitio web, sino que redefines la seguridad de asp.net membership

Usarisa las clase

ActiveDirectoryMembershipProvider Class

definiendo el cnnection string a LDAP

<connectionStrings>
  <add connectionString="LDAP://test.mydomain.com/CN=Users,DC=test,DC=mydomain,DC=com" name="ADConnectionString" />
</connectionStrings> 

Entonces si podrias programar un login que usar esa clases para utenticar contra el dominio de windows

Using Forms Authentication with Membership Providers in ASP.NET 2.0

Forms Authentication with Active Directory in ASP.NET 2.0Forms Authentication with Active Directory in ASP.NET 2.0

En este caso configuras el provider

<membership defaultProvider="DomainLoginMembershipProvider">

   <providers>

     <add name="DomainLoginMembershipProvider" 

          type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0,Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 

          connectionStringName="ADConnectionString" 

          connectionUsername="dotnetinspiration.com\administrator" connectionPassword="youradminpassword"/>

   </providers>

 </membership>

Si nacesitas un login que aunentique contra un dominio de windows, no integras el sitio web, sino que redefines la seguridad de asp.net membership

Usarisa las clase

ActiveDirectoryMembershipProvider Class

definiendo el cnnection string a LDAP

<connectionStrings>
  <add connectionString="LDAP://test.mydomain.com/CN=Users,DC=test,DC=mydomain,DC=com" name="ADConnectionString" />
</connectionStrings> 

Entonces si podrias programar un login que usar esa clases para utenticar contra el dominio de windows

Using Forms Authentication with Membership Providers in ASP.NET 2.0

Forms Authentication with Active Directory in ASP.NET 2.0

En este caso configuras el provider

<membership defaultProvider="DomainLoginMembershipProvider">

   <providers>

     <add name="DomainLoginMembershipProvider" 

          type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0,Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 

          connectionStringName="ADConnectionString" 

          connectionUsername="dotnetinspiration.com\administrator" connectionPassword="youradminpassword"/>

   </providers>

 </membership>

Si nacesitas un login que aunentique contra un dominio de windows, no integras el sitio web, sino que redefines la seguridad de asp.net membership

Usarisa las clase

ActiveDirectoryMembershipProvider Class

definiendo el cnnection string a LDAP

<connectionStrings>
  <add connectionString="LDAP://test.mydomain.com/CN=Users,DC=test,DC=mydomain,DC=com" name="ADConnectionString" />
</connectionStrings> 

Entonces si podrias programar un login que usar esa clases para utenticar contra el dominio de windows

Using Forms Authentication with Membership Providers in ASP.NET 2.0

Forms Authentication with Active Directory in ASP.NET 2.0

En este caso configuras el provider

<membership defaultProvider="DomainLoginMembershipProvider">

   <providers>

     <add name="DomainLoginMembershipProvider" 

          type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0,Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 

          connectionStringName="ADConnectionString" 

          connectionUsername="dotnetinspiration.com\administrator" connectionPassword="youradminpassword"/>

   </providers>

 </membership>
Origen Enlace
Leandro Tuttini
  • 36k
  • 3
  • 15
  • 41

Si nacesitas un login que aunentique contra un dominio de windows, no integras el sitio web, sino que redefines la seguridad de asp.net membership

Usarisa las clase

ActiveDirectoryMembershipProvider Class

definiendo el cnnection string a LDAP

<connectionStrings>
  <add connectionString="LDAP://test.mydomain.com/CN=Users,DC=test,DC=mydomain,DC=com" name="ADConnectionString" />
</connectionStrings> 

Entonces si podrias programar un login que usar esa clases para utenticar contra el dominio de windows

Using Forms Authentication with Membership Providers in ASP.NET 2.0

Forms Authentication with Active Directory in ASP.NET 2.0

En este caso configuras el provider

<membership defaultProvider="DomainLoginMembershipProvider">

   <providers>

     <add name="DomainLoginMembershipProvider" 

          type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0,Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 

          connectionStringName="ADConnectionString" 

          connectionUsername="dotnetinspiration.com\administrator" connectionPassword="youradminpassword"/>

   </providers>

 </membership>