- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- LDAP netgroup problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2005 04:56 AM
тАО03-02-2005 04:56 AM
/etc/nsswitch.conf (has the following edits):
passwd: compat
passwd_compat: ldap
netgroup: files ldap
/etc/passwd (has the following entry at the end):
+@testgrp
/etc/pam.conf (has the following edits):
login account required /usr/lib/security/libpam_authz.1 debug
(this is repeated for each entry in Authentication management)
...and I have created a netgroup on my LDAP server with the nisnetgrouptriple:
(server,username,domain)
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).
When I try to connect, my syslog shows entries like:
login: pam_authenticate: error No account present for user
login: exiting with return code 13
..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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2005 05:47 AM
тАО03-02-2005 05:47 AM
Re: LDAP netgroup problem
Is this client a hp-ux machine?? If yes can you do "grget -n testgrp"
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2005 08:57 PM
тАО03-02-2005 08:57 PM
Re: LDAP netgroup problem
nsswitch.conf has the following entry for group
group: files ldap
the grget works OK if I run grget -n staff, and returns:
staff:*:10
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.
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:
passwd: files ldap
..then the pwget and nsquery commands work fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2005 09:12 PM
тАО03-02-2005 09:12 PM
Re: LDAP netgroup problem
A snoop from the server side helped us to identify the origin of the problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2005 09:59 PM
тАО03-02-2005 09:59 PM
Re: LDAP netgroup problem
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:
./beq -k n -s grp -l /usr/lib/libnss_ldap.1 staff
nss_status .............. NSS_SUCCESS
gr_name...........(staff)
gr_passwd.........(*)
gr_gid............(10)
gr_mem
()
but if I try and query netgroup in a similar way
./beq -k n -s ngp -l /usr/lib/libnss_ldap.1 tempgrp
nss_status .............. NSS_TRY_AGAIN
NETGROUP - did not find ({
I have checked that my profile is pointing to the right place for netgroups.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2005 10:33 PM
тАО03-02-2005 10:33 PM
Re: LDAP netgroup problem
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2005 11:22 PM
тАО03-02-2005 11:22 PM
Re: LDAP netgroup problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2005 12:22 AM
тАО03-03-2005 12:22 AM
Re: LDAP netgroup problem
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2005 01:32 AM
тАО03-03-2005 01:32 AM
Re: LDAP netgroup problem
unixdev03:bin # ./beq -k n -s ngp -l /usr/lib/libnss_ldap.1 testgrp
nss_status .............. NSS_SUCCESS aka NSS_NETGR_FOUND
NETGROUP - found ({
...however I can't see my user from an nsquery:
unixdev03:bin # nsquery passwd pringlea
Using "compat" for the passwd policy.
Searching compat for pringlea
pringlea was NOTFOUND
Switch configuration: Allows fallback
All name services have been searched
...even though my nsswitch.conf and passwd files look OK.
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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2005 01:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2005 01:58 AM
тАО03-03-2005 01:58 AM
Re: LDAP netgroup problem
passwd: compat
passwd_compat: ldap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2005 04:48 AM
тАО03-03-2005 04:48 AM
Re: LDAP netgroup problem
passwd : compact
passwd_compact : ldap
You just need one entry.
passwd : files [NOTFOUND=continue] ldap
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2005 05:20 AM
тАО03-03-2005 05:20 AM
Re: LDAP netgroup problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2005 05:25 AM
тАО03-03-2005 05:25 AM
Re: LDAP netgroup problem
passwd: files [NOTFOUND=continue] ldap