Changes between Initial Version and Version 2 of Ticket #11361


Ignore:
Timestamp:
Oct 31, 2013, 6:09:05 PM (10 years ago)
Author:
Ryan J Ollos
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11361 – Description

    initial v2  
    1 First of all thanks for the plufin, is being very usefull for us :)
     1First of all thanks for the plugin, is being very useful for us :)
    22
    33I think some custom fields are not being caught properly, we are using openLDAP and these are our three fields for user, name and email:
    44
    5 {{{
     5{{{#!ini
    66[account-manager]
    77user_attr = uid
     
    1515
    1616
    17 {{{
     17{{{#!py
    1818auth.py: line 121
    1919def check_password(self, user, password):
     
    2323userinfo = self._get_userinfo(users[0][1])
    2424}}}
    25 http://trac-hacks.org/browser/directoryauthplugin/trunk/tracext/dirauth/auth.py#L121
     25[browser:/directoryauthplugin/trunk/tracext/dirauth/auth.py@13391#L121]
    2626
    2727And in the _get_userinfo function you are looking for a attr field that will never exist if is not called "displayName":
    2828
    2929
    30 {{{
     30{{{#!py
    3131auth.py: line 294
    3232def _get_userinfo(self, attrs):
     
    3434displayname = attrs.get(self.name_attr, [''])[0]
    3535}}}
    36 http://trac-hacks.org/browser/directoryauthplugin/trunk/tracext/dirauth/auth.py#L294
     36[browser:/directoryauthplugin/trunk/tracext/dirauth/auth.py@13391#L294]
    3737
    3838I'm not a python developer so I'm not sure if this is being the problem but could be. What do you think? :)