comanage-users - Re: [comanage-users] plugin help
Subject: COmanage Users List
List archive
- From: Benn Oshrin <>
- To: Mike Manske <>
- Cc:
- Subject: Re: [comanage-users] plugin help
- Date: Mon, 19 Jun 2017 09:25:20 -0400
- Ironport-phdr: 9a23:KBjK4RKoCExBGqWif9mcpTZWNBhigK39O0sv0rFitYgeKPvxwZ3uMQTl6Ol3ixeRBMOAuq0C27ed7fyocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbQhFgDiwbalxIRi2ognct8YbipZ+J6gszRfEvmFGcPlMy2NyIlKTkRf85sOu85Nm7i9dpfEv+dNeXKvjZ6g3QqBWAzogM2Au+c3krgLDQheV5nsdSWoZjBxFCBXY4R7gX5fxtiz6tvdh2CSfIMb7Q6w4VSik4qx2UxLjljsJOCAl/2HWksxwjbxUoBS9pxxk3oXYZJiZOOdicq/BeN8XQ3dKUMRMWCxbGo6ycpUBD+QBM+hboYfyqVQBohmiCgejH+7v1j1Fi2Xq0aEm3eksEwfL1xEgEdIUt3TUqc34OboMXuCzyqnD0CzNb+hW2Tfn6YjIdA0qrPaXUr1ud8rRz04vGhjEjlWWtYzqISmV1uITvGiH8eZsT/yghHM6qwxopDWk28QiipHRi44L1lzJ9j91zYI3KNGiVUJ2b8CoHIFOuy2GNIZ6Wt4uT31rtSogxLAKpYS3cDYXxJg53RLTdfOKfoqO7xn+TuieOy14i2hgeL+nhxa970ygyurkW8m011ZKqytFncfJtn8X1hzT7tGLReFj8ku71jaDzR3c6vtaLk8ukKrbK5khwqUslpYJrUvDGSr2lF33jK+QaEok5vCl5/r7brjlvJORM415hhvjPqkghMCzG/o0PhQNUmSD/OSzzrzj/Un3QLVQif02l7HUv4vEKsQdoK65BBRY0ocl6xajETimytIYkmcbLF5bYh6IkZXmO0zWLPDiEfi/m0iskCtsx/3eIrLhBZDNIWLFkLj7crZy9VdQyBcozd9B/ZJUEaoMIPbyWk/qqNzYFQE1Pxa1w+bhFNVyyJkeWWSRDa+FLq/eq0GH6f8yI7rEWIhAnTf+JrAA7vj1jnJxzVocdqmg0J9RbXm+BfdrC0GYbn2qhc0ORzQkpA07GcbnjlvKdiVTfXe0F/Y26zc9D6qnC5vOXIagnObH0SumSM4FLltaA0yBRC+7P76PXO0BPWfLepds
The LDAP attribute assembly code should only work with attributes that
are returned by the assemblePluginAttributes function. You aren't using
this attribute to construct the DN, are you?
If not, can you file a bug report so we don't lose track of the issue,
and include your version of PHP?
Thanks,
-Benn-
On 6/16/17 9:12 PM, Mike Manske wrote:
> slapd reports as I expected: "do_add: no values for type
> mailAlternateAddress". So it sounds like it is trying to add the
> element even though there are no values.
>
>
> Unconfigured Attribute Mode is set to "Ignore."
>
>
>
> On Fri, Jun 16, 2017 at 4:35 PM, Benn Oshrin
> <>
> wrote:
>> Are there any errors in the LDAP server log files? For example with
>> OpenLDAP there is typically a message indicating what the object class
>> violation was. That might help us pin down what exactly the provisioner
>> is trying to do.
>>
>> Also, is Unconfigured Attribute Mode set to "Ignore" or "Remove"?
>>
>> Thanks,
>>
>> -Benn-
>>
>> On 6/16/17 5:25 PM, Mike Manske wrote:
>>> Version 2.
>>>
>>> We wrote an ldap plugin to use the qmailUser object class, attribute
>>> 'mailAlternateAddress'. As per the schema, this value should be
>>> optional, and allow multiple values. In the configuration, we did not
>>> specify any additional person object classes, as qmailUser is already
>>> included.
>>>
>>> I have the model attributes defined as:
>>> // using qmail
>>> public $attributes = array(
>>> 'qmailUser' => array(
>>> 'objectclass' => array(
>>> 'required' => true
>>> ),
>>> 'attributes' => array(
>>> 'mailAlternateAddress' => array(
>>> 'required' => false,
>>> 'multiple' => true,
>>> 'extendedtype' => 'email_address_types',
>>> 'defaulttype' => 'altListSub'
>>> )
>>> )
>>> )
>>> );
>>>
>>> All of this works fine, EXCEPT when there is no alternate
>>> mailAlternateAddress defined. My sense is that COmanage is trying to
>>> add a mailAlternateAddress with a blank value, which violates the
>>> schema.
>>>
>>> When I try to provision a user that does not have a
>>> mailAlternateAddress, the following msg is displayed: Provisioning
>>> failed: Protocol error (500).
>>>
>>> I validated that my assemblePluginAttributes function returns an empty
>>> array when there is no value found in the provisioning data. I even
>>> tried to force a return of null and the same problem occurred.
>>>
>>> Any advice is appreciated.
>>>
- [comanage-users] plugin help, Mike Manske, 06/16/2017
- Re: [comanage-users] plugin help, Benn Oshrin, 06/16/2017
- Re: [comanage-users] plugin help, Mike Manske, 06/17/2017
- Re: [comanage-users] plugin help, Benn Oshrin, 06/19/2017
- Re: [comanage-users] plugin help (CO-1492), Benn Oshrin, 06/25/2017
- Re: [comanage-users] plugin help, Benn Oshrin, 06/19/2017
- Re: [comanage-users] plugin help, Mike Manske, 06/17/2017
- Re: [comanage-users] plugin help, Benn Oshrin, 06/16/2017
Archive powered by MHonArc 2.6.19.