Hi, I try to run x2go with postgres as session backend. I have users in ldap database and i would like to use pam_mkhomedir when user connects with x2goclient/pyhoca for the first time, so i have no $HOME, no $HOME/.x2go and no $HOME/.x2go/sqlpass. 

I tryied  
x2godbadmin --addgroup x2gousers
from https://wiki.x2go.org/doku.php/wiki:advanced:multi-node:x2goserver-pgsql
but 
1) group is from ldap/sssd (i think i must switch on sssd enumerate to get members of ldap groups :(  )
2) x2godbadmin does "sub add_user()" so it creates $HOME/.x2go of group members (and it creates it under user who runs x2godbadmin - so $HOME owner is root ) and pam_mkhomedir does not take efect so...

How do you set up this scenarios?

x2goserver-4.1.0.0-0.0x2go1.1.git20180302.1517.main.x86_64
SUSE Linux Enterprise Server 12 (x86_64)
VERSION = 12
PATCHLEVEL = 0

thank you very much
H.