Custom Membership Provider based on SQLMembershipProvider
In 3.7 I developed a custom MembershipProvider and a RoleProvider based on the Microsoft SQL providers. It has worked very well in 3.7. The providers are in a separate dll. I've upgraded the dll to .NET 4.0 and I am trying to configure the providers in Sitefinity 4.0 SP1 to no avail. I added my login control to a page and set the membership provider to my custom provider. When I tried to login with the custom control, I get this message:
<
roleProviders
>
<
add
connection
=
"LdapConnection"
enabled
=
"True"
name
=
"LdapRoles"
/>
<
add
description
=
""
resourceClassId
=
""
type
=
"BusinessLogicWeb.AtlantisRoleProvider"
type:type
=
"System.RuntimeType, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
connectionStringName
=
"Atlantis"
applicationName
=
"/"
enabled
=
"True"
name
=
"Atlantis"
/>
</
roleProviders
>
<
membershipProviders
>
<
add
applicationName
=
"/"
connection
=
"LdapConnection"
enabled
=
"True"
name
=
"LdapUsers"
/>
<
add
description
=
""
resourceClassId
=
""
type
=
"BusinessLogicWeb.AtlantisMembershipProvider"
type:type
=
"System.RuntimeType, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
connectionStringName
=
"Atlantis"
applicationName
=
"/"
enabled
=
"True"
name
=
"Atlantis"
/>
</
membershipProviders
>
<
asp:Login
runat
=
"server"
ID
=
"mainLogin"
MembershipProvider
=
"Atlantis"
onloginerror
=
"mainLogin_LoginError"
>
</
asp:Login
>
Hi Abraham,
You need to configure your provider through the configuration section
Administration >> Settings >> Advanced >> Security.
Best wishes,
Ivan Dimitrov
the Telerik team
The membership provider was based on Microsoft's model, not Telerik's new MembershipDataProvider. I'm going to wait for the Q1 release which is supposed to include wrappers that will make my MembershipProvider work.
Abraham.