create home directories via PAM on the fly
Closed, ResolvedPublic

Description

We need to handle home dir creation for newly created users,
this must be done on the fly on the first login

Propose to do so via PAM module
https://linux.die.net/man/8/pam_mkhomedir

Details

Difficulty level
Easy (less than an hour)
Why the issue appeared?
Implementation mistake
syncer created this task.May 23 2017, 12:00 PM

Can You please elaborate on this, or create an example?

For users not added manually (e.g. via Radius or later TACACS+)
wee need to create home directories on the fly

syncer edited projects, added VyOS 1.2.x; removed VyOS 1.2.x (VyOS 1.2.0 beta 3).
syncer assigned this task to UnicronNL.Tue, Aug 29, 11:12 AM

To implement remote auth sources we will need to deal with logins
it seems that we need to handle home folder creation for users that doesn´t exist in config
it´s kind of similar how active directory integration work on linux, where home folder for Active Directory user will be created on first login
Only difference that we not limited to AD and will need same for radius/tacacs+/ad
this will allow us start implement remote auth mechanisms