[ome-users] LDAP, NullPointerException

Harri Jäälinoja harri.jaalinoja at helsinki.fi
Wed Mar 14 16:43:37 GMT 2012


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




More information about the ome-users mailing list