Hello,

I have connected my galaxy to a Slurm cluster via DRMAA. Galaxy can send jobs to the cluster without problems. But then I configure galaxy to use “real users” I got this error:

"User myuser@mydomain.es is not mapped to any real user, and not permitted to start jobs”


Could you help me?

Tanks!!

This is my job_con.xml:

<?xml version="1.0"?>
<job_conf>
   <plugins workers="6">
       <plugin id="drmaa" type="runner" load="galaxy.jobs.runners.drmaa:DRMAAJobRunner" workers="2">
           <param id="drmaa_library_path">/opt/slurm-drmaa/lib/libdrmaa.so</param>
       </plugin>
   </plugins>
   <handlers default="handlers">
       <handler id="main" tags="handlers"/>
   </handlers>
   <destinations default="drmaa">
       <destination id="drmaa" runner="drmaa">
           <param id="galaxy_external_runjob_script">/opt/galaxy/scripts/drmaa_external_runner.py</param>
           <param id="galaxy_external_killjob_script">/opt/galaxy/scripts/drmaa_external_killer.py</param>
           <param id="galaxy_external_chown_script">/opt/galaxy/scripts/external_chown_script.py</param>
       </destination>
   </destinations>
</job_conf>

this is my auth_conf.xml:
<?xml version="1.0"?>
<auth>
<authenticator>
       <type>ldap</type>
       <options>
    <auto-register>True</auto-register>
           <allow-password-change>False</allow-password-change>
    <server>ldap://ldap.ceta-ciemat.es</server>
           <login-use-username>True</login-use-username>
           <continue-on-failure>False</continue-on-failure>
    <search-filter>(&#124;(mail={email})(uid={username}))</search-filter>
    <search-fields>uid,mail,dn</search-fields>
           <search-base>ou=xxxxxx,dc=xxxxx,dc=xxxxx</search-base>
    <bind-user>{dn}</bind-user>
           <bind-password>{password}</bind-password>
           <auto-register-username>{uid}</auto-register-username>
           <auto-register-email>{mail}</auto-register-email>
           <login-use-username>True</login-use-username>

       </options>
   </authenticator>

   <authenticator>
       <type>localdb</type>
       <options>
           <!-- Whether users are allowed to change their password. Default is
                False. -->
           <allow-password-change>true</allow-password-change>
       </options>
   </authenticator>
</auth>


And this is my galaxy.ini:

[server:main]
port = 8080
host = 0.0.0.0
use_threadpool = True
threadpool_kill_thread_limit = 10800

[filter:gzip]
[filter:proxy-prefix]
prefix = /galaxy
[app:main]
paste.app_factory = galaxy.web.buildapp:app_factory
database_connection = postgres://xxxxxxxx:xxxxxx@xxxxx/galaxy_project
database_engine_option_server_side_cursors = True
database_engine_option_strategy = threadlocal
new_file_path = database/tmp
tool_config_file = config/tool_conf.xml,config/shed_tool_conf.xml
tool_dependency_dir = dependency_dir
cluster_files_directory = database/pbs
smtp_server = localhost
use_nglims = False
nglims_config_file = tool-data/nglims.yaml
debug = true
use_interactive = True
require_login = True
allow_user_creation = False
allow_user_deletion = True
allow_user_impersonation = True
allow_user_dataset_purge = True
new_user_dataset_access_role_default_private = True
auth_config_file = config/auth_conf.xml
enable_quotas = True
expose_dataset_path = False
job_config_file = config/job_conf.xml
enable_job_recovery = True
outputs_to_working_directory = True
drmaa_external_runjob_script = scripts/drmaa_external_runner.py
drmaa_external_killjob_script = scripts/drmaa_external_killer.py
external_chown_script = scripts/external_chown_script.py

----------------------------
Confidencialidad: 
Este mensaje y sus ficheros adjuntos se dirige exclusivamente a su destinatario y puede contener informaci�n privilegiada o 
confidencial. Si no es vd. el destinatario indicado, queda notificado de que la utilizaci�n, divulgaci�n y/o copia sin autorizaci�n est� 
prohibida en virtud de la legislaci�n vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique 
inmediatamente respondiendo al mensaje y proceda a su destrucci�n.
 
Disclaimer: 
This message and its attached files is intended exclusively for its recipients and may contain confidential information. If you received 
this e-mail in error you are hereby notified that any dissemination, copy or disclosure of this communication is strictly prohibited and 
may be unlawful. In this case, please notify us by a reply and delete this email and its contents immediately.
----------------------------