help with LDAP setup
Posted: Mon Jul 04, 2016 10:26 pm
Hi OMERO team-
Successfully deployed omero 5.2.4 and am trying to configure LDAP authentication to our institutional AD.
I'm partially successful - at least I think OMERO is querying the AD, because the error I get in the Blitz log when I try to authenticate using my ldap credentials from the web interface is:
I'm not sure how to diagnose this further-
Here are my config settings:
and here is what I think the query would be using ldapsearch:
Any help appreciated.
Thanks
In addition, once authentication is sorted, I would like to put users into groups based on an entry in their Active Directory attributes. I have retrieved the "memberOf" from a typical user below and you can see that one of the groups she is a member of is the "Evans Lab". I'm wondering how to configure correctly the group mapping, group filter and new user group properties to set groups for people who will all be in different "Labs" as in "Evans lab", "Touret Lab", etc.? I'm not an LDAP user and the "Group Lookup" section of the LDAP Authentication page suggests I need new user group prefixed with :filtered_attribute:memberOf and then construct a group filter that matches the memberOf I want to use- but how?
Again, Any help would be greatly appreciated.
# numResponses: 2
# numEntries: 1
Successfully deployed omero 5.2.4 and am trying to configure LDAP authentication to our institutional AD.
I'm partially successful - at least I think OMERO is querying the AD, because the error I get in the Blitz log when I try to authenticate using my ldap credentials from the web interface is:
- Code: Select all
Default choice on create user: stephenogg (ome.conditions.ApiUsageException: Cannot find unique user DistinguishedName: found=1)
I'm not sure how to diagnose this further-
Here are my config settings:
- Code: Select all
omero@med-omero:~/OMERO.server$ bin/omero config get --hide-password
omero.data.dir=/OMERO
omero.db.name=omero_database
omero.db.pass=********
omero.db.user=omero_pg_user
omero.ldap.base=ou=Core Research Facilities,ou=Research,dc=med,dc=ualberta,dc=ca
omero.ldap.config=true
omero.ldap.password=********
omero.ldap.urls=ldap://med-dc1.med.ualberta.ca:3268
omero.ldap.user_mapping=omeName=sAMAccountName,firstName=givenName,lastName=sn,email=mail,institution=department,middleName=middleName
omero.ldap.username=MED\omero_ldap
omero.web.appliation_server=wsgi
omero.web.application_server=wsgi
and here is what I think the query would be using ldapsearch:
- Code: Select all
omero@med-omero:~/OMERO.server$ ldapsearch -x -H ldap://med-dc1.med.ualberta.ca:3268 -b 'ou=Core Research Facilities,ou=Research,dc=med,dc=ualberta,dc=ca' -D 'MED\omero_ldap' -W '(&(objectClass=person)(SAMAccountName=stephenogg))' dn
Enter LDAP Password:
# extended LDIF
#
# LDAPv3
# base <ou=Core Research Facilities,ou=Research,dc=med,dc=ualberta,dc=ca> with scope subtree
# filter: (&(objectClass=person)(SAMAccountName=stephenogg))
# requesting: dn
#
# Stephen Ogg, Cell Imaging, Core Research Facilities, Research, med.ualberta
.ca
dn: CN=Stephen Ogg,OU=Cell Imaging,OU=Core Research Facilities,OU=Research,DC=
med,DC=ualberta,DC=ca
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
Any help appreciated.
Thanks
In addition, once authentication is sorted, I would like to put users into groups based on an entry in their Active Directory attributes. I have retrieved the "memberOf" from a typical user below and you can see that one of the groups she is a member of is the "Evans Lab". I'm wondering how to configure correctly the group mapping, group filter and new user group properties to set groups for people who will all be in different "Labs" as in "Evans lab", "Touret Lab", etc.? I'm not an LDAP user and the "Group Lookup" section of the LDAP Authentication page suggests I need new user group prefixed with :filtered_attribute:memberOf and then construct a group filter that matches the memberOf I want to use- but how?
Again, Any help would be greatly appreciated.
- Code: Select all
omero@med-omero:~/OMERO.server$ ldapsearch -x -H ldap://med-dc1.med.ualberta.ca:3268 -b 'ou=Core Research Facilities,ou=Research,dc=med,dc=ualberta,dc=ca' -D 'MED\omero_ldap' -W 'sAMAccountName=MeganDesaulniers' memberOf
Enter LDAP Password:
# extended LDIF
#
# LDAPv3
# base <ou=Core Research Facilities,ou=Research,dc=med,dc=ualberta,dc=ca> with scope subtree
# filter: sAMAccountName=MeganDesaulniers
# requesting: memberOf
#
# Megan Desaulniers, Cell Imaging, Core Research Facilities, Research, med.ua
lberta.ca
dn: CN=Megan Desaulniers,OU=Cell Imaging,OU=Core Research Facilities,OU=Resear
ch,DC=med,DC=ualberta,DC=ca
memberOf: CN=Evans Lab,OU=Cell Imaging,OU=Core Research Facilities,OU=Research
,DC=med,DC=ualberta,DC=ca
memberOf: CN=Cell Imaging Centre - Security,OU=Cell Imaging,OU=Core Research F
acilities,OU=Research,DC=med,DC=ualberta,DC=ca
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1