<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: LDAP netgroup problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ldap-netgroup-problem/m-p/4889012#M402018</link>
    <description>hoe does the group directive in /etc/nsswitch.conf look like?? Does it point to ldap??&lt;BR /&gt;&lt;BR /&gt;Is this client a hp-ux machine?? If yes can you do "grget -n testgrp"&lt;BR /&gt;&lt;BR /&gt;Anil</description>
    <pubDate>Wed, 02 Mar 2005 13:47:24 GMT</pubDate>
    <dc:creator>RAC_1</dc:creator>
    <dc:date>2005-03-02T13:47:24Z</dc:date>
    <item>
      <title>LDAP netgroup problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ldap-netgroup-problem/m-p/4889011#M402017</link>
      <description>I have configured my LDAP client to connect to Sun Directory Server and this works OK.  However, I would now like to use netgroups which is where I'm having trouble. To do this I've changed the following files &lt;BR /&gt;&lt;BR /&gt;/etc/nsswitch.conf (has the following edits):&lt;BR /&gt;&lt;BR /&gt;passwd:  compat&lt;BR /&gt;passwd_compat: ldap&lt;BR /&gt;netgroup: files ldap&lt;BR /&gt;&lt;BR /&gt;/etc/passwd (has the following entry at the end):&lt;BR /&gt;&lt;BR /&gt;+@testgrp&lt;BR /&gt;&lt;BR /&gt;/etc/pam.conf (has the following edits):&lt;BR /&gt;&lt;BR /&gt;login account required /usr/lib/security/libpam_authz.1 debug&lt;BR /&gt;&lt;BR /&gt;(this is repeated for each entry in Authentication management)&lt;BR /&gt;&lt;BR /&gt;...and I have created a netgroup on my LDAP server with the nisnetgrouptriple:&lt;BR /&gt;(server,username,domain)&lt;BR /&gt;&lt;BR /&gt;I know the LDAP server netgroup entry is set up OK, as I can access it from a solaris client (although obviously with a different triple).&lt;BR /&gt;&lt;BR /&gt;When I try to connect, my syslog shows entries like:&lt;BR /&gt;login: pam_authenticate: error No account present for user&lt;BR /&gt;login: exiting with return code 13&lt;BR /&gt;&lt;BR /&gt;..but I can confirm that the LDAP client connects fine if I back out the netgroup change.  By the way I have tried restarting the LDAP client just in case there is a caching issue.  I'm stuck where to go next with this, has anyone got any ideas?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Mar 2005 12:56:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ldap-netgroup-problem/m-p/4889011#M402017</guid>
      <dc:creator>alec pringle</dc:creator>
      <dc:date>2005-03-02T12:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP netgroup problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ldap-netgroup-problem/m-p/4889012#M402018</link>
      <description>hoe does the group directive in /etc/nsswitch.conf look like?? Does it point to ldap??&lt;BR /&gt;&lt;BR /&gt;Is this client a hp-ux machine?? If yes can you do "grget -n testgrp"&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Wed, 02 Mar 2005 13:47:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ldap-netgroup-problem/m-p/4889012#M402018</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-03-02T13:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP netgroup problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ldap-netgroup-problem/m-p/4889013#M402019</link>
      <description>OK, &lt;BR /&gt;&lt;BR /&gt;nsswitch.conf has the following entry for group&lt;BR /&gt;&lt;BR /&gt;group:  files  ldap&lt;BR /&gt;&lt;BR /&gt;the grget works OK if I run grget -n staff, and returns:&lt;BR /&gt;&lt;BR /&gt;staff:*:10&lt;BR /&gt;&lt;BR /&gt;This response is definitely from LDAP as the group only exists in the directory.  Note that testgrp is a netgroup and not a unix group and so doesn't return anything from grget.  I can confirm that this is an HP-UX client that I am having difficulty with, the other client that I have successfully configured to use netgroups is a Solaris one.&lt;BR /&gt;&lt;BR /&gt;I have tried pwget and nsquery commands for an LDAP user, but this returns nothing which could be the root of the problem.  If I change the entry for passwd in nsswitch.conf back to:&lt;BR /&gt;&lt;BR /&gt;passwd: files ldap&lt;BR /&gt;&lt;BR /&gt;..then the pwget and nsquery commands work fine.</description>
      <pubDate>Thu, 03 Mar 2005 04:57:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ldap-netgroup-problem/m-p/4889013#M402019</guid>
      <dc:creator>alec pringle</dc:creator>
      <dc:date>2005-03-03T04:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP netgroup problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ldap-netgroup-problem/m-p/4889014#M402020</link>
      <description>We had the same problem and it was because the cn was stored in upper case in the ldap directory.&lt;BR /&gt;A snoop from the server side helped us to identify the origin of the problem.</description>
      <pubDate>Thu, 03 Mar 2005 05:12:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ldap-netgroup-problem/m-p/4889014#M402020</guid>
      <dc:creator>LEGOLL Patrick</dc:creator>
      <dc:date>2005-03-03T05:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP netgroup problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ldap-netgroup-problem/m-p/4889015#M402021</link>
      <description>Thanks,&lt;BR /&gt;&lt;BR /&gt;the cn is definitely in lowercase, the same as in my /etc/passwd file so I think that is OK.  A snoop isn't giving me too much unfortunately as I'm running over SSL.  I've tried running the beq tool (from /opt/ldapux/contrib/bin) which shows I've got a problem.  If I use this to query a group for example it returns OK:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;./beq -k n -s grp -l /usr/lib/libnss_ldap.1 staff                                                   &lt;BR /&gt;nss_status .............. NSS_SUCCESS&lt;BR /&gt;gr_name...........(staff)&lt;BR /&gt;gr_passwd.........(*)&lt;BR /&gt;gr_gid............(10)&lt;BR /&gt;gr_mem&lt;BR /&gt;   ()&lt;BR /&gt;&lt;BR /&gt;but if I try and query netgroup in a similar way&lt;BR /&gt;&lt;BR /&gt; ./beq -k n -s ngp -l /usr/lib/libnss_ldap.1 tempgrp &lt;SERVERNAME&gt; &lt;USERNAME&gt; &lt;DOMAIN&gt;&lt;BR /&gt;nss_status .............. NSS_TRY_AGAIN &lt;BR /&gt;NETGROUP - did not find ({&lt;SERVERNAME&gt;},{&lt;USERNAME&gt;},{&lt;DOMAIN&gt;}) in {tempgrp}&lt;BR /&gt;&lt;BR /&gt;I have checked that my profile is pointing to the right place for netgroups.&lt;BR /&gt;&lt;BR /&gt;&lt;/DOMAIN&gt;&lt;/USERNAME&gt;&lt;/SERVERNAME&gt;&lt;/DOMAIN&gt;&lt;/USERNAME&gt;&lt;/SERVERNAME&gt;</description>
      <pubDate>Thu, 03 Mar 2005 05:59:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ldap-netgroup-problem/m-p/4889015#M402021</guid>
      <dc:creator>alec pringle</dc:creator>
      <dc:date>2005-03-03T05:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP netgroup problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ldap-netgroup-problem/m-p/4889016#M402022</link>
      <description>Is /etc/logingroup file linked to /etc/group??&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Thu, 03 Mar 2005 06:33:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ldap-netgroup-problem/m-p/4889016#M402022</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-03-03T06:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP netgroup problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ldap-netgroup-problem/m-p/4889017#M402023</link>
      <description>there is no logingroup, I have tried creating this (as a hard link) but this hasn't sorted the problem.</description>
      <pubDate>Thu, 03 Mar 2005 07:22:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ldap-netgroup-problem/m-p/4889017#M402023</guid>
      <dc:creator>alec pringle</dc:creator>
      <dc:date>2005-03-03T07:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP netgroup problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ldap-netgroup-problem/m-p/4889018#M402024</link>
      <description>Is there a ldap command that you can use to resolve a netgroup entry from client?? If there is one, run and you should be able to resolve testgrp from client.&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Thu, 03 Mar 2005 08:22:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ldap-netgroup-problem/m-p/4889018#M402024</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-03-03T08:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP netgroup problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ldap-netgroup-problem/m-p/4889019#M402025</link>
      <description>there is the utility /opt/ldapux/contrib/bin/beq, however this goes straight to the libraries and doesn't query nsswitch.conf.  I can now successfully get a reply using this:&lt;BR /&gt;&lt;BR /&gt;unixdev03:bin # ./beq -k n -s ngp -l /usr/lib/libnss_ldap.1 testgrp &lt;SERVERNAME&gt; &lt;USERNAME&gt; &lt;DOMAINNAME&gt;&lt;BR /&gt;nss_status .............. NSS_SUCCESS aka NSS_NETGR_FOUND&lt;BR /&gt;NETGROUP - found ({&lt;SERVERNAME&gt;},{&lt;USERNAME&gt;},{&lt;DOMAINNAME&gt;}) in {testgrp}&lt;BR /&gt;&lt;BR /&gt;...however I can't see my user from an nsquery:&lt;BR /&gt;&lt;BR /&gt;unixdev03:bin # nsquery passwd pringlea                                                                   &lt;BR /&gt;&lt;BR /&gt;Using "compat" for the passwd policy. &lt;BR /&gt;&lt;BR /&gt;Searching compat for pringlea &lt;BR /&gt;pringlea was NOTFOUND &lt;BR /&gt;&lt;BR /&gt;Switch configuration: Allows fallback &lt;BR /&gt;&lt;BR /&gt;All name services have been searched&lt;BR /&gt;&lt;BR /&gt;...even though my nsswitch.conf and passwd files look OK.&lt;BR /&gt;&lt;BR /&gt;I'm wondering if the problem is with the LDAP netgroup itself. There is a migration script for NIS to LDAP in /opt/ldapux/migrate/migrate_netgroup.pl, which adds the field memberNisNetGroup, and I don't have this field in my netgroup testgrp.  I've tried adding it and putting in the full location of the user, but this hasn't resolved the problem.  Does anyone know the syntax for this field (does it need to be the full cn, does it need brackets etc)&lt;/DOMAINNAME&gt;&lt;/USERNAME&gt;&lt;/SERVERNAME&gt;&lt;/DOMAINNAME&gt;&lt;/USERNAME&gt;&lt;/SERVERNAME&gt;</description>
      <pubDate>Thu, 03 Mar 2005 09:32:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ldap-netgroup-problem/m-p/4889019#M402025</guid>
      <dc:creator>alec pringle</dc:creator>
      <dc:date>2005-03-03T09:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP netgroup problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ldap-netgroup-problem/m-p/4889020#M402026</link>
      <description>Can you post whole of your nsswitch.conf??&lt;BR /&gt;passwd directive should be as follows.&lt;BR /&gt;&lt;BR /&gt;passwd : file [NOTFOUND=continue] ldap&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Thu, 03 Mar 2005 09:38:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ldap-netgroup-problem/m-p/4889020#M402026</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-03-03T09:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP netgroup problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ldap-netgroup-problem/m-p/4889021#M402027</link>
      <description>my nsswitch.conf is attached.  In order to read /etc/passwd I need to have the entry &lt;BR /&gt;&lt;BR /&gt;passwd: compat&lt;BR /&gt;passwd_compat: ldap&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Mar 2005 09:58:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ldap-netgroup-problem/m-p/4889021#M402027</guid>
      <dc:creator>alec pringle</dc:creator>
      <dc:date>2005-03-03T09:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP netgroup problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ldap-netgroup-problem/m-p/4889022#M402028</link>
      <description>I think you do not neeed as follows.&lt;BR /&gt;passwd : compact&lt;BR /&gt;passwd_compact : ldap&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You just need one entry.&lt;BR /&gt;passwd : files [NOTFOUND=continue] ldap&lt;BR /&gt;&lt;BR /&gt;Anil&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Mar 2005 12:48:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ldap-netgroup-problem/m-p/4889022#M402028</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-03-03T12:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP netgroup problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ldap-netgroup-problem/m-p/4889023#M402029</link>
      <description>I tried that and it working - thanks for all your help today!</description>
      <pubDate>Thu, 03 Mar 2005 13:20:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ldap-netgroup-problem/m-p/4889023#M402029</guid>
      <dc:creator>alec pringle</dc:creator>
      <dc:date>2005-03-03T13:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP netgroup problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ldap-netgroup-problem/m-p/4889024#M402030</link>
      <description>solution was to edit /etc/nsswitch.conf to read:&lt;BR /&gt;&lt;BR /&gt;passwd: files [NOTFOUND=continue] ldap</description>
      <pubDate>Thu, 03 Mar 2005 13:25:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ldap-netgroup-problem/m-p/4889024#M402030</guid>
      <dc:creator>alec pringle</dc:creator>
      <dc:date>2005-03-03T13:25:55Z</dc:date>
    </item>
  </channel>
</rss>

