Open 3pwang opened 1 year ago
I don't think there is a way currently to do that. Only attributes that are in the entry are available so unless the entry has a $ou
attribute it will not work. If the position in the DN is fixed (e.g. no space differences and the OU value is always 3 characters you might be able to use (but this is really fragile):
map homeDirectory "/home/${dn:21:3}/$cn"
Hello Everyone. Is there anyway to extract the user's first level of OU from DN?? I'd like to use it for mapping user's homedir(i.e. /home/$ou1/$cn). Thanks anyway!!