• animasola

    (@animasola)


    Hi,

    I would like to use a different table for WordPress to lookup for authentication. How do I do this? Where does WordPress store it’s SQL statements if I wish to change/add any? Which functions should I modify? Any help would be greatly appreciated, thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I would like to use a different table for WordPress to lookup for authentication.

    What are you trying to accomplish? I mean your end goal. There may be an easier way to get what you want versus modifying the core code.

    I have not looked lately but at one point the Admin SSL plugin played with the authentication scheme. Take a look at the code there and see if it helps.

    Also the OpenID plugin might provide a clue.

    Thread Starter animasola

    (@animasola)

    Thanks, I kinda worked it out yesterday. I just changed the function wp_authenticate in the pluggable.php. I just have one question, where are the SQL statements kept? or at least, which php file contains the connection functions such as mysql_connect and mysql_select_db to connect to the database?

    Another problem which I face is that, WordPress is to be a blog module for a bigger system, we need separate blog instances for each user. I tried it a while ago and it seems that there is only one blog instance with multiple users who have access to it. Is there a way to change this?

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    we need separate blog instances for each user.

    This is probably off track from your OP but that sounds more like WordPress MU than just WordPress. WordPress is multiple users with one blog; you can run seperate instances of WordPress on the same same database with different table prefixes but it’s one install -> one blog.

    WordPress MU is one install -> many blogs with many users.

    Thread Starter animasola

    (@animasola)

    Thanks!

    Now here is what I finally need:

    Here is our set-up, we have 2 databases, one for our main system and one for WordPress Mu. We set-up it up such that the user id in our main system and wordpress mu are similar to make things easier.

    We have a separate authentication page for the users of our main system. What I want is that when the user is authenticated in that main system, he is also authenticated in WordPress Mu. I used the get_userdata($user_id) in pluggable to return $user which is the user data in WordPress Mu.

    Now my problem is, with that, at which page should I redirect it such that he will be logged in to the admin panel?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Authentication’ is closed to new replies.