src/pyams_ldap/zmi/plugin.py
changeset 39 148e16dfb86c
parent 38 0cde6357775d
equal deleted inserted replaced
38:0cde6357775d 39:148e16dfb86c
   119 
   119 
   120     prefix = 'ldap_connection_form.'
   120     prefix = 'ldap_connection_form.'
   121 
   121 
   122     tab_label = _("Connection")
   122     tab_label = _("Connection")
   123     legend = None
   123     legend = None
   124     fields = field.Fields(ILDAPPlugin).select('server_uri', 'use_tls', 'bind_dn', 'bind_password')
   124     fields = field.Fields(ILDAPPlugin).select('server_uri', 'bind_dn', 'bind_password')
   125     weight = 1
   125     weight = 1
   126 
   126 
   127 
   127 
   128 @adapter_config(name='users', context=(ISite, IAdminLayer, ILDAPForm), provides=IInnerTabForm)
   128 @adapter_config(name='users', context=(ISite, IAdminLayer, ILDAPForm), provides=IInnerTabForm)
   129 class LDAPPluginUsersAddForm(InnerAdminAddForm):
   129 class LDAPPluginUsersAddForm(InnerAdminAddForm):
   230 
   230 
   231     prefix = 'ldap_connection_form.'
   231     prefix = 'ldap_connection_form.'
   232 
   232 
   233     tab_label = _("Connection")
   233     tab_label = _("Connection")
   234     legend = None
   234     legend = None
   235     fields = field.Fields(ILDAPPlugin).select('server_uri', 'use_tls', 'bind_dn', 'bind_password')
   235     fields = field.Fields(ILDAPPlugin).select('server_uri', 'bind_dn', 'bind_password')
   236     edit_permission = MANAGE_SECURITY_PERMISSION
   236     edit_permission = MANAGE_SECURITY_PERMISSION
   237 
   237 
   238     weight = 1
   238     weight = 1
   239 
   239 
   240 
   240