YAFLogo

virk0009
  • virk0009
  • 53.6% (Neutral)
  • YAF Forumling Topic Starter
16 years ago
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/

1

false

and here is my web.config

type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler,

Intelligencia.UrlRewriter"/>

connectionString="Data Source=LAPTOP\SQLEXPRESS;Initial Catalog=mem_DB;User ID=myserid;

Password=mypassword"

providerName="System.Data.SqlClient"/>

applicationName="/"

name="customRoleProvider"

type="System.Web.Security.SqlRoleProvider"/>

applicationName="/"

name="customMembershipProvider"

requiresUniqueEmail="true"

minRequiredNonalphanumericCharacters="0"

minRequiredPasswordLength="5"

maxInvalidPasswordAttempts="20"

passwordAttemptWindow="10"

enablePasswordReset="true"

requiresQuestionAndAnswer="false"

type="System.Web.Security.SqlMembershipProvider"/>

Sponsor
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
16 years ago
Sorry but custom membership providers are outside the scope of support I can provide.... just way too many variables.
virk0009
  • virk0009
  • 53.6% (Neutral)
  • YAF Forumling Topic Starter
16 years ago
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.

http://forum.yetanotherforum.net/yaf_postst7227_Membership-provider-integration.aspx 

if u can help, it will be great.

Regards

Parminder

jshepler
16 years ago

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.

virk0009 wrote:

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.


not jsheLPer

virk0009
  • virk0009
  • 53.6% (Neutral)
  • YAF Forumling Topic Starter
16 years ago
Hi Thanks,

My question is can i use my existing membership data to log into system.

Regards

Paraminder

jshepler
16 years ago

Hi Thanks,

My question is can i use my existing membership data to log into system.

Regards

Paraminder

virk0009 wrote:

Yes.


not jsheLPer

virk0009
  • virk0009
  • 53.6% (Neutral)
  • YAF Forumling Topic Starter
16 years ago
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

jshepler
16 years ago
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 authenticated 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?


not jsheLPer

virk0009
  • virk0009
  • 53.6% (Neutral)
  • YAF Forumling Topic Starter
16 years ago
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

jshepler
16 years ago

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

virk0009 wrote:

Yaf doesn't do the authentication - asp.net does. Yaf just asks asp.net who the current user is.


not jsheLPer