Changes between Initial Version and Version 2 of Ticket #11361
- Timestamp:
- Oct 31, 2013, 6:09:05 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #11361 – Description
initial v2 1 First of all thanks for the plu fin, is being very usefull for us :)1 First of all thanks for the plugin, is being very useful for us :) 2 2 3 3 I think some custom fields are not being caught properly, we are using openLDAP and these are our three fields for user, name and email: 4 4 5 {{{ 5 {{{#!ini 6 6 [account-manager] 7 7 user_attr = uid … … 15 15 16 16 17 {{{ 17 {{{#!py 18 18 auth.py: line 121 19 19 def check_password(self, user, password): … … 23 23 userinfo = self._get_userinfo(users[0][1]) 24 24 }}} 25 http://trac-hacks.org/browser/directoryauthplugin/trunk/tracext/dirauth/auth.py#L121 25 [browser:/directoryauthplugin/trunk/tracext/dirauth/auth.py@13391#L121] 26 26 27 27 And in the _get_userinfo function you are looking for a attr field that will never exist if is not called "displayName": 28 28 29 29 30 {{{ 30 {{{#!py 31 31 auth.py: line 294 32 32 def _get_userinfo(self, attrs): … … 34 34 displayname = attrs.get(self.name_attr, [''])[0] 35 35 }}} 36 http://trac-hacks.org/browser/directoryauthplugin/trunk/tracext/dirauth/auth.py#L294 36 [browser:/directoryauthplugin/trunk/tracext/dirauth/auth.py@13391#L294] 37 37 38 38 I'm not a python developer so I'm not sure if this is being the problem but could be. What do you think? :)