[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
replace: olcAccess
- To: "openldap-technical@openldap.org" <openldap-technical@openldap.org>
- Subject: replace: olcAccess
- From: Igor Shmukler <igor.shmukler@gmail.com>
- Date: Tue, 6 Jan 2015 13:56:23 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=33AP1uM75GoFc+pHAHwYFv0gHMMNestXLBF0Ki8AuvY=; b=FSBJxiFc0TBuFRM0EEvmK8K+4OLIK6cYJ90juhL2RjJEvSmpa8e5dKvJjeTJRvjGjt Jesz31btvDigSRMW90yDcR2uaCr3LP8GaQB63g4HfKMV3Yv6GG/IWnVNjDL7XSH9bKxr H+xwhFfUA8GHQpy97Z2KteEJDaBPD2Nk+9r1Qw7/tWEVDxtoN6z7XneCoSieErrhTrNJ z0MzPXa4wpK4XBweKmNyHyqcjTNDYWVg0OlKiABvy4jvrpKnT7b4AMyl6N4xDgL2o8uz ogPwJFnBMK+vTOTCSj5n0ZmIehqoTL/LvTzPAmrtm/tsF7717jcsrDyf7wYH0ARUA3zB aekA==
Hello,
With help from various generous people on this list, I am finishing up
with my project. Among other things, I need to perform a
non-interactive OpenLDAP configuration.
I install the server with apptitude and have LDIFs to change the root
password and suffix. However, it seems that I still need to correctly
adjust olcAccess so my searches work.
The olcAccess is the part that is not working as I expected. My LDIF
runs just fine changing the name, and domain suffix. Yet, after the
operation is complete, ldapsearch(1) start returning errors. When the
suffix was nodomain [default left by the install] searches worked.
Please advise. The LDIF is below:
dn: olcDatabase={1}hdb,cn=config
changetype: modify
replace: olcAccess
olcAccess: {0}to attrs=userPassword,shadowLastChange by
dn="cn=admin,dc=example,dc=com" write by anonymous auth by self write
by * none
olcAccess: {1}to dn.base="" by * read
olcAccess: {2}to * by self write by dn="cn=admin,dc=example,dc=com"
write by * read
dn: olcDatabase={1}hdb,cn=config
changetype: modify
replace: olcSuffix
olcSuffix: dc=example,dc=com
dn: olcDatabase={1}hdb,cn=config
changetype: modify
replace: olcRootDN
olcRootDN: cn=admin,dc=example,dc=com
I don't see any errors. Nothing throws me off when I run slapcat(8).
Please advise.
Thank you,
Igor Shmukler