PAM login in 20.05

Dear all,

I’m trying to configure PAM login in galaxy 20.05.
I’d like to use my regular unix account/passwd, like ‘bob’, as login and make Galaxy register this new user.

I’ve created a config/auth_conf.xml file like:

< ?xml version=“1.0”? >
< auth >
< authenticator >
< type >PAM< /type >
< options >
< auto-register>True< /auto-register>
< pam-service>system-auth-ac< /pam-service>
< login-use-username>True< /login-use-username>
< /options>
< /authenticator>
< /auth>

Every login fails with "“Uncaught exception in exposed API method:”. Logs show: galaxy.webapps.galaxy.controllers.user DEBUG 2020-07-30 12:51:03,189 [p:7289,w:2,m:0] [uWSGIWorker2Core2] /opt/galaxy/config/auth_conf.xml galaxy.auth.providers.pam_auth DEBUG 2020-07-30 12:51:03,189 [p:7289,w:2,m:0] [uWSGIWorker2Core2] use username: True use email False email None username
bob galaxy.auth.providers.pam_auth DEBUG 2020-07-30 12:51:03,190 [p:7289,w:2,m:0] [uWSGIWorker2Core2] PAM auth: will use external helper: False galaxy.auth.providers.pam_auth DEBUG 2020-07-30 12:51:03,291 [p:7289,w:2,m:0] [uWSGIWorker2Core2] PAM authentication successful for bob galaxy.auth.util DEBUG 2020-07-30 12:51:03,300 [p:7289,w:2,m:0] [uWSGIWorker2Core2] Email: None, auto-register with username: bob galaxy.web.framework.decorators ERROR 2020-07-30 12:51:03,301 [p:7289,w:2,m:0] [uWSGIWorker2Core2] Uncaught exception in exposed API method:

And the exception says something like:

Jul 30 12:51:03 inhas06030 if not(VALID_EMAIL_RE.match(email)):
Jul 30 12:51:03 inhas06030 TypeError: expected string or bytes-like object

so seems that galaxy is expecting an email (the user does not exists at all).

That means that I have to enable user registration and let users register with email/username/passwd. username/passwd must match PAM credentials.

My question is: is there a way lo make Galaxy allow logins and register new users even without email?