Changeset 4493

Show
Ignore:
Timestamp:
10/14/08 04:14:22 (3 months ago)
Author:
clp
Message:

Version 0.31

  • Add user filter option for Active Directory Compatibility
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • accountldapplugin/0.11/README.TXT

    r3825 r4493  
    1 Use the folder 0.12. It is fully compatible with the version 0.11rc1 TRAC. 
     1Use the folder 0.12. It is fully compatible with the version 0.11.2 TRAC. 
  • accountldapplugin/0.12

    • Property svn:ignore set to
      AccountLDAP.egg-info

      build

      dist
  • accountldapplugin/0.12/accountldap/accountldap.py

    r4475 r4493  
    2727        self.basedn = self.config.get('ldap', 'basedn') 
    2828        self.userdn = self.config.get('ldap', 'user_rdn') 
     29        self.attempts = 1 
    2930        if self.config.has_option('ldap', 'attempts'): 
    3031            self.attempts = self.config.getint('ldap', 'attempts') 
    31         else: 
    32             self.attempts = 1 
     32        self.userFilter = 'uid' 
     33        if self.config.has_option('ldap', 'user_filter'): 
     34            self.userFilter = self.config.get('ldap', 'user_filter') 
    3335        self.enabled = True 
    3436        for i in range(self.attempts): 
     
    8991            data['accountldap_message'] = tag.center(u'Las contraseña antigua y la nueva contraseña es la misma.', tag.b(u' Por favor, realice un cambio en la nueva contraseña.'), style='color:chocolate') 
    9092            return template, data, None 
    91         dn = 'uid=%s,%s,%s' % (req.authname, self.userdn, self.basedn) 
     93        dn = '%s=%s,%s,%s' % (self.userFilter, req.authname, self.userdn, self.basedn) 
    9294        try: 
    9395            self.log.warn('Ldap change password dn. %s' % dn) 
     
    114116        """Devuelve el nombre completo y el correo definido en el ldap 
    115117        """ 
    116         filter = 'uid=%s' % uid 
     118        filter = '%s=%s' % (self.userFilter, uid) 
    117119        result = [] 
    118120        try: 
  • accountldapplugin/0.12/NEWS.TXT

    r4475 r4493  
    1111 * Adds the concept of connection attempts, because of latencies ldap servers. 
    1212  
     13Version 0.31. Last changes: 
     14 * Adds the user filter option in trac.ini for compatibility with Active Directory. View README.txt for details 
     15  
    1316   
    1417  
  • accountldapplugin/0.12/README.TXT

    r4475 r4493  
    88bind_passwd = 
    99basedn =  
    10 user_rdn =  
    11 attempts = 1 
     10user_rdn =         [1] 
     11attempts = 1       [2] 
     12user_filter = uid  [2] [3]  
    1213 
    1314Attempts it's a number that indicates retry connecting to the LDAP server.  
    1415It's optional. 
     16 
     17[1] It is just necessary to change the password 
     18[2] Optional fields 
     19[3] For Active Directory use "sAMAccountName" instead "uid"  
     20 
  • accountldapplugin/0.12/setup.py

    r4476 r4493  
    1111 
    1212PACKAGE = 'AccountLDAPPlugin' 
    13 VERSION = '0.3
     13VERSION = '0.31
    1414 
    1515setup(