|
| Custom Membership Provider User Rights Issue |
 |
Wed, 8 Nov 2006 08:03:37 +0000 |
I am using WSS V3 Beta 2 for Custom Site Definition. I am presently working on
changing Authentication mode from Windows to Forms
I have created my Own Custom Membership Provider that will talk to Oracle
Database for Authentication. I have made an entry in Application's Web.config,
Site's Root's web.config and web.config of Sharepoint Central Administration
Site. I have creted a class custommembershipprovider which inherits
MembershipProvider class and I have implemented methods GetAllusers(), Validate
Users(). I added Assembly of this custom class to bin folder of application,
Site Root and sharepoint central administration app_bin directory.
From Sharepoint Central Administration I have changed Authentication mode from
Windows to forms and provided my membership Provider.
Now when I browse to site, it shows me custom login page. If I try to put
invalid user name or password, it prompts me so, and If I put correct username
and password, it autheticates the user and moves back to the default page of
site. Here the problem starts, it is authenticating the user but not authorizing
him for accessing sharepoint site content. Then again when I moved back to
sharepoint central administration, Site Collection Administrator to change the
site collection administrator from domain\username to username (from oracle db).
Here it shows be ADD PEOPLE dialog box, but when I try to search it does not
return me any user. Hence I am not able to change site collection administrator.
Unless I do it I will not be able to access the site.
My question here is where do I miss a step? Secondly that ADD PEOPLE dialog box
uses which Membership Provider, I think its not at all fetching data using my
own provider but using its own provider somehow.
Can somebody help me out.
|
| Post Reply
|
| Re: Custom Membership Provider User Rights Issue |
 |
Sat, 18 Nov 2006 07:01:47 +000 |
I solved problem in the following way. While I was browsing the central
administration I came to know about LOGS folder under 12 directory. This LOG is
amazing, it just gave me exact problem with the Membership Provider. Even though
I have put the Assembly (DLL that contains MembershipProvider code) inside
_app_bin directory of central admin and all possible places, it was not able to
load this assembly. LOG inside LOGS folder let me know that. Then I simply
installed the assembly into GAC and it solved my problem. Just an advice to all
those facing problem with Membership Provider. Goto LOGS directory and find the
latest Log. The detailed errors will guide you towards the solution...
Enjoy life
Subhash
|
| Post Reply
|
|
|
|
|
|
|
|
|
|