Title: Authentication
Last modified: August 19, 2016

---

# Authentication

 *  [animasola](https://wordpress.org/support/users/animasola/)
 * (@animasola)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/authentication/)
 * 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](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [17 years, 1 month ago](https://wordpress.org/support/topic/authentication/#post-1057229)
 * > 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](http://wordpress.org/extend/plugins/admin-ssl-secure-admin/)
   played with the authentication scheme. Take a look at the code there and see 
   if it helps.
 * Also the [OpenID plugin](http://wordpress.org/extend/plugins/openid/) might provide
   a clue.
 *  Thread Starter [animasola](https://wordpress.org/support/users/animasola/)
 * (@animasola)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/authentication/#post-1057439)
 * 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](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [17 years, 1 month ago](https://wordpress.org/support/topic/authentication/#post-1057452)
 * > we need separate blog instances for each user.
 * This is probably off track from your OP but that sounds more like [WordPress MU](http://mu.wordpress.org/)
   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](https://wordpress.org/support/users/animasola/)
 * (@animasola)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/authentication/#post-1057503)
 * 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.

 * 4 replies
 * 2 participants
 * Last reply from: [animasola](https://wordpress.org/support/users/animasola/)
 * Last activity: [17 years, 1 month ago](https://wordpress.org/support/topic/authentication/#post-1057503)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
