Re: innetgr support?
[Date Prev][Date Next] [Thread Prev][Thread Next]Re: innetgr support?
- From: Arthur de Jong <arthur [at] arthurdejong.org>
- To: Mark R Bannister <dbis [at] proseconsulting.co.uk>
- Cc: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Reply-to: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: Re: innetgr support?
- Date: Fri, 06 Mar 2015 18:00:44 +0100
On Fri, 2015-03-06 at 13:48 +0000, Mark R Bannister wrote: > I've hit a problem on Solaris 11 with sudo. I see the innetgr > constructor has not been implemented yet. This means that innetgr() > doesn't work on Solaris, which is a major roadblock. I was under the impression that innetgr() was emulated with setnetgrent(), getnetgrent() calls if the interface was not present. On Glibc the NSS modules do not even expose an innetgr() function at all. Attached is a completely untested patch that should implement the function with the proper interface. It does basically what the emulation described above does. This also seems to be what nss_ldap does on Solaris. It would also be possible to implement a real innetgr call all the way to nslcd that would then perform an LDAP search with more filters applied but I'm a bit lazy today. Again, the patch is written without even passing it through a compiler so there are probably errors in the code. Kind regards, -- -- arthur - arthur@arthurdejong.org - http://arthurdejong.org/ --
Attachment:
0001-UNTESTED:-ProvideinnetgrfunctiononSolaris.patch
Description: Text Data
-- To unsubscribe send an email to nss-pam-ldapd-users-unsubscribe@lists.arthurdejong.org or see http://lists.arthurdejong.org/nss-pam-ldapd-users/
- innetgr support?,
Mark R Bannister
- <Possible follow-ups>
- Re: innetgr support?, Arthur de Jong
- Re: innetgr support?,
Mark R Bannister
- Re: innetgr support?, Arthur de Jong
- Re: innetgr support?, Mark R Bannister
- Prev by Date: innetgr support?
- Next by Date: Re: innetgr support?
- Previous by thread: innetgr support?
- Next by thread: Re: innetgr support?