[ome-users] LDAP, NullPointerException
Josh Moore
josh at glencoesoftware.com
Fri Mar 16 07:44:58 GMT 2012
On Mar 15, 2012, at 3:42 PM, Harri Jäälinoja wrote:
>
> Hi all,
> this was a false alarm, sorry. The reason to the error was that the query I made to LDAP found no results. I changed the configuration so that the username is found, and then the authentication succeeded with no problems.
Glad to hear it, Harri. The NPE is done in develop/4.4 so as to not mask any configuration issues.
Cheers,
~Josh
> Best regards,
> Harri
>
>
> On 14/03/12 18:43, Harri Jäälinoja wrote:
>>
>> Hi All,
>>
>> I am setting up LDAP authentication on OMERO 4.3.3.
>>
>> omero config set omero.ldap.user_mapping
>> 'omeName=uid,firstName=givenName,lastName=sn,email=uid'
>>
>> In our LDAP, uid gives the user account name which we would also use as
>> the account name in OMERO. The email addresses are not available.
>>
>> I think we will probably have to try to implement the NewUserGroupBean
>> interface to get sensible group names out from our LDAP. But anyway to
>> test the simplest scenario, I put all users to same group:
>>
>> omero config set omero.ldap.new_user_group ldapGroup
>>
>> When I test the login, it fails, and I find this in the logs:
>>
>> 2012-03-14 18:26:18,022 INFO [ ome.security.auth.LdapPasswordProvider]
>> (l.Server-0) Default choice on create user: hajaalin
>> (ome.conditions.ApiUsageException: Cannot find unique Distingui
>> shedName: found=0)
>> 2012-03-14 18:26:18,024 INFO [ org.perf4j.TimingLogger] (l.Server-0)
>> start[1331742372412] time[5612] tag[omero.call.exception]
>> 2012-03-14 18:26:18,051 WARN [ ome.services.util.ServiceHandler]
>> (l.Server-0) Unknown exception thrown.
>>
>> java.lang.NullPointerException
>> at
>> ome.security.auth.LdapPasswordProvider.checkPassword(LdapPasswordProvider.java:106)
>>
>> at
>> ome.security.auth.PasswordProviders.checkPassword(PasswordProviders.java:42)
>>
>> at ome.logic.AdminImpl.checkPassword(AdminImpl.java:1194)
>>
>>
>> What should I try next?
>>
>> Thanks, best regards,
>> Harri
>>
>
>
> --
> __________________________________________________
> Harri Jäälinoja
> Light Microscopy Unit
> Institute of Biotechnology, University of Helsinki
> http://www.biocenter.helsinki.fi/bi/lmu/
> +358 9 191 59370 fax +358 9 191 59366
>
> _______________________________________________
> ome-users mailing list
> ome-users at lists.openmicroscopy.org.uk
> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users
More information about the ome-users
mailing list