I've seen quite a lot of LDAP addressbooks, but none of these support
multiple attributes of the same type, like e.g. 5 mail addresses. I've
quite a lot of DN's that use more than one single mail address (or
even multiple locations) and unfortunately your nice looking and well
working ldap addressbook is unusable for me. I use ldapvi or
phpldapadmin, but these tools are ldap tools, not addressbook clients.
Is this a feature that can be added in the near future? IMHO it's just
a GUI restriction, not an LDAP restriction...
Version 0.37 of the Address Book allows you to edit "text_list" attributes, i.e. multi-valued attributes where each value contains a single line of text.
If the directory schema allows multiple values to be stored but the Address Book only lets you store one, you can change the data type to "text_list" (instead of "text") as follows:
Version 0.39 of the Address Book adds a "text_area_list" data type which can be used to display and edit multi-valued attributes where each value can contain several lines of text, e.g. an address.
The following config command will change the "street" attribute to being a "text_area_list", allowing it to store more than one address.
lines? When adding them to config.php the fields become sort of greyed out, in other words: unusable.
Another issue is the use of the info attribute. Adding the info attribute results in an "object violation" (OpenLDAP, Debian). Adding the field using ldapmodify returns:
ldap_modify: Object class violation (65)
additional info: attribute 'info' not allowed
Searching the web, I stumbled upon this message indicating that the use of the "info" attribute is discouraged:
Changing the line in config.php somewhere around line 300:
array($ad ? "info" : "description")
to
array($ad ? "description" : "description")
makes it work, only the "description" attribute seems to allow only a single line. Is there a way to use something else than the "info" attribute for a multi line text aera?
R.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello James,
I've seen quite a lot of LDAP addressbooks, but none of these support
multiple attributes of the same type, like e.g. 5 mail addresses. I've
quite a lot of DN's that use more than one single mail address (or
even multiple locations) and unfortunately your nice looking and well
working ldap addressbook is unusable for me. I use ldapvi or
phpldapadmin, but these tools are ldap tools, not addressbook clients.
Is this a feature that can be added in the near future? IMHO it's just
a GUI restriction, not an LDAP restriction...
Richard
--
richard lucassen
http://contact.xaq.nl/
Yes, I think this is worth adding.
Version 0.37 of the Address Book allows you to edit "text_list" attributes, i.e. multi-valued attributes where each value contains a single line of text.
If the directory schema allows multiple values to be stored but the Address Book only lets you store one, you can change the data type to "text_list" (instead of "text") as follows:
$ldap_server->modify_attribute_schema("mail","data_type","text_list");
This example lets you store multiple e-mail addresses per record.
What attribute(s) are you using to store the addresses? One attribute for the whole address, or different attributes for the component parts?
Version 0.39 of the Address Book adds a "text_area_list" data type which can be used to display and edit multi-valued attributes where each value can contain several lines of text, e.g. an address.
The following config command will change the "street" attribute to being a "text_area_list", allowing it to store more than one address.
$ldap_server->modify_attribute_schema("street","data_type","text_area_list");
This causes an "Add" button to be displayed underneath the address field - click to add another address.
I just tried 0.40. Where do I enter these
$ldap_server->modify_attribute_schema("street","data_type","text_area_list");
lines? When adding them to config.php the fields become sort of greyed out, in other words: unusable.
Another issue is the use of the info attribute. Adding the info attribute results in an "object violation" (OpenLDAP, Debian). Adding the field using ldapmodify returns:
ldap_modify: Object class violation (65)
additional info: attribute 'info' not allowed
Searching the web, I stumbled upon this message indicating that the use of the "info" attribute is discouraged:
https://www.openldap.org/lists/openldap-technical/201704/msg00021.html
Changing the line in config.php somewhere around line 300:
array($ad ? "info" : "description")
to
array($ad ? "description" : "description")
makes it work, only the "description" attribute seems to allow only a single line. Is there a way to use something else than the "info" attribute for a multi line text aera?
R.