Bug 57123 - netgroups not supported
Summary: netgroups not supported
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: nss_ldap
Version: 7.1
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact: Aaron Brown
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-12-05 12:02 UTC by Marc Schmitt
Modified: 2007-04-18 16:38 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-10-18 17:03:41 UTC
Embargoed:


Attachments (Terms of Use)

Description Marc Schmitt 2001-12-05 12:02:35 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2)
Gecko/20010726 Netscape6/6.1

Description of problem:
At the bottom of /usr/share/doc/nss_ldap-149/nsswitch.ldap, it says "# No
one has written the LDAP support for netgroups yet, so we'll have to stick
with NIS."

My questions is, are there plans to implement support for netgroups over
LDAP in the near future or will NIS be the only way to go for quite some time?

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. no feature

Additional info:

We are using LDAP in an educational environment with about 1600 student
accounts. The LDAP serves Sun and Linux clients. Under SunOS, netgroups
over LDAP are supported (although we have some problems with it...). The
LDAP server natively integrated in Solaris 8 allows to provide LDAP entries
as NIS maps. We don`t have it configured yet, that`s why I`d like to know
about the future of netgroups and nss under Linux. If this will be realized
soon, I wouldn`t have to temporary configure the Sun/LDAP/NIS solution.

Thanks in advance for your answer.

Regards,
       Marc

Comment 1 Petter Reinholdtsen 2002-11-16 17:04:29 UTC
There are two patches available for nss_ldap to add support
for netgroups.  Both have been rejected because they only work on
Linux.  The patches are available from <URL:http://www.netsys.com/nssldap/2001/03/msg00042.html> and 
<URL:http://www.ifi.uio.no/~kjetilho/hacks/ldap-netgrp.patch>.


Comment 2 Petter Reinholdtsen 2002-12-09 11:58:39 UTC
We at the University of Oslo would like to change our site from using NIS
into using LDAP.  But we need netgroup support.  Our installation is 52.000
users and 10.000 computers.  Please give this problem some priority.


Comment 3 Petter Reinholdtsen 2003-01-19 13:05:28 UTC
The upstream sources for 203.2 contains the following changelog:

  204     Luke Howard <lukeh>

          * Linux netgroup implementation from Larry Lile
          * Multiple service search descriptor support from
            Symas

Time to test the new version?


Comment 4 Petter Reinholdtsen 2003-06-27 07:32:06 UTC
I've now tested version 207 of libnss-ldap, and netgroups work just
fine.  Please include upgrade the version used in RedHat to a
version with netgroup support.


Comment 5 Albert Fluegel 2003-08-13 15:03:55 UTC
Here's how to make an RPM with netgroup support (tested !)
suitable for RedHat-9:

1)
Install SRPM from RedHat-9 nss_ldap-202-5.src.rpm

2)
Put the replacement for the file
/usr/src/redhat/SOURCES/nss_ldap-202.tar.gz
into the same directory as nss_ldap-207.tar.gz .
The file can be obtained from padl:
ftp://ftp.padl.com/pub/nss_ldap.tgz

3)
In the spec file /usr/src/redhat/SPECS/nss_ldap.spec
replace Version: 202 by Version: 207

4.)
replace the entire contents of
/usr/src/redhat/SOURCES/nss_ldap-197-db.patch with:

- snip -
We have to make sure we're getting the version of db185.h we want, i.e.,
the one that matches the library we'll be linking against, so force it.
--- nss_ldap-207/util.c.org     2003-08-13 11:47:03.000000000 +0200
+++ nss_ldap-207/util.c 2003-08-13 11:51:31.000000000 +0200
@@ -92,18 +92,9 @@
  * right API!
  */
 #if defined(RFC2307BIS) || defined(AT_OC_MAP)
-#ifdef HAVE_DB3_DB_185_H
-#include <db3/db_185.h>
-#define DN2UID_CACHE
-#elif defined(HAVE_DB_185_H)
+#if defined(HAVE_DB_185_H)
 #include <db_185.h>
 #define DN2UID_CACHE
-#elif defined(HAVE_DB1_DB_H)
-#include <db1/db.h>
-#define DN2UID_CACHE
-#elif defined(HAVE_DB_H)
-#include <db.h>
-#define DN2UID_CACHE
 #endif /* HAVE_DB3_DB_H */
 
 #ifdef DN2UID_CACHE
- snip -

5)
run rpmbuild -bb /usr/src/redhat/SPECS/nss_ldap.spec

The created RPMs can be installed using rpm -U ... as usual.

It is unclear, if that works also with older RedHat Releases
but i assume problems with pre - 2 versions
But for RedHat-9 there are no excuses ;-)


Comment 6 Larry Lile 2003-08-22 22:37:36 UTC
Hello, I am the author the the netgroup support for nss_ldap.  The netgroup
support was accepted into the main branch of nss_ldap in release 204.  The
current version of nss_ldap is 210 (at last check).  I have provided SRPMs
to you (nalin) on more than one occasion.  When can we expect to see netgroup
support integrated into RedHat products.  I just checked the AW beta and it
still has not been integrated.  My personal e-mail to you on this issue
has gone unanswered since 8/13 and I provided you the patch set originally
on 1/31/2003.

I am opening a new bugreport on this against RedHat 9 and AW3.

Comment 7 Petter Reinholdtsen 2003-10-22 19:00:58 UTC
Version 207 is claimed to be in RawHide.  I hope that mean the new version
will make into the next release.  Then all we need to do is wait for
bug #103568 to be fixed as well before PAM and NSS over LDAP is completely
usable in RedHat. :)


Comment 8 Petter Reinholdtsen 2004-04-14 15:25:15 UTC
Version 207 of libnss-ldap is in RedHat Enterprise Linux 3.
This bug is fixed, but I am unable to close it.


Comment 9 Petter Reinholdtsen 2004-09-09 15:01:17 UTC
Why is bug report still open?  The problem is solved.

Comment 10 Bill Nottingham 2006-08-07 19:44:28 UTC
Red Hat Linux is no longer supported by Red Hat, Inc. If you are still
running Red Hat Linux, you are strongly advised to upgrade to a
current Fedora Core release or Red Hat Enterprise Linux or comparable.
Some information on which option may be right for you is available at
http://www.redhat.com/rhel/migrate/redhatlinux/.

Red Hat apologizes that these issues have not been resolved yet. We do
want to make sure that no important bugs slip through the cracks.
Please check if this issue is still present in a current Fedora Core
release. If so, please change the product and version to match, and
check the box indicating that the requested information has been
provided. Note that any bug still open against Red Hat Linux on will be
closed as 'CANTFIX' on September 30, 2006. Thanks again for your help.


Comment 11 Bill Nottingham 2006-10-18 17:03:41 UTC
Red Hat Linux is no longer supported by Red Hat, Inc. If you are still
running Red Hat Linux, you are strongly advised to upgrade to a
current Fedora Core release or Red Hat Enterprise Linux or comparable.
Some information on which option may be right for you is available at
http://www.redhat.com/rhel/migrate/redhatlinux/.

Closing as CANTFIX.


Note You need to log in before you can comment on or make changes to this bug.