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>(&amp;(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

 

 

Disclaimer: This email and its attachments may be confidential and are intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient, any reading, printing, storage, disclosure, copying or any other action taken in respect of this e-mail is prohibited and may be unlawful. If you are not the intended recipient, please notify the sender immediately by using the reply function and then permanently delete what you have received. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Sidra Medical and Research Center.