[Comm] ldap

Andriy Dobrovol's'kii =?iso-8859-1?q?dobr_=CE=C1_iop=2Ekiev=2Eua?=
Вт Мар 30 17:16:16 MSD 2004


Hi,
Кто-то может пояснить лдапьи ацэли? Не идёт каменный цветок... Не 
хочет позволять никому кроме админа сервер ничего читать. А в логах 
тока такое:
=> access_allowed: search access denied by =n
Если поставить отстрел на уровне прохождения ацэлей.
Если поднять до 256 то получим такое, например:
daemon: conn=1 fd=9 connection from IP=192.168.100.10:32782 
(IP=0.0.0.0:389) accepted.
Mar 30 14:57:28 dge slapd[440]: conn=1 op=0 BIND dn="" method=128
Mar 30 14:57:28 dge slapd[383]: deferring operation
Mar 30 14:57:28 dge slapd[440]: conn=1 op=0 RESULT tag=97 err=0 text=
Mar 30 14:57:28 dge slapd[440]: conn=1 op=1 SRCH base="ou=dge,o=ip 
nasu,o=nasu,c=ua" scope=2 filter="(cn=*)"
Mar 30 14:57:28 dge slapd[440]: conn=1 op=1 SEARCH RESULT tag=101 
err=0 text=
Mar 30 14:57:28 dge slapd[440]: conn=1 op=2 UNBIND
Mar 30 14:57:28 dge slapd[440]: conn=-1 fd=9 closed
Mar 30 14:58:26 dge slapd[383]: daemon: conn=2 fd=9 connection from 
IP=192.168.100.10:33181 (IP=0.0.0.0:389) accepted.
Mar 30 14:58:26 dge slapd[441]: conn=2 op=0 BIND 
dn="CN=DOBR,OU=DGE,O=IP NASU,O=NASU,C=UA" method=128
Mar 30 14:58:26 dge slapd[441]: conn=2 op=0 RESULT tag=97 err=0 text=
Mar 30 14:58:26 dge slapd[440]: conn=2 op=1 SRCH base="ou=dge,o=ip 
nasu,o=nasu,c=ua" scope=2 filter="(mail=*)"
Mar 30 14:58:26 dge slapd[440]: conn=2 op=1 SEARCH RESULT tag=101 
err=0 text=
При этом acl прописаны такие:
cat slapd.conf |grep ^[^#]
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/misc.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/openldap.schema
pidfile         /var/run/slapd.pid
argsfile        /var/run/slapd.args
  modulepath     /usr/lib/openldap
  TLSCertificateFile      /etc/openldap/ldap.pem
  TLSCertificateKeyFile   /etc/openldap/ldap.pem
  TLSCACertificateFile    /etc/openldap/ldap.pem
access to attr=userPassword
          by self write
          by anonymous auth
          by * none
access to * by self write
access to * by anonymous search
access to * by users read
access to dn="" by * search
database        ldbm
suffix         "ou=dge,o=ip nasu,o=nasu,c=ua"
rootdn         "cn=Manager,ou=dge,o=ip nasu,o=nasu,c=ua"
directory       /var/lib/ldap/bases
loglevel 256
index objectClass,uid,uidNumber,gidNumber     eq
index cn,mail,surname,givenname               eq,subinitial
И по ldapsearch -xLLL "cn=*" получаем отлуп.
No such object (32)
Хотя объектов с cn в базе хватает.

-- 
Rgrds,
Andriy
*********************************************************************
email: dobr at iop dot kiev dot ua            Kyiv, Ukraine
Phone: (380-44)   265-7824            Department of Gas Electronics
Fax:   (380-44)   265-2329             Institute of Physics of NASU
*********************************************************************



Подробная информация о списке рассылки community