Posted by: virk0009 - Friday, 17 April 2009 17:22:26
Hi,
I have a existing database with sqlmembership, I want to use it to log on to yaf. i am asking this qustion again,
As I posted this thing in a different forum but no body helped.
I have created a role "registered" (using Administration wizard) also and created one user under this role. But still cant login to the
forum. does it has to do anythng with hashing. How is password being stored in the database.
here is my yafnet.config file.
Data Source=LAPTOP\SQLEXPRESS;Initial Catalog=yaf_db;User ID=myuser;Password=mypassword~/upload/1false
and here is my web.config
Posted by: Jaben - Tuesday, 21 April 2009 04:05:36
Sorry but custom membership providers are outside the scope of support I can provide.... just way too many variables.
Posted by: virk0009 - Tuesday, 21 April 2009 23:14:40
Hi Jaben,
No, its not custom. its just standard aspnet membership and roles.
I think you guys are saying it can be used, but dont know how.
I read this link here http://forum.yetanotherforum.net/yaf_postst7227_Membership-provider-integration.aspx
if u can help, it will be great.
Regards
Parminder
Posted by: jshepler - Wednesday, 22 April 2009 13:56:03
[quote=virk0009]Hi,
I have a existing database with sqlmembership, I want to use it to log on to yaf. i am asking this qustion again,
As I posted this thing in a different forum but no body helped.
I have created a role "registered" (using Administration wizard) also and created one user under this role. But still cant login to the
forum. does it has to do anythng with hashing. How is password being stored in the database.
[/quote]
You have 2 different databases configured - one for your existing members and the other for yaf. I'm pretty sure they need to be the same database. It's ok to install yaf into your existing database, it prefixes everything with "yaf_" so it won't overwrite anything.
Posted by: virk0009 - Wednesday, 22 April 2009 23:21:53
Hi Thanks,
My question is can i use my existing membership data to log into system.
Regards
Paraminder
Posted by: jshepler - Thursday, 23 April 2009 05:31:32
[quote=virk0009]Hi Thanks,
My question is can i use my existing membership data to log into system.
Regards
Paraminder[/quote]
Yes.
Posted by: virk0009 - Thursday, 23 April 2009 23:38:41
Hi JShelper,
Can someone expain how can I do. What changes do i need to the config files.
I have included my config files, so if u can just explain the settings i need to do.
Thanks
Parminder
Posted by: jshepler - Friday, 24 April 2009 05:34:08
I was wrong - it doesn't need to be the same database.
There isn't anything you need to change in the web.config for yaf to work with your existing membership. Yaf will use whatever provider you already have configured. The first time an [b]authenticated[/b] user visits the forum, yaf will add that user to its database.
You still need to install and configure yaf itself, though. You said that you created the "Registered" role. The yaf install does this, so if you had to do this yourself, it sounds like maybe you didn't run the install?
Posted by: virk0009 - Friday, 24 April 2009 17:35:45
Hi jshelper,
When you say authenticated user, how can it be authenticated when it doesnt find that user in
yaf database, coz that user is in other tables (aspnet_Membership and others). It wont let the user
go, coz it validates to its own tables, or should i use some other interface to log in where they are authonticated
by aspnet tables.
Your help will be appritiated.
Regards
Parminder
Posted by: jshepler - Saturday, 25 April 2009 06:13:56
[quote=virk0009]Hi jshelper,
When you say authenticated user, how can it be authenticated when it doesnt find that user in
yaf database, coz that user is in other tables (aspnet_Membership and others). It wont let the user
go, coz it validates to its own tables, or should i use some other interface to log in where they are authonticated
by aspnet tables.
Your help will be appritiated.
Regards
Parminder[/quote]
Yaf doesn't do the authentication - asp.net does. Yaf just asks asp.net who the current user is.