Page MenuHomePhorge

Allow a static value in addition to optional list attribute values in the form
Closed, ResolvedPublic3 Story Points

Description

A user type configuration in which the nsroledn attribute value for static field values includes a configured value, such as cn=admin-user,%(base_dn)s, should still allow additional values to be specified, such as cn=kolab-user,$root_dn or cn=imap-user,$root_dn.

This can be achieved by examining the auto_form_fields for the same attribute key and by specifying optional => true.

Below is a snippet for user type configuration

$attributes = Array(
        'auto_form_fields' => Array(
                'nsroledn' => Array(
                        'optional' => true,
                        'type' => list
                    ),
                (...)
            ),
        'form_fields' => Array(
                (...)
            ),
        'fields' => Array(
                (...)
                'nsroledn' => Array(
                        'cn=admin-user,%(base_dn)s'
                    )
            )
    );

Details

Ticket Type
Task

Event Timeline

vanmeeuwen claimed this task.
vanmeeuwen raised the priority of this task from to 60.
vanmeeuwen updated the task description. (Show Details)
vanmeeuwen added projects: Web Administration Panel, Restricted Project.
vanmeeuwen changed Ticket Type from Task to Task.
vanmeeuwen subscribed.
vanmeeuwen edited projects, added Restricted Project; removed Restricted Project.Jun 22 2015, 11:03 AM
vanmeeuwen claimed this task.
vanmeeuwen moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.
machniak moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.