The MU forums have moved to WordPress.org

LDAP plugin - allow users to choose domain name? (9 posts)

  1. beatbox433
    Member
    Posted 15 years ago #

    Hi,

    Has anyone adapted the LDAP plugin to allow users to nominate the name of the sub-domain (or sub-directory) of the blog when it is created?
    At the moment the username is used by default.

    Thanks.

  2. beatbox433
    Member
    Posted 15 years ago #

    Any takers on this?
    Or hints where to start if I have a go at it myself?
    Thanks!

  3. beatbox433
    Member
    Posted 15 years ago #

    :(

    Bump

  4. beatbox433
    Member
    Posted 15 years ago #

    Looks like I've got this working now.

    My approach was to edit wp-login.php so that when calling wp-login.php?createblog=true it displays form fields for Blog URL and Blog Title as well as username and password.

    So the user is authenticated against LDAP but still gets to choose the blog url. :)

    Various edits to the LDAP plugin and some other WPMU files were also required.

  5. na3s
    Member
    Posted 15 years ago #

    Would you be willing to put a How-To on here? You know, the good ole "Find line X... and paste this" and "Replace X with Y"

    :)

    ?

  6. bobsgt
    Member
    Posted 15 years ago #

    "Various edits to the LDAP plugin and some other WPMU files were also required......"

    A "how to" would be great if you would.

  7. beatbox433
    Member
    Posted 15 years ago #

    Hi folks,
    I will try to put up some documentation for this in the new year.

  8. anointed
    Member
    Posted 15 years ago #

    I'd love to hear how you did this

  9. beatbox433
    Member
    Posted 15 years ago #

    I've uploaded the amended files here:
    http://stashbox.org/428957/custom%20wpmu-ldap_2.6.0%20FINAL.zip

    **IMPORTANT! Use entirely at your own risk! Has NOT been tested in a production environment.**

    Back up all your files before applying any changes.

    Working OK here in a test installation.

    Please see the readme file.
    Sorry I don't have time to document what I've done, but if you compare the edited files with the originals, you should be able to work it out.

    Please let me know if you find it useful! Better still, if you have suggestions for improvements, upload them here.

About this Topic

  • Started 15 years ago by beatbox433
  • Latest reply from beatbox433