## -*- coding: utf-8 -*- <%inherit file="/base/base.html"/> <%def name="title()"> ${_('LDAP administration')} - ${c.rhodecode_name} <%def name="breadcrumbs_links()"> ${h.link_to(_('Admin'),h.url('admin_home'))} » ${_('Ldap')} <%def name="page_nav()"> ${self.menu('admin')} <%def name="main()">
${self.breadcrumbs()}
${h.form(url('ldap_settings'))}

${_('Connection settings')}

${h.checkbox('ldap_active','true',class_='small')}
${h.text('ldap_host',class_='small')}
${h.text('ldap_port',class_='small')}
${h.text('ldap_dn_user',class_='small')}
${h.password('ldap_dn_pass',class_='small')}
${h.select('ldap_tls_kind',c.tls_kind_cur,c.tls_kind_choices,class_='small')}
${h.select('ldap_tls_reqcert',c.tls_reqcert_cur,c.tls_reqcert_choices,class_='small')}

${_('Search settings')}

${h.text('ldap_base_dn',class_='small')}
${h.text('ldap_filter',class_='small')}
${h.select('ldap_search_scope',c.search_scope_cur,c.search_scope_choices,class_='small')}

${_('Attribute mappings')}

${h.text('ldap_attr_login',class_='small')}
${h.text('ldap_attr_firstname',class_='small')}
${h.text('ldap_attr_lastname',class_='small')}
${h.text('ldap_attr_email',class_='small')}
${h.submit('save','Save',class_="ui-button")}
${h.end_form()}