Forum Themes:
Welcome !

 Plugging in standard SqlMembershipProvider

Author Message
beelineuk

  • Total Posts : 16
  • Reward points : 1590
  • Joined: Jun 01 '10
  • Status: offline
Plugging in standard SqlMembershipProvider Tue. Jun 1, '10 6:12 AM (permalink)
0
Hi,
 
I've trying to evaluate your software and running into a few issues getting the SqlMembershipProvider to work with an external database. I've added the providers for the external membership database to the web.config and changed the EnableMembershipIntegration setting to true.
 
When I try to login with a user I know exists in my external membership database I get an error saying "There is no such user in our database". If I run SqlProfiler I can see it's requesting the relevant user details from my external database, so what am I missing? 
 
Thanks,
 
Mike
 
 
 
 
 
#1
beelineuk

  • Total Posts : 16
  • Reward points : 1590
  • Joined: Jun 01 '10
  • Status: offline
Re:Plugging in standard SqlMembershipProvider Tue. Jun 1, '10 7:05 AM (permalink)
0
I created a new user and that seemed to work (created the user in membership database and forum database). I then deleted the user in the pgd_Members table and tried logging in again. This time the user was successfully recreated in the forum table and the system logged in successfully.
 
For some reason I still can't login using other users, and it seems to be related to the fact that all my other users have usernames of the format "domain\username". I'm not why why this effects the ability to login or migrate the users.
 
#2
beelineuk

  • Total Posts : 16
  • Reward points : 1590
  • Joined: Jun 01 '10
  • Status: offline
Re:Plugging in standard SqlMembershipProvider Tue. Jun 1, '10 8:23 AM (permalink)
0
Excuse the conversation with myself, feel free to jump in and help me out here.
 
I've managed to work out that the the issue was actually related to the fact that the forum does not allow duplicate email addresses. The user I was trying to import from my external membership tables shared the same email address as my admin user. Pulling in a user with a different user works ok.
 
 
#3
Samuel

  • Total Posts : 11786
  • Reward points : 168350
  • Joined: May 23 '01
  • Status: offline
Re:Plugging in standard SqlMembershipProvider Tue. Jun 1, '10 11:56 AM (permalink)
0
Hi,
 
The forum software requires unique email address for each account, so whenever it encounters duplicate address (already in forumdb), it won't import again.
 
Is it just a test account or do you allow duplicate emails in your SQL membership provider?
ASPPlayground.NET
~ see our Version 4 plans here

 
#4
Guest
Re:Plugging in standard SqlMembershipProvider Wed. Jun 2, '10 1:27 AM (permalink)
0
Thanks for your help. I'm integrating with Sitecore membership providers. These do allow duplicate emails, for instance all of the Sitecore admin accounts currently use my email address, as does the default forum admin account I set up during installation.
 
I'm hoping we can manage this going forward, but it would be good if the forum had the option to allow dup emails and restrict only on username.
 
#5
    Online Bookmarks Sharing: Share/Bookmark

    Jump to:

    Current active users

    There are 0 members and 1 guests.

    Icon Legend and Permission

    • New Messages
    • No New Messages
    • Hot Topic w/ New Messages
    • Hot Topic w/o New Messages
    • Locked w/ New Messages
    • Locked w/o New Messages
    • Read Message
    • Post New Thread
    • Reply to message
    • Post New Poll
    • Submit Vote
    • Post reward post
    • Delete my own posts
    • Delete my own threads
    • Rate post

    2000-2012 ASPPlayground.NET Forum Version 3.9