unable to add a member when there are at least two members in the group
I have an issue regarding altering group with the webservice. I am trying to add one people to an existing group. When the existing group has only 1 member it works well. But when I'm trying to add a member to a group containing ~2200 members, I got no error but it isn't added.
My code is:
$fdresult = $client->getfields($session_id, 'ogroup', cn=xxx); $group_members = $fdresult['sections']['members']['attrs']['member']['value']; $group_members[] = 'uid=debugdebug,ou=yyy'; $gdata['ogroup']['member']['value'] = $group_members; $fdresult = $client->setfields($session_id, 'ogroup', 'cn=xxx', $gdata); print_r($fdresult);
The output of the print_r() above is simply the DN of the ""modified"" object (it isn't actually, here we should get an error from the webservice).
After investigation with Côme it seems there is an LDAP error:
Array ( [errors] => Array ( [0] => msg_dialog Object ( [s_Title:msg_dialog:private] => LDAP error while modify [s_Message:msg_dialog:private] => LDAP operation failed!
Object: cn=xxx
Error: Invalid syntax (member: value #0 invalid per syntax, while operating on 'cn=xxx' using LDAP server 'ldap://zzz') [i_Type:msg_dialog:private] => 10003 [i_ID:msg_dialog:private] => 0549613001475143928 [a_Trace:msg_dialog:private] => Array (
To get the above I've added in json.rpc , _setfields(), right after the final save:
return array('errors' => print_r($msg_dialogs, TRUE));
Cheers.
(from redmine: issue id 5171, created on 2016-09-29, closed on 2016-10-03)
- Custom Fields:
- Bug in version: 1.0.15