[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: getent-passwd non visualizza utenti ldap



allora,

uso libnss-ldapd per squeeze, in fase di installazione di nslcd il file nss-ldapd.conf è sostituito da nslcd.conf.

ho fatto altre prove e credo ci siano dei problemi:

ho lanciato da una shell

nslcd -d
nslcd: DEBUG: add_uri(ldap://localhost:389)
nslcd: version 0.7.15 starting
nslcd: DEBUG: unlink() of /var/run/nslcd/socket failed (ignored): No such file or directory
nslcd: DEBUG: setgroups(0,NULL) done
nslcd: DEBUG: setgid(107) done
nslcd: DEBUG: setuid(105) done
nslcd: accepting connections

a questo punto da un'altra shell ho lanciato

getent passwd che visualizza solo gli utenti locali alla macchina.
questo è il seguito di nslcd -d:

nslcd: [8b4567] DEBUG: connection from pid=2055 uid=0 gid=0
nslcd: [8b4567] DEBUG: nslcd_passwd_all()
nslcd: [8b4567] DEBUG: myldap_search(base="dc=amahoro,dc=bi", filter="(objectClass=posixAccount)")
nslcd: [8b4567] DEBUG: ldap_initialize(ldap://localhost:389)
nslcd: [8b4567] DEBUG: ldap_set_rebind_proc()
nslcd: [8b4567] DEBUG: ldap_set_option(LDAP_OPT_PROTOCOL_VERSION,3)
nslcd: [8b4567] DEBUG: ldap_set_option(LDAP_OPT_DEREF,0)
nslcd: [8b4567] DEBUG: ldap_set_option(LDAP_OPT_TIMELIMIT,0)
nslcd: [8b4567] DEBUG: ldap_set_option(LDAP_OPT_TIMEOUT,0)
nslcd: [8b4567] DEBUG: ldap_set_option(LDAP_OPT_NETWORK_TIMEOUT,0)
nslcd: [8b4567] DEBUG: ldap_set_option(LDAP_OPT_REFERRALS,LDAP_OPT_ON)
nslcd: [8b4567] DEBUG: ldap_set_option(LDAP_OPT_RESTART,LDAP_OPT_ON)
nslcd: [8b4567] DEBUG: ldap_simple_bind_s("uid=nslcd_proc,ou=System,dc=amahoro,dc=bi","***") (uri="ldap://localhost:389";)
nslcd: [8b4567] ldap_result() failed: No such object

vi riporto i permessi dei file e cartelle relativi a nslcd:

ls -ld /etc/nslcd.conf /var/run/nslcd/ /var/run/nslcd/*
-rw-r----- 1 root  nslcd  635 Apr 21 11:54 /etc/nslcd.conf
drwxr-xr-x 2 nslcd nslcd 4096 Apr 21 11:55 /var/run/nslcd/
-rw-r--r-- 1 root  root     5 Apr 21 11:55 /var/run/nslcd/nslcd.pid
srw-rw-rw- 1 root  root     0 Apr 21 11:55 /var/run/nslcd/socket

se provo ad aprire il file /var/run/nslcd/socket compare il messaggio:
Error reading /var/run/nslcd/socket: No such device or address

Che ne pensate?

Grazie

On 04/21/2012 12:16 AM, Gian Carlo wrote:
Il 20/04/2012 16:10, stefano malini ha scritto:

Quando riavvio il processo nslcd...
Partiamo dalle cose stupide: quali sono i diritti di
"/etc/libnss-ldap.conf"?
E` leggibile da tutti?

gc :-)




Reply to: