-// $ldapservers->SetValue($i,'server','branch_rename',false);
-
-/**************************************************************************
- * If you want to configure additional LDAP servers, do so below. *
- * Remove the commented lines and use this section as a template for all *
- * your other LDAP servers. *
- **************************************************************************/
-
-/*
-$i++;
-$ldapservers->SetValue($i,'server','name','LDAP Server');
-$ldapservers->SetValue($i,'server','host','127.0.0.1');
-$ldapservers->SetValue($i,'server','port','389');
-$ldapservers->SetValue($i,'server','base',array(''));
-$ldapservers->SetValue($i,'server','auth_type','cookie');
-$ldapservers->SetValue($i,'login','dn','');
-$ldapservers->SetValue($i,'login','pass','');
-$ldapservers->SetValue($i,'server','tls',false);
-$ldapservers->SetValue($i,'server','low_bandwidth',false);
-$ldapservers->SetValue($i,'appearance','password_hash','md5');
-$ldapservers->SetValue($i,'login','attr','dn');
-$ldapservers->SetValue($i,'login','string',null);
-$ldapservers->SetValue($i,'login','class',null);
-$ldapservers->SetValue($i,'server','read_only',false);
-$ldapservers->SetValue($i,'appearance','show_create',true);
-$ldapservers->SetValue($i,'auto_number','enable',true);
-$ldapservers->SetValue($i,'auto_number','mechanism','search');
-$ldapservers->SetValue($i,'auto_number','search_base',null);
-$ldapservers->SetValue($i,'auto_number','min','1000');
-$ldapservers->SetValue($i,'auto_number','dn',null);
-$ldapservers->SetValue($i,'auto_number','pass',null);
-$ldapservers->SetValue($i,'login','anon_bind',true);
-$ldapservers->SetValue($i,'custom','pages_prefix','custom_');
-$ldapservers->SetValue($i,'unique_attrs','dn',null);
-$ldapservers->SetValue($i,'unique_attrs','pass',null);
-
-# SASL auth
-$ldapservers->SetValue($i,'server','sasl_auth',true);
-$ldapservers->SetValue($i,'server','sasl_mech','PLAIN');
-$ldapservers->SetValue($i,'server','sasl_realm','EXAMPLE.COM');
-$ldapservers->SetValue($i,'server','sasl_authz_id',null);
-$ldapservers->SetValue($i,'server','sasl_authz_id_regex','/^uid=([^,]+)(.+)/i');
-$ldapservers->SetValue($i,'server','sasl_authz_id_replacement','$1');
-$ldapservers->SetValue($i,'server','sasl_props',null);
-*/
-
-/*********************************************/
-/* User-friendly attribute translation */
-/*********************************************/
-
-/* Use this array to map attribute names to user friendly names. For example, if
- you don't want to see "facsimileTelephoneNumber" but rather "Fax". */
-$friendly_attrs = array();
-
-$friendly_attrs['facsimileTelephoneNumber'] = 'Fax';
-$friendly_attrs['telephoneNumber'] = 'Phone';
-$friendly_attrs['uid'] = 'User Name';
-
-/*********************************************/
-/* Support for attrs display order */
-/*********************************************/
-
-/* Use this array if you want to have your attributes displayed in a specific
- order. You can use default attribute names or their fridenly names.
- For example, "sn" will be displayed right after "givenName". All the other
- attributes that are not specified in this array will be displayed after in
- alphabetical order. */
-# $attrs_display_order = array(
-# 'givenName',
-# 'sn',
-# 'cn',
-# 'displayName',
-# 'uid',
-# 'uidNumber',
-# 'gidNumber',
-# 'homeDirectory',
-# 'mail',
-# 'userPassword'
-# );
-
-/*********************************************/
-/* Hidden attributes */
-/*********************************************/
-
-/* You may want to hide certain attributes from being displayed in the editor
- screen. Do this by adding the desired attributes to this list (and uncomment
- it). This only affects the editor screen. Attributes will still be visible in
- the schema browser and elsewhere. An example is provided below:
- NOTE: The user must be able to read the hidden_except_dn entry to be
- excluded. */
-# $hidden_attrs = array( 'jpegPhoto', 'objectClass' );
-# $hidden_except_dn = "cn=PLA UnHide,ou=Groups,c=AU";
-
-/* Hidden attributes in read-only mode. If undefined, it will be equal to
- $hidden_attrs. */
-# $hidden_attrs_ro = array(
-# 'objectClass','shadowWarning', 'shadowLastChange', 'shadowMax',
-# 'shadowFlag', 'shadowInactive', 'shadowMin', 'shadowExpire');
-
-/** **/
-/** Read-only attributes **/
-/** **/
-
-/* You may want to phpLDAPadmin to display certain attributes as read only,
- meaning that users will not be presented a form for modifying those
- attributes, and they will not be allowed to be modified on the "back-end"
- either. You may configure this list here:
- NOTE: The user must be able to read the read_only_except_dn entry to be
- excluded. */
-# $read_only_attrs = array( 'objectClass' );
-# $read_only_except_dn = "cn=PLA ReadWrite,ou=Groups,c=AU";
-
-/* An example of how to specify multiple read-only attributes: */
-# $read_only_attrs = array( 'jpegPhoto', 'objectClass', 'someAttribute' );
+// $servers->setValue('server','branch_rename',false);
+
+/* If you set this, then phpldapadmin will show these attributes as
+ internal attributes, even if they are not defined in your schema. */
+// $servers->setValue('server','custom_sys_attrs',array(''));
+# $servers->setValue('server','custom_sys_attrs',array('passwordExpirationTime','passwordAllowChangeTime'));
+
+/* If you set this, then phpldapadmin will show these attributes on
+ objects, even if they are not defined in your schema. */
+// $servers->setValue('server','custom_attrs',array(''));
+# $servers->setValue('server','custom_attrs',array('nsRoleDN','nsRole','nsAccountLock'));
+
+/* These attributes will be forced to MAY attributes and become option in the
+ templates. If they are not defined in the templates, then they wont appear
+ as per normal template processing. You may want to do this becuase your LDAP
+ server may automatically calculate a default value.
+ In Fedora Directory Server using the DNA Plugin one could ignore uidNumber,
+ gidNumber and sambaSID. */
+// $servers->setValue('force_may','attrs',array(''));
+# $servers->setValue('force_may','attrs',array('uidNumber','gidNumber','sambaSID'));