Is it possible to do substring replacement in ldap home directory in sssd
by T intervenor
I know sssd has override_homedir option to modify home path getting from ldap, but its substitution pattern is too simple.
Condider the case:
The user is bob and its group is class1, its home directory from ldap is "/remote/home/class1/bob". Now we want to change the home directory on some specific node to "/local/home/class1/bob".
However, sssd's override_homedir only provide %u to represent user name bob, no pattern for group class1. Thus we cannot directly set override_homedir to something like "/local/home/%g/%u".
Another modification method is to replace substring remote to local, as if in bash script we can write ${home/remote/local}. override_homedir provide %o to represent origin ldap home path, but is it support sub string replacement?
1 year, 10 months