Hello,
I have installed the latest galaxy and I would like to use the MS Active Directory 2012 for authentication. I tried to follow the instructions outlined here
https://galaxyproject.org/admin/config/external-user-auth/ without touching the
lib/galaxy/auth/providers/ldap_ad_py since I thought this is related to ldap not AD.
Here is the exact auth_config.xml file
+++++++++++++++++++++++++
<?xml version="1.0"?>
<auth>
<authenticator>
<type>ldap</type>
<options>
<allow-register>True</allow-register>
<auto-register>True</auto-register>
<allow-password-change>False</allow-password-change>
<login-use-username>True</login-use-username>
<!-- For Active Directory: -->
<search-fields>sAMAccountName,mail</search-fields>
<search-base>dc=dc1,dc=example,dc=com</search-base>
<!-- If login-use-username is True -->
<search-filter>(&(objectClass=user)(sAMAccountName={username}))</search-filter>
</options>
</authenticator>
</auth>
+++++++++++++++++
When I try to login using a real user email and pwd, it says “No user of valid password” in the Galaxy page. And here is the error log I keep getting.
galaxy.webapps.galaxy.controllers.user DEBUG 2017-11-09 13:55:37,940 trans.app.config.auth_config_file: ./config/auth_conf.xml
galaxy.auth.providers.ldap_ad DEBUG 2017-11-09 13:55:37,940 LDAP authenticate: email is user@example.com
galaxy.auth.providers.ldap_ad DEBUG 2017-11-09 13:55:37,940 LDAP authenticate: username is None
galaxy.auth.providers.ldap_ad DEBUG 2017-11-09 13:55:37,940 LDAP authenticate: options are {'search-fields': 'sAMAccountName,mail', 'login-use-username': 'True', 'allow-register': 'True', 'auto-register': 'True', 'search-base': 'dc=dc1,dc=example,dc=com',
'search-filter': '(&(objectClass=user)(sAMAccountName={username}))', 'allow-password-change': 'False'}
galaxy.auth.providers.ldap_ad DEBUG 2017-11-09 13:55:37,940 LDAP authenticate: username must be used to login, cannot be None
galaxy.auth DEBUG 2017-11-09 13:55:37,941 Email: , Username , stopping due to failed non-continue
Is there anything missing from my auth_config.xml file?
I appreciate any kind of help figuring this out.
Best regards,
Hak