WordPress.org

Ready to get started?Download WordPress

Forums

Authenticate users from AD and create one blog automatically (3 posts)

  1. kristianjohansen
    Member
    Posted 3 years ago #

    Hi

    What is the best way to set up a multisite WordPress installation that would:
    - Authenticate user from active directory (I have tried plugins that will do this)
    - Automatically create one account and one blog, the first time they log in
    - Not add all users to the top level blog
    I’m sure this is a common setup but for some reason I can’t find any documentation for this…

    Tnx.

  2. vandaleh
    Member
    Posted 3 years ago #

    Hi

    I see no responses here on this topic -- have you found anything out elsewhere. I'm interested in this functionality as well (although our authentication is via soap and our LMS.)

    Cheers,
    Dave

  3. kristianjohansen
    Member
    Posted 3 years ago #

    I have done several things to make it work as we wanted.

    The AD-authentication plugin creates the user, but not a site. Thus registered users are allowed to create new sites. As we wanted to control the URL and only allow users to create 1 site I had to change the code in wp-signup.php and wp-admin/includes/ms.php.

    If you are interested in the details I can post them, but basically my code forces the URL to be host/username. Since the users cannot change this they will get an error message if they try to create another blog. The change in the ms.php is just commenting out the line printing the “create another site”-link.

    Still searching for some documentation related to my setup….

    Cheers,
    Kristian

Topic Closed

This topic has been closed to new replies.

About this Topic