Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Autenticazione locale con OpenLDAP
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
UnoSD
Apprentice
Apprentice


Joined: 27 Jun 2011
Posts: 273

PostPosted: Fri Apr 06, 2012 11:55 am    Post subject: Autenticazione locale con OpenLDAP Reply with quote

Salve a tutti,

sto facendo delle prove (tutte fallite) per cercare di creare un server che permetta a dei client di autenticarsi tramite credenziali in un database creato da OpenLDAP.

Purtroppo non riesco nemmeno a far funzionare correttamente il demone slapd che, dopo averlo configurato, parte perfettamente, ma se provo la semplice query: "ldapsearch -x -D "cn=Manager,dc=genfic,dc=com" -W" mi dice "Invalid credentials"...

Ho provato con varie configurazioni, ma qui posto l'ultima:

ldap.conf:
Code:
BASE   dc=unosd
URI   ldap://127.0.0.1


slapd.conf:
Code:
pidfile /var/run/openldap/slapd.pid
argsfile /var/run/openldap/slapd.args

database bdb
suffix "dc=unosd"
rootdn "cn=Manager,dc=unosd"
rootpw "{SSHA}PASSWORDCRIPTATA"
directory "/var/lib/openldap-ldbm"
index objectClass eq


Il file slapd.conf ho provato anche a copiarlo pari pari da quello di esempio nella guida Gentoo (http://www.gentoo.org/doc/it/ldap-howto.xml) ma non funziona lo stesso:
Code:
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/misc.schema

pidfile /var/run/openldap/slapd.pid
argsfile /var/run/openldap/slapd.args

serverID 0
#Usato in caso di replicazioni

loglevel 0

## Controlli di accesso
access to dn.base="" by * read
access to dn.base="cn=Subschema" by * read
access to *
  by self write
  by users read
  by anonymous read

## Definizione database
database hdb
suffix "dc=unosd"
checkpoint 32 30
rootdn "cn=Manager,dc=unosd"
rootpw "{SSHA}PASSCRIPTATA"
directory "/var/lib/openldap-ldbm"
index objectClass eq

index entryCSN eq
index entryUUID eq


overlay syncprov
syncprov-checkpoint 100 10
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum