Closed (won't fix)
Project:
LDAP integration
Version:
5.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Nov 2007 at 12:24 UTC
Updated:
6 Aug 2011 at 18:31 UTC
When user logins or updates Profile field which is optional and the field is empty in LDAP, you'll receive: "warning: ldap_mod_del () []: Modify: Invalid syntax in ldap_integration\ldap_integration\LDAPInterface.php on line 214" for each empty field.
Reported before in http://drupal.org/node/80204#comment-439397, but seems like everyone missed it.
This fixes the problem:
Line 214: modules/ldap_integration/ldap_integration/LDAPInterface.php
Change this
ldap_mod_del($this->connection, $dn, array($key => $old_value));
To
if ($old_value != null) {
ldap_mod_del($this->connection, $dn, array($key => $old_value));
}
| Comment | File | Size | Author |
|---|---|---|---|
| LDAPInterface.php-emptyfield.patch | 714 bytes | ckng |
Comments
Comment #1
grendzy commentedThis fixed the issue for me, thanks (BTW I was using it on 6.x-1.0-alpha2, and the patch still applies).
Comment #2
eriktoyra commentedThis patch works for me for 5.x-1.3. Thanks!
Comment #3
johnbarclay commentedClosing 5.x issues to clean out issue queue.