Hi,
I found strange errors in my samba logs :
[2003/07/28 16:32:16, 0] lib/smbldap.c:smbldap_open(799)
smbldap_open: cannot access LDAP when not root..
[2003/07/28 16:32:16, 1] lib/smbldap.c:smbldap_retry_open(888)
Connection to LDAP Server failed for the 1 try!
[2003/07/28 16:32:16, 0] passdb/pdb_ldap.c:ldapsam_search_one_group(1634)
ldapsam_search_one_group: Problem during the LDAP search: LDAP error:
(Insufficient access)ldapsam_search_one_group: searching for:
[(&(objectClass=sambaGroupMapp
ing)(gidNumber=-1))]
Exploring the source code, I found It was related to the euid of samba
(file lib/smbldap.c) :
#ifndef NO_LDAP_SECURITY
if (geteuid() != 0) {
DEBUG(0, ("smbldap_open: cannot access LDAP when not root..
\n"));
return LDAP_INSUFFICIENT_ACCESS;
}
#endif
NO_LDAP_SECURITY was not defined during compilation... How could I resolve
the problem ? How could I have an euid of 0 running samba ?
Thank you very much,
Gana?l.
Hi all, While playing with group mapping, I'm regularly getting this error : [2003/08/07 08:10:39, 2] passdb/pdb_ldap.c:ldapsam_search_one_group(1619) ldapsam_search_one_group: searching for: [(&(objectClass=sambaGroupMapping)(gidNumber=1001))] [2003/08/07 08:10:39, 0] lib/smbldap.c:smbldap_open(799) smbldap_open: cannot access LDAP when not root.. [2003/08/07 08:10:39, 1] lib/smbldap.c:smbldap_retry_open(888) Connection to LDAP Server failed for the 1 try! [2003/08/07 08:10:39, 0] passdb/pdb_ldap.c:ldapsam_search_one_group(1634) ldapsam_search_one_group: Problem during the LDAP search: LDAP error: (Insufficient access)ldapsam_search_one_group: searching for: [(&(objectClass=sambaGroupMappin g)(gidNumber=1002))] I know I can access the LDAP server because every user in my domain can authenticate. Moreover, Group mapping works... What's the matter ? Who must be root... Smbd/Nmbd belong to root... Thank you very much, Gana?l.