Ask a Question related to Linux / Unix Administration, Design and Development.

  1. #1

    Default LDAP and netgroup

    Hi,

    I am in the process of evaluating a migration from NIS to LDAP and I'm
    seeing a couple of problems. Wondering if anyone else has seen them. My current
    setup involves only RedHat 9.0 with its supplied OpenLDAP server, but I will
    soon be adding HP-UX to the mix.

    Problem 1)

    If I have nscd (Name Service Cache Daemon) stopped, and have set "hosts: ldap"
    in nsswitch.conf, many commands will immediately segfault. I first saw it with
    "ping", but most other commands follow suit. I discovered the cause by using
    "strace ping" and saw hundreds of messages about the nscd pipe not existing.
    The second part of this problem is that within a couple minutes, the system
    grinds to a complete halt.

    Problem 2)

    We make heavy use of netgroup via NIS and so far my testing is showing that
    netgroup use via LDAP is not working. If I try to use "passwd: compat" and
    attempt to login via a user id in a defined netgroup in /etc/passwd, I am
    unable to login and /var/log/messages shows that the system cannot resolve the
    user id. Same thing when I try to use netgroup in a .rhosts file.

    I can successfully query all the data for netgroup with "ldapsearch", so I know
    that is not the problem.

    Normal authentication and hosts resolution appear to be working fine...

    Can anyone shed some light on these issues and share any other issues/concerns
    that have come up when migrating NIS to LDAP? Almost all of the online
    documentation is old and/or vague, especially with regards to netgroup usage.

    Thanks,

    Kevin
    Kevin Collins Guest

  2. Similar Questions and Discussions

    1. LDAP and netgroup.byhost / netgroup.byuser
      Hi, in migrating from NIS to LDAP, it appears that netgroup.byhost and netgroup.byuser are not "automatically" maintained in LDAP as they were in...
    2. PHP & LDAP over SSL
      hi everyone, i have written a php-application running on a linux-box with apache2 and php4.3.1 username and password of login-procedure are to...
    3. Net::LDAP Vs AD
      Hello, I would like to write modifs to the bugzilla code in order that it can perform integrated security lookups against my active directory...
    4. LDAP on AIX 5.2
      theycallmetim wrote: you might have a look at www.redbooks.ibm.com for "LDAP Implementation Coockbook SG24-5110-00" or "Understanding LDAP...
    5. LDAP for AIX 5.1
      Does anyone know the simplest way to configure LDAP on an AIX 5.1 box? Do I have to disable NIS services before? I appricate your help. Right
  3. #2

    Default Re: LDAP and netgroup

    In article <slrncd0vkv.vp1.spamtotrash@doom.unix-guy.com>,
    Kevin Collins <spamtotrash@toomuchfiction.com> wrote:
    | Problem 2)
    |
    | We make heavy use of netgroup via NIS and so far my testing is showing that
    | netgroup use via LDAP is not working. If I try to use "passwd: compat" and
    | attempt to login via a user id in a defined netgroup in /etc/passwd, I am
    | unable to login and /var/log/messages shows that the system cannot resolve the
    | user id. Same thing when I try to use netgroup in a .rhosts file.
    |
    | I can successfully query all the data for netgroup with "ldapsearch", so I know
    | that is not the problem.
    |
    | Normal authentication and hosts resolution appear to be working fine...
    |
    | Can anyone shed some light on these issues and share any other issues/concerns
    | that have come up when migrating NIS to LDAP? Almost all of the online
    | documentation is old and/or vague, especially with regards to netgroup usage.

    We're trying the same thing here right now. It appears that the
    Solaris nss_ldap module uses some kind of mangled query dialect when
    querying for netgroups that will not work with OpenLDAP, though one
    supposes it does work under the SunONE Directory Server.

    PADL.com's nss_ldap doesn't provide support for netgroups under LDAP
    at all, from comments Luke Howard has made on various mailing lists,
    so it appears that if you want to get netgroups working on Solaris
    under LDAP the choices are to license Sun's LDAP server or to tackle
    the project of adding support for netgroups to PADL's nss_ldap and
    making sure that all of your clients are running with it.

    This is incredibly frustrating.. it's 2004, and we're still having to
    run NIS? Ugh.

    | Thanks,
    |
    | Kevin

    --
    -------------------------------------------------------------------------------
    Jonathan Abbey [email]jonabbey@arlut.utexas.edu[/email]
    Applied Research Laboratories The University of Texas at Austin
    GPG Key: 71767586 at keyserver pgp.mit.edu, [url]http://www.ganymeta.org/workkey.gpg[/url]
    Jonathan Abbey Guest

  4. #3

    Default Re: LDAP and netgroup

    In article <car0a2$s73@csdsun1.arlut.utexas.edu>, Jonathan Abbey wrote:
    > In article <slrncd0vkv.vp1.spamtotrash@doom.unix-guy.com>,
    > Kevin Collins <spamtotrash@toomuchfiction.com> wrote:
    >| Problem 2)
    >|
    >| We make heavy use of netgroup via NIS and so far my testing is showing that
    >| netgroup use via LDAP is not working. If I try to use "passwd: compat" and
    >| attempt to login via a user id in a defined netgroup in /etc/passwd, I am
    >| unable to login and /var/log/messages shows that the system cannot resolve the
    >| user id. Same thing when I try to use netgroup in a .rhosts file.
    >|
    >| I can successfully query all the data for netgroup with "ldapsearch", so I know
    >| that is not the problem.
    >|
    >| Normal authentication and hosts resolution appear to be working fine...
    >|
    >| Can anyone shed some light on these issues and share any other issues/concerns
    >| that have come up when migrating NIS to LDAP? Almost all of the online
    >| documentation is old and/or vague, especially with regards to netgroup usage.
    >
    > We're trying the same thing here right now. It appears that the
    > Solaris nss_ldap module uses some kind of mangled query dialect when
    > querying for netgroups that will not work with OpenLDAP, though one
    > supposes it does work under the SunONE Directory Server.
    >
    > PADL.com's nss_ldap doesn't provide support for netgroups under LDAP
    > at all, from comments Luke Howard has made on various mailing lists,
    > so it appears that if you want to get netgroups working on Solaris
    > under LDAP the choices are to license Sun's LDAP server or to tackle
    > the project of adding support for netgroups to PADL's nss_ldap and
    > making sure that all of your clients are running with it.
    >
    > This is incredibly frustrating.. it's 2004, and we're still having to
    > run NIS? Ugh.
    Thanks for the response - we are not using Solaris, only Linux and HP-UX, both
    of which are PADL-based.

    We are near the limits with netgroup, which is one of the key motivators in
    looking at LDAP, so it really sucks that this isn't a viable option yet.

    Kevin
    Kevin Collins Guest

  5. #4

    Default Re: LDAP and netgroup

    In article <slrncd3imr.5dd.spamtotrash@doom.unix-guy.com>, Kevin Collins wrote:
    > In article <car0a2$s73@csdsun1.arlut.utexas.edu>, Jonathan Abbey wrote:
    >> In article <slrncd0vkv.vp1.spamtotrash@doom.unix-guy.com>,
    >> Kevin Collins <spamtotrash@toomuchfiction.com> wrote:
    >>| Problem 2)
    >>|
    >>| We make heavy use of netgroup via NIS and so far my testing is showing that
    >>| netgroup use via LDAP is not working. If I try to use "passwd: compat" and
    >>| attempt to login via a user id in a defined netgroup in /etc/passwd, I am
    >>| unable to login and /var/log/messages shows that the system cannot resolve the
    >>| user id. Same thing when I try to use netgroup in a .rhosts file.
    >>|
    >>| I can successfully query all the data for netgroup with "ldapsearch", so I know
    >>| that is not the problem.
    >>|
    >>| Normal authentication and hosts resolution appear to be working fine...
    >>|
    >>| Can anyone shed some light on these issues and share any other issues/concerns
    >>| that have come up when migrating NIS to LDAP? Almost all of the online
    >>| documentation is old and/or vague, especially with regards to netgroup usage.
    >>
    >> We're trying the same thing here right now. It appears that the
    >> Solaris nss_ldap module uses some kind of mangled query dialect when
    >> querying for netgroups that will not work with OpenLDAP, though one
    >> supposes it does work under the SunONE Directory Server.
    >>
    >> PADL.com's nss_ldap doesn't provide support for netgroups under LDAP
    >> at all, from comments Luke Howard has made on various mailing lists,
    >> so it appears that if you want to get netgroups working on Solaris
    >> under LDAP the choices are to license Sun's LDAP server or to tackle
    >> the project of adding support for netgroups to PADL's nss_ldap and
    >> making sure that all of your clients are running with it.
    Just as an follow-up, I finally found that netgroup functionality was not
    supported in PADL-based nss_lib until version 207. Specifically, for RedHat,
    this bug can be referenced here:

    [url]http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=57123[/url]
    >> This is incredibly frustrating.. it's 2004, and we're still having to
    >> run NIS? Ugh.
    >
    > Thanks for the response - we are not using Solaris, only Linux and HP-UX, both
    > of which are PADL-based.
    >
    > We are near the limits with netgroup, which is one of the key motivators in
    > looking at LDAP, so it really sucks that this isn't a viable option yet.
    Kevin
    Kevin Collins Guest

  6. #5

    Default Re: LDAP and netgroup

    In article <slrncd3vcb.5dd.spamtotrash@doom.unix-guy.com>, Kevin Collins wrote:
    > In article <slrncd3imr.5dd.spamtotrash@doom.unix-guy.com>, Kevin Collins wrote:
    >> In article <car0a2$s73@csdsun1.arlut.utexas.edu>, Jonathan Abbey wrote:
    >>> In article <slrncd0vkv.vp1.spamtotrash@doom.unix-guy.com>,
    >>> Kevin Collins <spamtotrash@toomuchfiction.com> wrote:
    >>>| Problem 2)
    >>>|
    >>>| We make heavy use of netgroup via NIS and so far my testing is showing that
    >>>| netgroup use via LDAP is not working. If I try to use "passwd: compat" and
    >>>| attempt to login via a user id in a defined netgroup in /etc/passwd, I am
    >>>| unable to login and /var/log/messages shows that the system cannot resolve the
    >>>| user id. Same thing when I try to use netgroup in a .rhosts file.
    >>>|
    >>>| I can successfully query all the data for netgroup with "ldapsearch", so I know
    >>>| that is not the problem.
    >>>|
    >>>| Normal authentication and hosts resolution appear to be working fine...
    >>>|
    >>>| Can anyone shed some light on these issues and share any other issues/concerns
    >>>| that have come up when migrating NIS to LDAP? Almost all of the online
    >>>| documentation is old and/or vague, especially with regards to netgroup usage.
    >>>
    >>> We're trying the same thing here right now. It appears that the
    >>> Solaris nss_ldap module uses some kind of mangled query dialect when
    >>> querying for netgroups that will not work with OpenLDAP, though one
    >>> supposes it does work under the SunONE Directory Server.
    >>>
    >>> PADL.com's nss_ldap doesn't provide support for netgroups under LDAP
    >>> at all, from comments Luke Howard has made on various mailing lists,
    >>> so it appears that if you want to get netgroups working on Solaris
    >>> under LDAP the choices are to license Sun's LDAP server or to tackle
    >>> the project of adding support for netgroups to PADL's nss_ldap and
    >>> making sure that all of your clients are running with it.
    >
    > Just as an follow-up, I finally found that netgroup functionality was not
    > supported in PADL-based nss_lib until version 207. Specifically, for RedHat,
    > this bug can be referenced here:
    >
    > [url]http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=57123[/url]
    >
    >>> This is incredibly frustrating.. it's 2004, and we're still having to
    >>> run NIS? Ugh.
    >>
    >> Thanks for the response - we are not using Solaris, only Linux and HP-UX, both
    >> of which are PADL-based.
    >>
    >> We are near the limits with netgroup, which is one of the key motivators in
    >> looking at LDAP, so it really sucks that this isn't a viable option yet.
    >
    Further followup: I have just tried this NIS to LDAP conversion using RedHat
    Enterprise Linux 3.0, and the netgroup functionality works fine.

    Now I am having trouble querying the mail aliases... Mail seems to be working
    fine and aliases are resolved, but we have a few scripts that query NIS mail
    aliases via ypmatch. When I attempt to use ldapsearch, I can't match based on a
    "cn=...".

    Kevin
    > Kevin
    Kevin Collins Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139