LDAP auth, secondary groups doesnt works

RedHat ELS 5.2 & Sun directory

getent passwd: works

toto:*:1000:100:toto:/home/toto:/bin/bash

getent group: works

mygroup:*:10001:1000,1001

but id toto doesnt works :frowning:

uid=1000(toto) gid=100(users) groupes=100(users)

BTW in /etc/ldap.conf i use a different mapping for the posix group:
nss_base_group ou=unixGroups,ou=...

Thx for help.

check the entry for "group" in /etc/nsswitch.conf

should be

group: files ldap

as well as passwd and shadow

Thanks for your reply.

It is (files ldap).

And getent group reports the groups...

seems there is no connection between your user and groups

getent group

should not show user ids, it should show the names of the user

please post a group on your ldap-server, or check if it contains

memberuid username

or

memberuid userid

should be username

> should be username

... nice shooting!

Thx for all.