01/19
SP:
How to Authenticate user based on AD in SP
- In project folder , modify web.config
- Before <system.web>, add the following (BOINTRANET is the domain name)
- Inside of <system.web>
- add the following :
- In admin project folder , modify web.config with same above steps
- In admin project , select Sharepoint管理中心->应用程序管理-->Web 应用程序策略:
<connectionStrings>
< <add name="ADCustomService" connectionString="LDAP://BOINTRANET"/>
</connectionStrings>
<membership defaultProvider="AspNetActiveDirectoryMembershipProvider">
<providers>
<add name="AspNetActiveDirectoryMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ADCustomService" connectionProtection="Secure" applicationName="/_layouts/login.aspx" connectionUsername="BOINTRANET\Administrator" connectionPassword="sdy731022" attributeMapUsername="sAMAccountName" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" attributeMapEmail="mail" requiresQuestionAndAnswer="false" />
</providers>
</membership>
单击“添加用户”-->在选择区域处选择“默认”-->下一步-->在选择用户栏处选择相应的用户名,并在选择相应的权限-->完成
0 Comments:
Post a Comment
<< Home