User create fails while generating a username with a whitespace

Nr. 18 - May 19, 2009 - 08:20
Project:LDAP provisioning
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs work
Description

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);

#1

miglius - May 21, 2009 - 11:58
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.

#2

Nr. 18 - May 25, 2009 - 08:26
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

 
 

Drupal is a registered trademark of Dries Buytaert.