Farrukh

I have written a custom authentication provider for my web application. It is a stand alone application (not extended or being extend), earlier I used SqlMembershipProvider and it was working fine with FBA using same application.

But now i am unable to authenticate users with custom provider. Entries in both the config files (Central Admin. and my application) seems to be OK. I have tried deleting custom provider's dll and then my login form givers me the error "file not found". it means it does access this dll when it is there.

To test my dll i have used it in simple .net application and it is able to authenticate uses from DB.

Any help




Re: SharePoint - Setup, Upgrade, Administration and Operation using custom authentication provider

Neeraj Shah

Fijaz,

got a question for u, how did u add users to ur DB Did u use the aspnet_regsql.exe tool Can i authenticate users frm my own custom table if so how





Re: SharePoint - Setup, Upgrade, Administration and Operation using custom authentication provider

fijaz

Neeraj, Thanks for your reply.

I am using the same db which i created earlier using "aspnet_regsql" for use with AspNetSqlMembershipProvider. and users were added using ASP .NET WebSite Admin utility.

I also tried authentication from own custom table but it was also failed.

Another thing to mention that, in "Site Collection Administrators" i am able to resolve user names from aspnetdb using my custome authentication provider. But unable to do so, from custom table using same provider. (I don't know why, because i just change the datasource and the SELECT statements nothing else)






Re: SharePoint - Setup, Upgrade, Administration and Operation using custom authentication provider

fijaz

OK, I got one database (aspnetdb) working with my custom provider. That was a permissions issue of Anonymous login ID with SQL Server. i figured it out through SQLServer log.

But i am still not able to resolve user names in Central Administration from custom user table (No roles involve yet). However my sites does authenticate users but does not provide access to any page saying access denied (perhaps the reason is that no user is added in People and Groups for that site).

Any help on resolving user names in Central Administration






Re: SharePoint - Setup, Upgrade, Administration and Operation using custom authentication provider

Neeraj Shah

Fijaz,

If u r getting that Access Denied message, then U should add the users and give them full control from Central admin>> Appication Management>> Policy for Web Application

Did u try this





Re: SharePoint - Setup, Upgrade, Administration and Operation using custom authentication provider

fijaz

Thanks Neeraj, I have just resolved that issue.

Actually the problem was that user names were not being resolved anywhere in Central Administration (either it be "Policy for Web Application" or "Site Collection Administrators"). Reason behind that was some wrong SQL statement generations. I traced it through SQLServer profiler. [Thanks to SQL Server utilities Smile ]