Hi Hakeem,
a couple of suggestions:
- allow-register should be False
- I don't see a line with something like
<server>ldap://dc1.example.com</server> , but I suppose you have omitted it
- if your AD server doesn't allow anonymous searches (like in my case),
you need to specify also:
<search-user>cn=jsmith,ou=People,dc=domain,dc=com</search-user>
<search-password>mysecret</search-password>
- you definitely need to specify an adapted version of these:
<bind-user>{sAMAccountName}@dc1.example.com</bind-user>
<bind-password>{password}</bind-password>
<auto-register-username>{sAMAccountName}</auto-register-username>
<auto-register-email>{mail}</auto-register-email>
Hope that helps!
Cheers,
Nicola
On 09/11/17 11:24, Hakeem Almabrazi wrote:
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 [email protected]
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.
___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client. To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
https://lists.galaxyproject.org/
To search Galaxy mailing lists use the unified search at:
http://galaxyproject.org/search/
___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client. To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
https://lists.galaxyproject.org/
To search Galaxy mailing lists use the unified search at:
http://galaxyproject.org/search/