When a user signs up for our community website it is stored in our OpenLDAP server. The user needs to fill in his first and last name and i have disabled the custom usernames and set a username template like this: "%f.%l".

But when a user with a middle name wants to join for example: "Henk de Boer" and the user fills in "de Boer" as last name or "Henk de" as first name, the validation email will be send out but when the user try to validate the account has not been created and the username and password has not been send out to the users email address.

Also while you are in this process and the user validates his email correctly, it will be redirected to the login page but there is no message that the credentials are mailed out to the email address of the specific user.

I created a quick fix like this in ldapprov.module line #1555

$first_name = str_replace(' ','.',$first_name);    
$last_name = str_replace(' ','.',$last_name);

Comments

miglius’s picture

Version: 6.x-1.0-alpha2 » 6.x-1.x-dev
Status: Active » Fixed

Could you test a dev version of the module? White spaces in the name are translated to dashes.

Nr. 18’s picture

Status: Fixed » Needs work

Fatal error: Cannot use string offset as an array in /vhosts/community/includes/form.inc on line 985

When i install the dev module i get a fatal error, while calling the following url: /user/register

Another question, will there be in the future plans to support middle names? And Drupal 7 support

kenorb’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)

Drupal 6 is no longer officially supported. If you think this issue is still relevant for 8.x, feel free to re-open.