Operating System - HP-UX
1831488 Members
3428 Online
110025 Solutions
New Discussion

PAM-LDAP authentication by group

 
Aksoy
Occasional Contributor

PAM-LDAP authentication by group

Hi,

We are using LDAP to authenticate our users through nsswitch & pam.

System is working quite fine.

We are looking at ways
- to use the same LDAP database to authenticate users on several machines
- and at same time being able to restrict who can access what.

The nice way would be to create user groups per host(ex.cn=group-for-host1, ou=groups, o=mycompany.com)

I am having difficulty in defining the search filter in ldapux that would only pick users from a specific group

I have tried with no success:

1- (objectclass=groupofuniquenames)

2- (|(objectclass=posixaccount)(objectclass=groupofuniquenames))

3- (&(cn=group-for-host1)(uid=*))

We are running hp-ux 11.11 & LDAP iplanet 5.0

Thanks for any hint
Selahattin
2 REPLIES 2
Mike Lancaster
Occasional Advisor

Re: PAM-LDAP authentication by group

I have tried this same thing and gotten nowhere.. anyone gotten this sort of thing to work yet?
Lee Hundley
Valued Contributor

Re: PAM-LDAP authentication by group

Maybe:

(&(objectclass=posixgroup)(cn=))

I'm not sure exactly info you're trying to isolate here...
It is my firm belief that it is a mistake to hold any firm beliefs