Last post Jan 19, 2006 11:51 AM by joewells
Jan 19, 2006 06:01 AM|joewells|LINK
I am using DNN 4 with asp.net 2.0 I have got my custom membership, role and profile providers working to the extent that a user can login and get authenticated against my own data store of users. The problem i have is that I can't seem to get the user roles
When a user logs in DNN hits the GetRolesForUser function in my custom role provider. This returns ,in this example, a string array of 'Administrators,Registered Users' .When the default page loads there is no admin option in the drop down menu. Is there
something else I need to do? Also I can't see a way of showing whether a user is a superuser or not where is this detail inserted?
Now I have written the custom providers are the membership tables in DNN database redundant? I have noticed that there is a call to an instance of DataProvider.vb does this interact with the default DNN database?
Sorry there are a few questions here but I feel so close to the solution but these details are proving very frustrating. Thanks
Jan 19, 2006 11:51 AM|joewells|LINK
To Clarify this after more resaerch and testing. When user logs on they do so through my custom membership provider this copies some of their details into the DNN databse tables. Any Roles that they are mebers of that arn't currently held in the DNN Roles
table are also added. However nothing is added to the DNN UserRole table not even the roles that are meant to be automatic.
How can I make it populate these tables and why does DNN rely on its own tables rather than on the overriden classes?