RE: Why does nslcd require LDAP user entry objectClass=posixAccount?
[Date Prev][Date Next] [Thread Prev][Thread Next]RE: Why does nslcd require LDAP user entry objectClass=posixAccount?
- From: Shimin <smqian [at] hotmail.com>
- To: Berend De Schouwer <berend [at] deschouwer.co.za>
- Cc: "nss-pam-ldapd-users [at] lists.arthurdejong.org" <nss-pam-ldapd-users [at] lists.arthurdejong.org>, Shimin <smqian [at] hotmail.com>, Todd Grayson <tgrayson [at] cloudera.com>
- Subject: RE: Why does nslcd require LDAP user entry objectClass=posixAccount?
- Date: Thu, 9 Apr 2015 14:15:10 -0400
Thanks so much for explaining why posixAccount will be necessary if we are going to use pam_dap.
I did develop a web service that makes straight LDAP calls to authenticate users and get their roles. It was relatively painless and no restrictions such as this. We have converted a couple of our web apps already to use the service, no problem there. The issue is that we also have a CLI component on Linux boxes and some components that makes use of SSH tunnels into the Linux systems that rely on unix login, sshd, pam_unix, that we have to add LDAP authentication support. pam_ldap was first thought of as an obvious choice. I wish we could just convert those to use the web service also that makes straight LDAP API calls, so we no longer have to go through the pam_ldap route. Is it even possible? What are the options? I would appreciate your input and suggestions!! Shi-Min Date: Thu, 9 Apr 2015 10:25:53 +0200 From: berend@deschouwer.co.za Subject: RE: Why does nslcd require LDAP user entry objectClass=posixAccount? To: smqian@hotmail.com CC: nss-pam-ldapd-users@lists.arthurdejong.org; tgrayson@cloudera.com On Thu, 9 Apr, 2015 at 5:19 , Shimin <smqian@hotmail.com> wrote:
maybe, but you'll also have to map gidNumber, loginShell, and a few others. Most Unix applications, ns services, and PAM expect to be able to call getuid(), geteuid(), getgid(), getpwent(), etc. PAM will, by default, check if you have a valid shell. It's common for applications to call getpwent(geteuid()) to get information about the user. Even if you're not supplying a full login, some applications will attempt to call this, which will in turn make calls to NS, which is why you are using nslcd (NS LDAP) NS must provide answers to these questions. The minimum you will need is basically a valid getpwent() entry. man getpwent. gecos is allowed to be empty, but not NULL. shell is not usually allowed to be empty, but you can edit pam to prevent that, I think. You should be able to default this to /bin/bash or /bin/nologin. dir is not allowed to be empty, I think.
If uidNumber can be >65535, make sure it's valid on your system. Not all older apps accept more than a 16-bit int. There used to be funny stuff with uid_t being a signed int too. employeeNumbers can frequently be bigger, and frequently have leading zeroes. -- To unsubscribe send an email to nss-pam-ldapd-users-unsubscribe@lists.arthurdejong.org or see http://lists.arthurdejong.org/nss-pam-ldapd-users/ |
-- To unsubscribe send an email to nss-pam-ldapd-users-unsubscribe@lists.arthurdejong.org or see http://lists.arthurdejong.org/nss-pam-ldapd-users/
- Re: Why does nslcd require LDAP user entry objectClass=posixAccount?, (continued)
- Re: Why does nslcd require LDAP user entry objectClass=posixAccount?,
Todd Grayson
- RE: Why does nslcd require LDAP user entry objectClass=posixAccount?,
Shimin
- Re: Why does nslcd require LDAP user entry objectClass=posixAccount?, Todd Grayson
- RE: Why does nslcd require LDAP user entry objectClass=posixAccount?,
Berend De Schouwer
- RE: Why does nslcd require LDAP user entry objectClass=posixAccount?, Shimin
- RE: Why does nslcd require LDAP user entry objectClass=posixAccount?,
Shimin
- Re: Why does nslcd require LDAP user entry objectClass=posixAccount?,
Todd Grayson
- Prev by Date: RE: Why does nslcd require LDAP user entry objectClass=posixAccount?
- Next by Date: Re: Why does nslcd require LDAP user entry objectClass=posixAccount?
- Previous by thread: RE: Why does nslcd require LDAP user entry objectClass=posixAccount?
- Next by thread: Re: Why does nslcd require LDAP user entry objectClass=posixAccount?