Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to use OU in user's DN to mapping homedir?? #59

Open
3pwang opened this issue Jun 20, 2023 · 1 comment
Open

Is it possible to use OU in user's DN to mapping homedir?? #59

3pwang opened this issue Jun 20, 2023 · 1 comment

Comments

@3pwang
Copy link

3pwang commented Jun 20, 2023

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!!
LINE_P2023616_110415

@arthurdejong
Copy link
Owner

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants