print_unescaped('<p class="ldapwarning">'.$l->t('<b>Warning:</b> Apps user_ldap and user_webdavauth are incompatible. You may experience unexpected behaviour. Please ask your system administrator to disable one of them.').'</p>');
print_unescaped('<p class="ldapwarning">'.$l->t('<b>Warning:</b> Apps user_ldap and user_webdavauth are incompatible. You may experience unexpected behavior. Please ask your system administrator to disable one of them.').'</p>');
}
if(!function_exists('ldap_connect')){
print_unescaped('<p class="ldapwarning">'.$l->t('<b>Warning:</b> The PHP LDAP module is not installed, the backend will not work. Please ask your system administrator to install it.').'</p>');
<p><labelfor="ldap_backup_host"><?phpp($l->t('Backup (Replica) Host'));?></label><inputtype="text"id="ldap_backup_host"name="ldap_backup_host"data-default="<?phpp($_['ldap_backup_host_default']);?>"title="<?phpp($l->t('Give an optional backup host. It must be a replica of the main LDAP/AD server.'));?>"></p>
<p><labelfor="ldap_override_main_server"><?phpp($l->t('Disable Main Server'));?></label><inputtype="checkbox"id="ldap_override_main_server"name="ldap_override_main_server"value="1"data-default="<?phpp($_['ldap_override_main_server_default']);?>"title="<?phpp($l->t('When switched on, ownCloud will only connect to the replica server.'));?>"/></p>
<p><labelfor="ldap_override_main_server"><?phpp($l->t('Disable Main Server'));?></label><inputtype="checkbox"id="ldap_override_main_server"name="ldap_override_main_server"value="1"data-default="<?phpp($_['ldap_override_main_server_default']);?>"title="<?phpp($l->t('Only connect to the replica server.'));?>"/></p>
<p><labelfor="ldap_tls"><?phpp($l->t('Use TLS'));?></label><inputtype="checkbox"id="ldap_tls"name="ldap_tls"value="1"data-default="<?phpp($_['ldap_tls_default']);?>"title="<?phpp($l->t('Do not use it additionally for LDAPS connections, it will fail.'));?>"/></p>
<p><labelfor="ldap_nocase"><?phpp($l->t('Case insensitve LDAP server (Windows)'));?></label><inputtype="checkbox"id="ldap_nocase"name="ldap_nocase"data-default="<?phpp($_['ldap_nocase_default']);?>"value="1"<?phpif(isset($_['ldap_nocase'])&&($_['ldap_nocase']))p(' checked');?>></p>
<p><labelfor="ldap_turn_off_cert_check"><?phpp($l->t('Turn off SSL certificate validation.'));?></label><inputtype="checkbox"id="ldap_turn_off_cert_check"name="ldap_turn_off_cert_check"title="<?phpp($l->t('If connection only works with this option, import the LDAP server\'s SSL certificate in your ownCloud server.'));?>"data-default="<?phpp($_['ldap_turn_off_cert_check_default']);?>"value="1"><br/><small><?phpp($l->t('Not recommended, use for testing only.'));?></small></p>
<p><labelfor="ldap_turn_off_cert_check"><?phpp($l->t('Turn off SSL certificate validation.'));?></label><inputtype="checkbox"id="ldap_turn_off_cert_check"name="ldap_turn_off_cert_check"title="<?phpp($l->t('If connection only works with this option, import the LDAP server\'s SSL certificate in your %s server.',$defaults->getName()));?>"data-default="<?phpp($_['ldap_turn_off_cert_check_default']);?>"value="1"><br/><small><?phpp($l->t('Not recommended, use for testing only.'));?></small></p>
<p><labelfor="ldap_cache_ttl"><?phpp($l->t('Cache Time-To-Live'));?></label><inputtype="number"id="ldap_cache_ttl"name="ldap_cache_ttl"title="<?phpp($l->t('in seconds. A change empties the cache.'));?>"data-default="<?phpp($_['ldap_cache_ttl_default']);?>"/></p>
</div>
<h3><?phpp($l->t('Directory Settings'));?></h3>
<div>
<p><labelfor="ldap_display_name"><?phpp($l->t('User Display Name Field'));?></label><inputtype="text"id="ldap_display_name"name="ldap_display_name"data-default="<?phpp($_['ldap_display_name_default']);?>"title="<?phpp($l->t('The LDAP attribute to use to generate the user`s ownCloud name.'));?>"/></p>
<p><labelfor="ldap_display_name"><?phpp($l->t('User Display Name Field'));?></label><inputtype="text"id="ldap_display_name"name="ldap_display_name"data-default="<?phpp($_['ldap_display_name_default']);?>"title="<?phpp($l->t('The LDAP attribute to use to generate the user'sdisplayname.'));?>" /></p>
<p><labelfor="ldap_group_display_name"><?phpp($l->t('Group Display Name Field'));?></label><inputtype="text"id="ldap_group_display_name"name="ldap_group_display_name"data-default="<?phpp($_['ldap_group_display_name_default']);?>"title="<?phpp($l->t('The LDAP attribute to use to generate the groups`s ownCloud name.'));?>"/></p>
<p><labelfor="ldap_base_groups"><?phpp($l->t('Base Group Tree'));?></label><textareaid="ldap_base_groups"name="ldap_base_groups"placeholder="<?phpp($l->t('One Group Base DN per line'));?>"data-default="<?phpp($_['ldap_base_groups_default']);?>"title="<?phpp($l->t('Base Group Tree'));?>"></textarea></p>
<p><labelfor="ldap_attributes_for_group_search"><?phpp($l->t('Group Search Attributes'));?></label><textareaid="ldap_attributes_for_group_search"name="ldap_attributes_for_group_search"placeholder="<?phpp($l->t('Optional; one attribute per line'));?>"data-default="<?phpp($_['ldap_attributes_for_group_search_default']);?>"title="<?phpp($l->t('Group Search Attributes'));?>"></textarea></p>
<pclass="ldapIndent"><?phpp($l->t('By default the internal username will be created from the UUID attribute. It makes sure that the username is unique and characters do not need to be converted. The internal username has the restriction that only these characters are allowed: [ a-zA-Z0-9_.@- ]. Other characters are replaced with their ASCII correspondence or simply omitted. On collisions a number will be added/increased. The internal username is used to identify a user internally. It is also the default name for the user home folder in ownCloud. It is also a port of remote URLs, for instance for all *DAV services. With this setting, the default behaviour can be overriden. To achieve a similar behaviour as before ownCloud 5 enter the user display name attribute in the following field. Leave it empty for default behaviour. Changes will have effect only on newly mapped (added) LDAP users.'));?></p>
<pclass="ldapIndent"><?phpp($l->t('By default the internal username will be created from the UUID attribute. It makes sure that the username is unique and characters do not need to be converted. The internal username has the restriction that only these characters are allowed: [ a-zA-Z0-9_.@- ]. Other characters are replaced with their ASCII correspondence or simply omitted. On collisions a number will be added/increased. The internal username is used to identify a user internally. It is also the default name for the user home folder. It is also a part of remote URLs, for instance for all *DAV services. With this setting, the default behavior can be overridden. To achieve a similar behavior as before ownCloud 5 enter the user display name attribute in the following field. Leave it empty for default behavior. Changes will have effect only on newly mapped (added) LDAP users.'));?></p>
<pclass="ldapIndent"><?phpp($l->t('By default, ownCloud autodetects the UUID attribute. The UUID attribute is used to doubtlessly identify LDAP users and groups. Also, the internal username will be created based on the UUID, if not specified otherwise above. You can override the setting and pass an attribute of your choice. You must make sure that the attribute of your choice can be fetched for both users and groups and it is unique. Leave it empty for default behaviour. Changes will have effect only on newly mapped (added) LDAP users and groups.'));?></p>
<pclass="ldapIndent"><?phpp($l->t('By default, the UUID attribute is automatically detected. The UUID attribute is used to doubtlessly identify LDAP users and groups. Also, the internal username will be created based on the UUID, if not specified otherwise above. You can override the setting and pass an attribute of your choice. You must make sure that the attribute of your choice can be fetched for both users and groups and it is unique. Leave it empty for default behavior. Changes will have effect only on newly mapped (added) LDAP users and groups.'));?></p>
<p><strong><?phpp($l->t('Username-LDAP User Mapping'));?></strong></p>
<pclass="ldapIndent"><?phpp($l->t('ownCloud uses usernames to store and assign (meta) data. In order to precisely identify and recognize users, each LDAP user will have a internal username. This requires a mapping from ownCloud username to LDAP user. The created username is mapped to the UUID of the LDAP user. Additionally the DN is cached as well to reduce LDAP interaction, but it is not used for identification. If the DN changes, the changes will be found by ownCloud. The internal ownCloud name is used all over in ownCloud. Clearing the Mappings will have leftovers everywhere. Clearing the Mappings is not configuration sensitive, it affects all LDAP configurations! Do never clear the mappings in a production environment. Only clear mappings in a testing or experimental stage.'));?></p>
<pclass="ldapIndent"><?phpp($l->t('Usernames are used to store and assign (meta) data. In order to precisely identify and recognize users, each LDAP user will have a internal username. This requires a mapping from username to LDAP user. The created username is mapped to the UUID of the LDAP user. Additionally the DN is cached as well to reduce LDAP interaction, but it is not used for identification. If the DN changes, the changes will be found. The internal username is used all over. Clearing the mappings will have leftovers everywhere. Clearing the mappings is not configuration sensitive, it affects all LDAP configurations! Never clear the mappings in a production environment, only in a testing or experimental stage.'));?></p>
<pclass="ldapIndent"><buttonid="ldap_action_clear_user_mappings"name="ldap_action_clear_user_mappings"><?phpp($l->t('Clear Username-LDAP User Mapping'));?></button><br/><buttonid="ldap_action_clear_group_mappings"name="ldap_action_clear_group_mappings"><?phpp($l->t('Clear Groupname-LDAP Group Mapping'));?></button></p>