- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- LDAPUX-Client - Howto only allow members of LDAP G...
Operating System - HP-UX
1752525
Members
4709
Online
108788
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
Discussions
Discussions
Forums
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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-20-2009 06:41 AM
тАО03-20-2009 06:41 AM
G'Day.
We want to setup our LdapUxClient running on HPUX 11.23 to connect to our LDAP server in a way that:
1) it allows all local users (/etc/passwd) to login without problems
2) *only* allows LDAP users member of the LDAP Group XYZ to login through LDAP... other LDAP users will NOT be able to login if they aren't member of the appropriate ldap group...
3) Deny the rest!
Feels like something fare to do. Must not be the first to do this kind of thing...
I know there's the /etc/opt/ldapux/pam_authz.policy config file for the ldapux-client... just not sure how I'd configure this...
Has anyone done this?
Thanks so much.
Patrick
We want to setup our LdapUxClient running on HPUX 11.23 to connect to our LDAP server in a way that:
1) it allows all local users (/etc/passwd) to login without problems
2) *only* allows LDAP users member of the LDAP Group XYZ to login through LDAP... other LDAP users will NOT be able to login if they aren't member of the appropriate ldap group...
3) Deny the rest!
Feels like something fare to do. Must not be the first to do this kind of thing...
I know there's the /etc/opt/ldapux/pam_authz.policy config file for the ldapux-client... just not sure how I'd configure this...
Has anyone done this?
Thanks so much.
Patrick
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2009 03:07 PM
тАО03-23-2009 03:07 PM
Solution
Hi Patrick,
Here's the steps --
(a)import all the entries to LDAP server.
(b) copy /etc/nsswitch.ldap
to /etc/nsswitch.conf
(c) copy /etc/pam.ldap to /etc/pam.conf,
then edit /etc/pam.conf to include
pam_authz. Please see the bottom of the man
page of pam_authz for reference.
(d) run setup of LDAP-UX client
(e) edit /etc/opt/ldapux/pam_authz.policy
All you need is the following two lines
depends on XYZ
(if XYZ is posix group)
allow:unix_local_user
allow:unix_group:XYZ
or (if XYZ is not posix group)
allow:unix_local_user
allow:ldap_group: CN=XYZ,dc=......
You can the following file as your base --
/etc/opt/ldapux/pam_authz.policy.template
You can also check man page of pam_authz on
how to configure pam_authz.policy.
NOTE-- Your task is pretty straight foward.
However, you may want to save the orignal
copy of /etc/pam.conf and also keep
additional window open so that you can
still go back to previous stage just in
case you make mistake configuring
/etc/pam.conf.
Please let me know if you need more info.
Thanks,
Stephen
Here's the steps --
(a)import all the entries to LDAP server.
(b) copy /etc/nsswitch.ldap
to /etc/nsswitch.conf
(c) copy /etc/pam.ldap to /etc/pam.conf,
then edit /etc/pam.conf to include
pam_authz. Please see the bottom of the man
page of pam_authz for reference.
(d) run setup of LDAP-UX client
(e) edit /etc/opt/ldapux/pam_authz.policy
All you need is the following two lines
depends on XYZ
(if XYZ is posix group)
allow:unix_local_user
allow:unix_group:XYZ
or (if XYZ is not posix group)
allow:unix_local_user
allow:ldap_group: CN=XYZ,dc=......
You can the following file as your base --
/etc/opt/ldapux/pam_authz.policy.template
You can also check man page of pam_authz on
how to configure pam_authz.policy.
NOTE-- Your task is pretty straight foward.
However, you may want to save the orignal
copy of /etc/pam.conf and also keep
additional window open so that you can
still go back to previous stage just in
case you make mistake configuring
/etc/pam.conf.
Please let me know if you need more info.
Thanks,
Stephen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-24-2009 05:49 AM
тАО03-24-2009 05:49 AM
Re: LDAPUX-Client - Howto only allow members of LDAP Group...
Thank you Stephen. That's exactly what I needed. Will give it a try and let you know.
Patrick
Patrick
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP