ASP.NET Active Directory Membership Provider and SQL Profile Provider

前端 未结 4 1517
谎友^
谎友^ 2020-12-13 10:29

I am currently designing a Membership/Profile scheme for a new project I am working on and I was hoping to get some input from others.

The project is a ASP.NET web

4条回答
  •  执念已碎
    2020-12-13 11:17

    In addition to this as replied by Marc :

    
    

    you might also need to add

    connectionStringName="ADService",
    attributeMapUsername="sAMAccountName"
    

    with corresponnding connection string

    
        
    
    

    If you are using .net 4.0 then you will need to replace

    Version=2.0.3600 
    

    with

    Version=4.0.0.0
    

    So finally ,

    
          
            
          
        
    

    and since it is set as default, it can be referenced as :

    MembershipProvider provider = Membership.Provider; 
    

提交回复
热议问题