The MU forums have moved to WordPress.org

use an existing userbase (3 posts)

  1. corbosman
    Member
    Posted 17 years ago #

    Hi all, im trying to get the following to work. Let users create a new login by authenticating against an existing user backend and use that login. Ive got no problem coding the authentication, but im a little lost as to where best to implement this. The best would be if the users are always authenticated against an existing backend, but otherwise im also fine with creating a local user once the authentication is valid.

    People should not be able to create blogs unless they're logged in.

    Can his be done through plugins or do I need to change wp-signup.php?

    Thanks for any help,

    Cor

  2. andrea_r
    Moderator
    Posted 17 years ago #

    Well, there's already an option in the backend to allow logged in users to create blogs and no one else.

    Might have to start with the getting them to authenticate first, then MU should handle everything else.

  3. mjhca
    Member
    Posted 17 years ago #

    Look at wp-includes/pluggable.php. All of the functions there can be overridden by a file placed in wp-content/mu-plugins.

    You can use the existing function as your base and then modify as necessary to authenticate against your back end.

    Depending on your desired setup, the wp_authenticate function may be a good starting point.

About this Topic