Reviewed & tested by the community
Project:
LDAP provisioning
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
15 Oct 2007 at 23:06 UTC
Updated:
11 Apr 2014 at 12:43 UTC
Jump to comment: Most recent
Comments
Comment #1
miglius commentedThanks for spotting this bug.
The actual ldap creation error was to the fact that Last name (sn in ldap) is a required attribute. So if last name is not set I set sn attribute in ldap to the username value. Also have fixed the foreach statement.
Comment #2
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #3
ckngmiglius,
I reopen the issue as it seems the patch is not yet in the cvs nor in the latest release.
Comment #4
miglius commentedThe code which you want to change in the patch
constructs a $data array with a registration form submitted data which will be saved in the db for the account approver to be able to review it. The problem is that under certain configuration (if we request only username and email in the registration form) the $data array might not be defined. If I apply your patch, then all hidden form elements, captcha answer (if captcha module is enabled) would be saved in the db, which is unnecessary.
The error says about empty array in line 1374. To fix it I have added a check if the array is not empty before foreach statement:
Can you just check with the latest code if you still are getting the warning in the log?