A page in your DokuWiki was added or changed. Here are the details:

Date        : 2019/07/23 15:11
Browser     : Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:68.0) Gecko/20100101 
Firefox/68.0
IP-Address  : 81.250.130.213
Hostname    : lneuilly-657-1-3-213.w81-250.abo.wanadoo.fr
Old Revision: 
http://ltb-project.org/documentation/white-pages/0.3/config_attributes?rev=1525253859
New Revision: 
http://ltb-project.org/documentation/white-pages/0.3/config_attributes
Edit Summary: 
User        : coudot

@@ -19,22 +19,38 @@
  | boolean           | "Yes" or "No"                                | Select   
                   | N/A |
  | date              | [[.:config_general#date|Formatted date]]     | Calendar 
("from" and "to")  | N/A |
  | tel               | Link tel (click to call)                     | Text 
input                  | Yes |
  | guid              | Simple text (objectGUID converted to string) | Text 
input                  | No  |
+ | list              | Simple text                                  | Select   
                   | Yes  |
  
  Example:
  <file php>
  $attributes_map = array(
      'businesscategory' => array( 'attribute' => 'businesscategory', 'faclass' 
=> 'briefcase', 'type' => 'text' ),
      'carlicense' => array( 'attribute' => 'carlicense', 'faclass' => 'car', 
'type' => 'text' ),
      'created' => array( 'attribute' => 'createtimestamp', 'faclass' => 
'clock-o', 'type' => 'date' ),
+     'manager' => array( 'attribute' => 'manager', 'faclass' => 
'user-circle-o', 'type' => 'dn_link' ),
+     'member' => array( 'attribute' => 'member', 'faclass' => 'user', 'type' 
=> 'usergroup_dn_link' ),
+ );
+ 
+ $attributes_list = array(
+     'organizationalunit' => 
array('base'=>'ou=services,dc=example,dc=com','filter'=>'(objectClass=organizationalUnit)','key'=>'description','value'=>'ou'),
  );
  </file>
  
  To add a new definition to existing ones:
  <file php>
  $attributes_map['fax'] = array( 'attribute' => 'facsimiletelephonenumber', 
'faclass' => 'fax', 'type' => 'text' );
  </file>
+ 
+ To manage a list, you need to define how keys and values are searched in LDAP 
directory, for example:
+ <file php>
+ $attributes_map['organizationalunit]' = array( 'attribute' => 'ou', 'faclass' 
=> 'building-o', 'type' => 'list' );
+ $attributes_list['organizationalunit'] = 
array('base'=>'ou=services,dc=example,dc=com', 
'filter'=>'(objectClass=organizationalUnit)', 'key'=>'description', 
'value'=>'ou');
+ );
+ </file>
+ 
+ The attribute set in ''key'' will be used as select key, and the attribute 
set in ''value'' will be used as select value.
  
  <note tip>
  You can translate attribute label by defining the ''label_item'' messages in 
[[.:config_general#lang|custom lang file]], for example:
  <file php>



-- 
This mail was generated by DokuWiki at
http://ltb-project.org/
_______________________________________________
ltb-changes mailing list
ltb-changes@lists.ltb-project.org
https://lists.ltb-project.org/cgi-bin/mailman/listinfo/ltb-changes

Reply via email to