HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: LDAP netgroup problem (Continued)
Operating System - HP-UX
1833059
Members
2579
Online
110049
Solutions
Forums
Categories
Company
Local Language
back
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
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-29-2005 12:17 AM
03-29-2005 12:17 AM
LDAP netgroup problem (Continued)
I have been having exactly the same problem as described in the "LDAP netgroup problem" thread by Alec Pringle 3/2/2005.
I tried the solution from that thread and at first glance it appears to work. I can now access the userids in the ldap directory. The problem is I can now access ALL the userids in the directory. The solution essentially turns off the netgroups.
I need to restrict access to the client to only those users in teh directory who are members of the netgroup.
Any ideas?
I tried the solution from that thread and at first glance it appears to work. I can now access the userids in the ldap directory. The problem is I can now access ALL the userids in the directory. The solution essentially turns off the netgroups.
I need to restrict access to the client to only those users in teh directory who are members of the netgroup.
Any ideas?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2005 12:54 AM
03-29-2005 12:54 AM
Re: LDAP netgroup problem (Continued)
On the client, where you want to restice the access, you need to modify the /etc/passwd file as follows.
+@group_name
If you have + in /etc/passwd file, then all users will get access on this host.
man passwd for details.
+@group_name
If you have + in /etc/passwd file, then all users will get access on this host.
man passwd for details.
There is no substitute to HARDWORK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2005 01:19 AM
03-29-2005 01:19 AM
Re: LDAP netgroup problem (Continued)
Yes indeed. My /etc/passwd has the +@group_name: at the end.
With the "passwd: compat" etc in the nsswitch it seems to recognize that it has to deal with netgroups. With the nsswitch set to "passwd: files [NOTFOUND] ldap" it appears to ignore the +@group thing and allow access to all the userids in the ldap directory.
This behavior make sense to me.
Perhaps another hint:
The finger comand appears to understand the netgroups and who is in it. Other commands like groups and su do not. In other words: when I have the "passwd:compat" in the nsswitch, and the +@group in the /etc/passwd, a finger will only show the userids in the valid netgroups. Other commands respond with "no such user".
As with Alec Pringle's thread, this all seems to work OK on my Solaris clients.
With the "passwd: compat" etc in the nsswitch it seems to recognize that it has to deal with netgroups. With the nsswitch set to "passwd: files [NOTFOUND] ldap" it appears to ignore the +@group thing and allow access to all the userids in the ldap directory.
This behavior make sense to me.
Perhaps another hint:
The finger comand appears to understand the netgroups and who is in it. Other commands like groups and su do not. In other words: when I have the "passwd:compat" in the nsswitch, and the +@group in the /etc/passwd, a finger will only show the userids in the valid netgroups. Other commands respond with "no such user".
As with Alec Pringle's thread, this all seems to work OK on my Solaris clients.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2005 01:24 AM
03-29-2005 01:24 AM
Re: LDAP netgroup problem (Continued)
You certaily do not need
passwd : compact (It is for file and nis environment.)
You need as follows.
passwd: files [NOTFOUND=continue] ldap
group : file [NOTFOUND=continue] ldap
netgroup : ldap
passwd : compact (It is for file and nis environment.)
You need as follows.
passwd: files [NOTFOUND=continue] ldap
group : file [NOTFOUND=continue] ldap
netgroup : ldap
There is no substitute to HARDWORK
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP