Hi,

the reason for the problem was the group entry in /etc/nsswitch.conf
It was interpreted correctly by the systems tools like id, getent etc.

With an strace -f on the following testprogram
I have seen, that nsswitch.conf is opend, but libnss_ldap not...
Therefore it doesn't use ldap for the getgrouplist systemcall samba uses..

I adjusted my nsswitch.conf in order to work with the testtool, and samba does to...

Thank you for your help

Greetings


Hansj�rg



#include <unistd.h> #include <grp.h> #include <sys/types.h> #include <stdlib.h>

int main(void)
{
int ngroups = 16;
gid_t *groups
= (gid_t *) malloc (ngroups * sizeof (gid_t));
gid_t secondaries[1024];
printf("%d\n", getgrouplist("root", 0, groups, &ngroups));
}





--
Dr. Hansj�rg Maurer
itsystems Deutschland AG
Linprunstr. 10
D-80335 M�nchen
Ph/Fax +49 89 52 04 68-41/-59



-- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba

Reply via email to