Re: How to extract user's OU from DN??
[Date Prev][Date Next] [Thread Prev][Thread Next]Re: How to extract user's OU from DN??
- From: Henry Vogt <henry.vogt [at] gmail.com>
- To: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: Re: How to extract user's OU from DN??
- Date: Sat, 17 Jun 2023 17:33:50 +0200
Hi,
On 16.06.23 05:17, Chi Min Wang wrote:
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!!
Something like this ?
echo $DN | sed -e 's/^.*[oO][uU]=/ou=/I;s/,.*$//'
hth
Henry
- How to extract user's OU from DN??,
Chi Min Wang
- Re: How to extract user's OU from DN??, Henry Vogt
- Prev by Date: How to extract user's OU from DN??
- Next by Date: Re: fixes for getpeercred.c
- Previous by thread: How to extract user's OU from DN??
- Next by thread: per search-dn support proposal