ldap.html
95 lines
| 4.2 KiB
| text/html
|
HtmlLexer
r769 | ## -*- coding: utf-8 -*- | |||
<%inherit file="/base/base.html"/> | ||||
<%def name="title()"> | ||||
${_('LDAP administration')} - ${c.rhodecode_name} | ||||
</%def> | ||||
<%def name="breadcrumbs_links()"> | ||||
r1888 | ${h.link_to(_('Admin'),h.url('admin_home'))} | |||
r769 | » | |||
r1888 | ${_('Ldap')} | |||
r769 | </%def> | |||
<%def name="page_nav()"> | ||||
${self.menu('admin')} | ||||
</%def> | ||||
<%def name="main()"> | ||||
<div class="box"> | ||||
<!-- box / title --> | ||||
<div class="title"> | ||||
r1888 | ${self.breadcrumbs()} | |||
r769 | </div> | |||
${h.form(url('ldap_settings'))} | ||||
<div class="form"> | ||||
<div class="fields"> | ||||
Mads Kiilerich
|
r3198 | <h3>${_('Connection settings')}</h3> | ||
r769 | <div class="field"> | |||
Thayne Harbaugh
|
r991 | <div class="label label-checkbox"><label for="ldap_active">${_('Enable LDAP')}</label></div> | ||
r1381 | <div class="checkboxes"><div class="checkbox">${h.checkbox('ldap_active',True,class_='small')}</div></div> | |||
r769 | </div> | |||
<div class="field"> | ||||
<div class="label"><label for="ldap_host">${_('Host')}</label></div> | ||||
<div class="input">${h.text('ldap_host',class_='small')}</div> | ||||
</div> | ||||
<div class="field"> | ||||
<div class="label"><label for="ldap_port">${_('Port')}</label></div> | ||||
<div class="input">${h.text('ldap_port',class_='small')}</div> | ||||
</div> | ||||
<div class="field"> | ||||
<div class="label"><label for="ldap_dn_user">${_('Account')}</label></div> | ||||
<div class="input">${h.text('ldap_dn_user',class_='small')}</div> | ||||
</div> | ||||
<div class="field"> | ||||
<div class="label"><label for="ldap_dn_pass">${_('Password')}</label></div> | ||||
<div class="input">${h.password('ldap_dn_pass',class_='small')}</div> | ||||
</div> | ||||
<div class="field"> | ||||
"Lorenzo M. Catucci"
|
r1290 | <div class="label"><label for="ldap_tls_kind">${_('Connection security')}</label></div> | ||
<div class="select">${h.select('ldap_tls_kind',c.tls_kind_cur,c.tls_kind_choices,class_='small')}</div> | ||||
Thayne Harbaugh
|
r991 | </div> | ||
<div class="field"> | ||||
<div class="label"><label for="ldap_tls_reqcert">${_('Certificate Checks')}</label></div> | ||||
<div class="select">${h.select('ldap_tls_reqcert',c.tls_reqcert_cur,c.tls_reqcert_choices,class_='small')}</div> | ||||
</div> | ||||
Mads Kiilerich
|
r3198 | <h3>${_('Search settings')}</h3> | ||
Thayne Harbaugh
|
r991 | <div class="field"> | ||
r769 | <div class="label"><label for="ldap_base_dn">${_('Base DN')}</label></div> | |||
<div class="input">${h.text('ldap_base_dn',class_='small')}</div> | ||||
</div> | ||||
Thayne Harbaugh
|
r991 | <div class="field"> | ||
<div class="label"><label for="ldap_filter">${_('LDAP Filter')}</label></div> | ||||
<div class="input">${h.text('ldap_filter',class_='small')}</div> | ||||
</div> | ||||
<div class="field"> | ||||
<div class="label"><label for="ldap_search_scope">${_('LDAP Search Scope')}</label></div> | ||||
<div class="select">${h.select('ldap_search_scope',c.search_scope_cur,c.search_scope_choices,class_='small')}</div> | ||||
</div> | ||||
Mads Kiilerich
|
r3198 | <h3>${_('Attribute mappings')}</h3> | ||
Thayne Harbaugh
|
r991 | <div class="field"> | ||
<div class="label"><label for="ldap_attr_login">${_('Login Attribute')}</label></div> | ||||
<div class="input">${h.text('ldap_attr_login',class_='small')}</div> | ||||
</div> | ||||
<div class="field"> | ||||
<div class="label"><label for="ldap_attr_firstname">${_('First Name Attribute')}</label></div> | ||||
<div class="input">${h.text('ldap_attr_firstname',class_='small')}</div> | ||||
</div> | ||||
<div class="field"> | ||||
<div class="label"><label for="ldap_attr_lastname">${_('Last Name Attribute')}</label></div> | ||||
<div class="input">${h.text('ldap_attr_lastname',class_='small')}</div> | ||||
</div> | ||||
<div class="field"> | ||||
<div class="label"><label for="ldap_attr_email">${_('E-mail Attribute')}</label></div> | ||||
<div class="input">${h.text('ldap_attr_email',class_='small')}</div> | ||||
</div> | ||||
r1888 | ||||
r769 | <div class="buttons"> | |||
r2607 | ${h.submit('save',_('Save'),class_="ui-btn large")} | |||
r1888 | </div> | |||
r769 | </div> | |||
r1888 | </div> | |||
${h.end_form()} | ||||
r769 | </div> | |||
r1888 | </%def> | |||