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

Error starting slapd



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
 

Tnx.