Re: Mapping home directory: $uid comes up empty
[Date Prev][Date Next] [Thread Prev][Thread Next]Re: Mapping home directory: $uid comes up empty
- From: Jakub Jindra <skomonster [at] gmail.com>
- To: Chris Marget <chris [at] marget.com>
- Cc: nss-pam-ldapd-users <nss-pam-ldapd-users [at] lists.arthurdejong.org>
- Subject: Re: Mapping home directory: $uid comes up empty
- Date: Fri, 21 Apr 2017 21:29:52 +0000
You're welcome ;)
On Fri, 21 Apr 2017 at 23:27, Chris Marget <chris [at] marget.com> wrote:
Hi Jakub,Yes, AD is the backend.Your recommendation was right on:map passwd homeDirectory "/home/$sAMAccountName"
That is the incantation that got me where I wanted to be. I thought I'd tried it but my list of prior failures indicates otherwise :)Thank you!/chrisOn Fri, Apr 21, 2017 at 5:20 PM, Jakub Jindra <skomonster [at] gmail.com> wrote:Hi Chris,What is the LDAP server used as backend for nslcd? It looks like AD for me from the first look. I'm not familiar with AD.Is there an uid attribute containing username? If it's AD try $sAMAccountNameIf you have access to LDAP logs you can easily check what attributes are requested by searches from nslcd. Or you can run nslcd in debug mode - it's there too.Best,JJOn Fri, Apr 21, 2017 at 10:51 PM, Chris Marget <chris [at] marget.com> wrote:--I'm looking for clues as to why my attempts to "map passwd homeDirectory" are failing.My nslcd.conf file is here: https://pastebin.com/raw/jmu1DnCpIn the comments of that paste are various attempts at mapping the home directory, each with the result it produced.Currently my user looks like this:# getent passwd cmarget
cmarget:*:1407:1407:Chris Marget:/home/:/bin/bash
Any idea why $uid isn't expanding to 'cmarget'? That seems to be the popular way of mapping the home directory to the username.Thank you!
To unsubscribe send an email to
nss-pam-ldapd-users-unsubscribe [at] lists.arthurdejong.org or see
https://lists.arthurdejong.org/nss-pam-ldapd-users/--
--
Sent from small device...
-- To unsubscribe send an email to nss-pam-ldapd-users-unsubscribe@lists.arthurdejong.org or see https://lists.arthurdejong.org/nss-pam-ldapd-users/
- Mapping home directory: $uid comes up empty,
Chris Marget
- Re: Mapping home directory: $uid comes up empty,
Jakub Jindra
- Re: Mapping home directory: $uid comes up empty,
Chris Marget
- Re: Mapping home directory: $uid comes up empty, Jakub Jindra
- Re: Mapping home directory: $uid comes up empty,
Chris Marget
- Re: Mapping home directory: $uid comes up empty,
Jakub Jindra
- Prev by Date: Re: Mapping home directory: $uid comes up empty
- Next by Date: Forced password changes and other PAM modules using passwords
- Previous by thread: Re: Mapping home directory: $uid comes up empty
- Next by thread: Forced password changes and other PAM modules using passwords