Hey list,
is there a way to have SSSD do additional work when creating a home directory? I am using it in a HPC cluster context and I need to create a user account in the batch system's database. I had a look at what oddjobd could do, but from what I could tell, the PAM stack calls oddjob's com.redhat.oddjob_mkhomedir method over D-Bus.
Apologies if this is the wrong place to ask this question, but I couldn't quite tell where else to post it.
Best, Patrice
On 02/24/2016 11:39 AM, Patrice Peterson wrote:
Hey list,
is there a way to have SSSD do additional work when creating a home directory? I am using it in a HPC cluster context and I need to create a user account in the batch system's database. I had a look at what oddjobd could do, but from what I could tell, the PAM stack calls oddjob's com.redhat.oddjob_mkhomedir method over D-Bus.
Apologies if this is the wrong place to ask this question, but I couldn't quite tell where else to post it.
It calls the oddjob mkhomedirfor method, which in: /etc/oddjobd.conf.d/oddjobd-mkhomedir.conf
is defined to run /usr/libexec/oddjob/mkhomedir:
<method name="mkhomedirfor"> <helper exec="/usr/libexec/oddjob/mkhomedir" arguments="1"/> <allow user="root"/> </method>
I don't see much docs for that binary, but you could change that to be a wrapper that did what you wanted.
Otherwise https://www.fedorahosted.org/oddjob/ is the upstream project, but there isn't much there.
sssd-users@lists.fedorahosted.org