[ome-users] Issues with NewUserGroupBean implementation
Josh Moore
josh at glencoesoftware.com
Tue Mar 27 20:10:49 BST 2012
On Mar 27, 2012, at 2:28 PM, Harri Jäälinoja wrote:
> On 27/03/12 11:36, Josh Moore wrote:
>> Could you have your implementation return the "user" (id=1) group for everyone, and the system group (id=0) if you want a particular user to be an admin? This may be something you just need temporarily, as we'll need to decide how sync_on_login will work in the future. Alternatively, you could add something to LDAP which maps to the "user" and "system" table if you want to do everything in LDAP.
>
> Hi Josh,
Hi Harri,
> this didn't help:
>
> log.debug("grpName matched " + grpOmeName);
> groups.add(provider.createGroup(grpOmeName, null, false));
> log.debug("grpName matched, adding group 'user'");
> groups.add (new Long(1));
>
>
> 2012-03-27 15:02:46,433 DEBUG [ hyldap.HyHcNewUserGroupBean] (l.Server-7) grpName matched uid=grp-A91900-bi-vart,ou=alma_workgroups,ou=groups,o=hy
> 2012-03-27 15:02:46,433 DEBUG [ hyldap.HyHcNewUserGroupBean] (l.Server-7) grpName matched BI-Vartiainen
> 2012-03-27 15:02:46,438 DEBUG [ hyldap.HyHcNewUserGroupBean] (l.Server-7) grpName matched, adding group 'user'
> ...
> 2012-03-27 15:02:46,438 INFO [ ome.security.auth.LdapPasswordProvider] (l.Server-7) Default choice on create user: hajaalin (ome.conditions.ValidationException: No group found for: uid=hajaalin,dc=helsinki,dc=fi)
>
> I also tried with omero.ldap.sync_on_login=false, that did not work either. I've sent you the complete logs.
Hi Harri,
Was this already after the user was created? Could you try after renaming the user or with a fresh database? Alternatively, it might suffice to mark the user "active" in webadmin when logged in as root?
It does look like your changes added the "user" link:
2012-03-23 19:02:49,706 INFO [ ome.security.basic.CurrentDetails] (l.Server-2) Adding log:INSERT,class ome.model.meta.GroupExperimenterMap,53
but this is followed by a NPE, so I'm not positive what's going wrong.
What source code are you working from? Would you be up for applying a patch or using my branch for building your server? See
https://github.com/joshmoore/openmicroscopy/tree/dev_4_3
So that we can eliminate any secondary issues which may be distracting us.
Cheers,
~Josh
P.S. a heads up: I'll be away starting next week, in case getting this working is time-sensitive.
More information about the ome-users
mailing list