The MU forums have moved to WordPress.org

WPMU LDAP and "Display name publicly as" (4 posts)

  1. xyzzy
    Member
    Posted 15 years ago #

    Hi,

    I have the WPMU LDAP plugin working with WPMU 2.7. It seems to function fine... and it
    pulls over the users' First and Last names from LDAP properly.

    However, by default, it sets the "Display name publicly as" to the user's
    login username. (This seems to be default Wordpress behavior, as well)

    Is there a way to tell WPMU to use the combination of the user's First and
    Last names by default, when adding users from LDAP?

    Thanks-
    Bill

  2. xyzzy
    Member
    Posted 15 years ago #

    Hi,

    I may have found a workaround.

    Edit this file:
    wpmu_ldap.functions.php

    and add this line:
    update_usermeta( $user_id, 'display_name', $ldapUserData[LDAP_INDEX_NAME] );

    at about line 29.

    Does this look right? It seems to work in my testing.

    Thanks-
    -Bill

  3. DeannaS
    Member
    Posted 15 years ago #

    You should send info to Aaron - he's really good about adding features to the ldap plugin. He'll want to make it a switch that admins can control through the gui - but that wouldn't be hard to do.

    His site is here:
    http://wpmuldap.frozenpc.net/

  4. xyzzy
    Member
    Posted 15 years ago #

    thanks, will do.

About this Topic