Package repoze :: Package who :: Package plugins :: Package ldap
[hide private]

Source Code for Package repoze.who.plugins.ldap

 1  # -*- coding: utf-8 -*- 
 2  # 
 3  # repoze.who.plugins.ldap, LDAP authentication for WSGI applications. 
 4  # Copyright (C) 2010 by Gustavo Narea  <http://gustavonarea.net/> and 
 5  #                       Lorenzo M. Catucci <http://www.uniroma2.it/>. 
 6  # Copyright (C) 2008 by Gustavo Narea <http://gustavonarea.net/>. 
 7  # 
 8  # This file is part of repoze.who.plugins.ldap 
 9  # <http://code.gustavonarea.net/repoze.who.plugins.ldap/> 
10  # 
11  # This software is subject to the provisions of the BSD-like license at 
12  # http://www.repoze.org/LICENSE.txt.  A copy of the license should accompany 
13  # this distribution.  THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL 
14  # EXPRESS OR IMPLIED WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, 
15  # THE IMPLIED WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND 
16  # FITNESS FOR A PARTICULAR PURPOSE. 
17   
18  """repoze.who LDAP plugin 
19   
20  U{repoze.who.plugins.ldap <http://code.gustavonarea.net/repoze.who.plugins.ldap/>} 
21  is a Python package that provides U{repoze.who  
22  <http://static.repoze.org/whodocs/>} plugins for U{LDAP  
23  <http://en.wikipedia.org/wiki/Lightweight_Directory_Access_Protocol>} 
24  authentication in U{WSGI  
25  <http://en.wikipedia.org/wiki/Web_Server_Gateway_Interface>} 
26  applications. It can be used with any LDAP server and any WSGI framework (or no 
27  framework at all). 
28   
29  For information on how to get started, you may want to visit its web site: 
30  U{http://code.gustavonarea.net/repoze.who.plugins.ldap/} 
31   
32  G{packagetree} 
33   
34  """ 
35   
36  import ldap 
37   
38  from repoze.who.plugins.ldap.plugins import LDAPBaseAuthenticatorPlugin, \ 
39                                              LDAPAuthenticatorPlugin, \ 
40                                              LDAPAttributesPlugin, \ 
41                                              LDAPSearchAuthenticatorPlugin 
42   
43  __all__ = ['LDAPAuthenticatorPlugin', 'LDAPSearchAuthenticatorPlugin', 'LDAPAttributesPlugin'] 
44