[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Error starting slapd





--On Friday, April 01, 2005 5:50 PM +0400 byte_c <byte_c@mail.ru> wrote:

Hi all. When i try to start slapd i get error
message:/usr/local/etc/openldap/slapd.conf: line 91: expecting "to" or
"by" got "access".The line 91 contains: access to * by * read.Here is my
slapd.conf:

          include /usr/share/openldap/schema/core.schema
          include /usr/share/openldap/schema/cosine.schema
          include /usr/share/openldap/schema/corba.schema
          include /usr/share/openldap/schema/inetorgperson.schema
          include /usr/share/openldap/schema/nis.schema
          include /usr/share/openldap/schema/openldap.schema
          include /usr/share/openldap/schema/qmail.schema
          include /etc/openldap/schema/authldap.schema
          pidfile         /var/run/ldap/slapd.pid
          argsfile        /var/run/ldap/slapd.args
          modulepath      /usr/lib/openldap
          database        ldbm
          suffix          "dc=home,dc=ru"
          rootdn          "cn=root,dc=home,dc=ru"
          rootpw          {MD5}6Q2kox8osDMVzi5zSKI6YQ==
          directory       /var/lib/ldap
          index   objectClass,uid,uidNumber,gidNumber     eq
          index   cn,mail,surname,givenname               eq,subinitial
          # logging
          loglevel 256
          # Basic ACL
          access to attr=userPassword
                  by self write
                  by anonymous auth
                  by dn="cn=courier,ou=daemons,dc=home,dc=ru" read
                  by * none
          access to attr=accountStatus
                  by dn="cn=courier,ou=daemons,dc=home,dc=ru" read
                  by dn="cn=postfix,ou=daemons,dc=home,dc=ru" read
          access to *   by * read


I suggest fixing this last ACL to match the formatting of your previous ACL's. slapd.conf is particularly sensitive to white space delimiters.


--Quanah


-- Quanah Gibson-Mount Principal Software Developer ITSS/Shared Services Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html

"These censorship operations against schools and libraries are stronger
than ever in the present religio-political climate. They often focus on
fantasy and sf books, which foster that deadly enemy to bigotry and blind
faith, the imagination." -- Ursula K. Le Guin