我正在嘗試開發一個與Novell LDAP身份驗證的Web應用程序。 我在形式添加的Login.aspx的登錄控制,我已經以這種方式配置的web.config中:ldap在asp.net中的Novell身份驗證
<connectionStrings>
<add connectionString="LDAP://10.0.0.100:389/cn=admin,o=pippo" name="myConnectionString"/>
</connectionStrings>
<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" timeout="2880"/>
</authentication>
<membership defaultProvider="MembershipADProvider">
<providers>
<add name="MyADMembershipProvider"
type="System.Web.Security.ActiveDirectoryMembershipProvider,
System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="myConnectionString"
port="389"
useSSL="false"
connectionProtection="None"
connectionUsername="cn=admin,o=pippo"
connectionPassword="admin"
enableSearchMethods="true"
/>
</providers>
</membership>
但是當我點擊登錄按鈕,我收到此錯誤:
「此提供程序只能定位Active Directory和ADAM目錄。」
我注意到如果我輸入的密碼錯誤,錯誤信息將變爲: 「登錄失敗:未知用戶名或密碼錯誤」。所以我認爲應用程序在某種程度上與ldap服務器連接並與它進行通信。
現在的問題... 我必須選擇哪種類型的提供者?或者我如何設置ActiveDirectoryMembershipProvider以便登錄LDAP Novell?
換句話說,如何開發LDAP認證代碼以在Novell的LDAP中查找用戶?
感謝所有提前
問候
Novell?那是什麼? ;) – 2012-04-06 19:12:43