Hi,

The problem occurs when an user tries to change his/her LDAP attributes. If at least one attribute is empty when submitting, a error message is given.

The code on CVS sends empty attributes to the ldap_modify function like: telephoneNumber => ''. The correct would be telephoneNumber => array(). See http://br.php.net/manual/pt_BR/function.ldap-modify.php for details.

I just implemented the solution found in the php page, and now the problem is solved.

CommentFileSizeAuthor
ldap_integration-empty-attribute.patch732 bytesrodrigorgs

Comments

pablobm’s picture

Thanks for pointing out. I can't see those errors, but I presume they depend on LDAP version.

Besides, I realised attributes couldn't be set empty through the interface (at least in my version), so I solved that too.

pablobm’s picture

Status: Reviewed & tested by the community » Closed (fixed)

I presume this is solved now.