Changeset 4493
- Timestamp:
- 10/14/08 04:14:22 (3 months ago)
- Files:
-
- accountldapplugin/0.11/README.TXT (modified) (1 diff)
- accountldapplugin/0.12 (modified) (1 prop)
- accountldapplugin/0.12/accountldap/accountldap.py (modified) (3 diffs)
- accountldapplugin/0.12/NEWS.TXT (modified) (1 diff)
- accountldapplugin/0.12/README.TXT (modified) (1 diff)
- accountldapplugin/0.12/setup.py (modified) (1 diff)
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.11 rc1TRAC.1 Use 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
- Property svn:ignore set to
accountldapplugin/0.12/accountldap/accountldap.py
r4475 r4493 27 27 self.basedn = self.config.get('ldap', 'basedn') 28 28 self.userdn = self.config.get('ldap', 'user_rdn') 29 self.attempts = 1 29 30 if self.config.has_option('ldap', 'attempts'): 30 31 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') 33 35 self.enabled = True 34 36 for i in range(self.attempts): … … 89 91 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') 90 92 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) 92 94 try: 93 95 self.log.warn('Ldap change password dn. %s' % dn) … … 114 116 """Devuelve el nombre completo y el correo definido en el ldap 115 117 """ 116 filter = ' uid=%s' % uid118 filter = '%s=%s' % (self.userFilter, uid) 117 119 result = [] 118 120 try: accountldapplugin/0.12/NEWS.TXT
r4475 r4493 11 11 * Adds the concept of connection attempts, because of latencies ldap servers. 12 12 13 Version 0.31. Last changes: 14 * Adds the user filter option in trac.ini for compatibility with Active Directory. View README.txt for details 15 13 16 14 17 accountldapplugin/0.12/README.TXT
r4475 r4493 8 8 bind_passwd = 9 9 basedn = 10 user_rdn = 11 attempts = 1 10 user_rdn = [1] 11 attempts = 1 [2] 12 user_filter = uid [2] [3] 12 13 13 14 Attempts it's a number that indicates retry connecting to the LDAP server. 14 15 It'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 11 11 12 12 PACKAGE = 'AccountLDAPPlugin' 13 VERSION = '0.3 '13 VERSION = '0.31' 14 14 15 15 setup(
