Title: Automatic user creation
Last modified: August 21, 2016

---

# Automatic user creation

 *  [jlenon](https://wordpress.org/support/users/jlenon/)
 * (@jlenon)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/automatic-user-creation/)
 * I’ve successfully setup your plugin. I’ve discovered one problem. I’ve got “Create
   WordPress user for authenticated LDAP login with appropriate roles” checked. 
   The new user is being created with the user_nicename set as givenname + ‘ ‘ +
   sn. This space is causing a problem with some other plugins. We can work around
   the problem by editing the plugin code to be
 * $user_data[‘user_nicename’] = $username;
    $user_data[‘display_name’] = $userinfo[‘
   givenname’][0] . ‘ ‘ . $userinfo[‘sn’][0];
 * rather than
 * $user_data[‘user_nicename’] = $userinfo[‘givenname’][0] . ‘ ‘ . $userinfo[‘sn’][
   0];
    $user_data[‘display_name’] = $user_data[‘user_nicename’];
 * Would it be possible to make this a setting so we could control the user_nicename
   value ie givenname + sn or username.
 * [https://wordpress.org/plugins/simple-ldap-login/](https://wordpress.org/plugins/simple-ldap-login/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [lachlan.mcdonald](https://wordpress.org/support/users/lachlanmcdonald/)
 * (@lachlanmcdonald)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/automatic-user-creation/#post-4928914)
 * For one, this issue affects the _Co-Authors Plus_ plugin.
 *  [Stephen Rider](https://wordpress.org/support/users/strider72/)
 * (@strider72)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/automatic-user-creation/#post-4929036)
 * Related: [http://wordpress.org/support/topic/buddypress-integration-problem](http://wordpress.org/support/topic/buddypress-integration-problem)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Automatic user creation’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-ldap-login_ffffff.svg)
 * [Simple LDAP Login](https://wordpress.org/plugins/simple-ldap-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-ldap-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-ldap-login/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-ldap-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-ldap-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-ldap-login/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Stephen Rider](https://wordpress.org/support/users/strider72/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/automatic-user-creation/#post-4929036)
 * Status: not resolved