Re: Q's about UserAuthenticators and getName()

2013-09-16 Thread Darren Shepherd
I'll clean it up and submit a patch then. Darren On Sep 15, 2013, at 9:36 PM, Abhinandan Prateek wrote: > On 13/09/13 10:04 pm, "Darren Shepherd" > wrote: > >> On 09/13/2013 03:48 AM, Abhinandan Prateek wrote: >>> The code already has the name set to ³LDAP² in 4.2. What branch are you >>> o

Re: Q's about UserAuthenticators and getName()

2013-09-15 Thread Abhinandan Prateek
On 13/09/13 10:04 pm, "Darren Shepherd" wrote: >On 09/13/2013 03:48 AM, Abhinandan Prateek wrote: >> The code already has the name set to ³LDAP² in 4.2. What branch are you >>on >> ? >> Will also prefer if we can use getClass().getSimpleName() to get the >> classname, but we should check the poss

Re: Q's about UserAuthenticators and getName()

2013-09-13 Thread Darren Shepherd
On 09/12/2013 10:56 PM, Ian Duffy wrote: So my problem is that LDAP currently has a null name on getName(). So which should I do? Add Go ahead and add it. I missed that override in error. Okay I created https://reviews.apache.org/r/14126/ Darren

Re: Q's about UserAuthenticators and getName()

2013-09-13 Thread Abhinandan Prateek
The code already has the name set to ³LDAP² in 4.2. What branch are you on ? Will also prefer if we can use getClass().getSimpleName() to get the classname, but we should check the possibility of the adapter classnames getting enhanced by underlying framework. On 13/09/13 4:41 am, "Darren Shephe

Re: Q's about UserAuthenticators and getName()

2013-09-13 Thread Ian Duffy
Great. Applied it. You can mark it as submitted. On 13 September 2013 16:10, Darren Shepherd wrote: > On 09/12/2013 10:56 PM, Ian Duffy wrote: > >> So my problem is that LDAP currently has a null name on getName(). So >>> >> which should I do? Add >> >> Go ahead and add it. I missed that over

Re: Q's about UserAuthenticators and getName()

2013-09-13 Thread Darren Shepherd
On 09/13/2013 03:48 AM, Abhinandan Prateek wrote: The code already has the name set to ³LDAP² in 4.2. What branch are you on ? Will also prefer if we can use getClass().getSimpleName() to get the classname, but we should check the possibility of the adapter classnames getting enhanced by underlyi

Re: Q's about UserAuthenticators and getName()

2013-09-13 Thread Ian Duffy
> So my problem is that LDAP currently has a null name on getName(). So which should I do? Add Go ahead and add it. I missed that override in error.

Q's about UserAuthenticators and getName()

2013-09-12 Thread Darren Shepherd
DefaultUserAuthenticator masks the _name variable in ComponentLifecycleBase effectively making it so that no UserAuthenticator gets the default name of getClass().getSimpleName(). Then each authenticator, except LDAP, does something like if (name == null) { name = "MD5"; } So instead of the