src/pyams_ldap/interfaces/__init__.py
changeset 38 0cde6357775d
parent 20 68b5251b9687
child 39 148e16dfb86c
equal deleted inserted replaced
37:bf589bc39592 38:0cde6357775d
    87     server_uri = TextLine(title=_("LDAP server URI"),
    87     server_uri = TextLine(title=_("LDAP server URI"),
    88                           description=_("Full URI (including protocol) of LDAP server"),
    88                           description=_("Full URI (including protocol) of LDAP server"),
    89                           default="ldap://localhost:389",
    89                           default="ldap://localhost:389",
    90                           required=True)
    90                           required=True)
    91 
    91 
       
    92     use_tls = Bool(title=_("Use TLS?"),
       
    93                    required=True,
       
    94                    default=False)
       
    95 
    92     bind_dn = TextLine(title=_("Bind DN"),
    96     bind_dn = TextLine(title=_("Bind DN"),
    93                        description=_("DN used for LDAP bind; keep empty for anonymous"),
    97                        description=_("DN used for LDAP bind; keep empty for anonymous"),
    94                        required=False)
    98                        required=False)
    95 
    99 
    96     bind_password = TextLine(title=_("Bind password"),
   100     bind_password = TextLine(title=_("Bind password"),
    97                              description=_("Password used for LDAP bind"),
   101                              description=_("Password used for LDAP bind"),
    98                              required=False)
   102                              required=False)
    99 
       
   100     use_tls = Bool(title=_("Use TLS?"),
       
   101                    required=True,
       
   102                    default=False)
       
   103 
       
   104     use_pool = Bool(title=_("Use connections pool?"),
       
   105                     required=True,
       
   106                     default=True)
       
   107 
       
   108     pool_size = Int(title=_("Pool size"),
       
   109                     required=False,
       
   110                     default=10)
       
   111 
       
   112     pool_lifetime = Int(title=_("Pool lifetime"),
       
   113                         description=_("Duration, in seconds, of pool lifetime"),
       
   114                         required=False)
       
   115 
   103 
   116     base_dn = TextLine(title=_("Base DN"),
   104     base_dn = TextLine(title=_("Base DN"),
   117                        description=_("LDAP base DN"),
   105                        description=_("LDAP base DN"),
   118                        required=True)
   106                        required=True)
   119 
   107