[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
olcAccess syntax
- To: "openldap-technical@openldap.org" <openldap-technical@openldap.org>
- Subject: olcAccess syntax
- From: Igor Shmukler <igor.shmukler@gmail.com>
- Date: Wed, 18 Mar 2015 12:37:49 +0200
- 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=BHLVMbKmG2HyF94idFVPVwDnuCZLWxLyuluo+UWWlN0=; b=FBGYcUScESOdLxuk+iXbgDHgWdHNWoVO8n5Jl2A5l7XF6QGgJSl8Jww93AqgPzAH0I 4TLmDAIzDAJJSgE+NnMPwIfxGjMZU2epMcaUSaXXnyJOVN1t5DMhhHVFtfeZrCjRnJCe nYJKdxnF+bvj9+IsiSQE3T1NGOZKOVgfwViimVAwJg0DOWTjTqHh3/janbo1zdcLkKk1 RjvcHq4rT+L8RCo1uyxL6aYxuV1F0+MvrNUt2BsrLjXflvxhNe0PskoQaS8RtO6+N44b B5bIL1jM2qO9I/Qu5iF15WYe1tIVad/Daw4VnKoIEOLDo4aT6YgH9aHxcViCxMCyfFcV tOqg==
Hello,
Sorry. This is repost. I was unable to figure out what is wrong my
olcAccess configuration!
I am trying to configure my OpenLDAP so that cn=config has full
over-the-network write-access with a password.I thought at one point
that I got the permissions working. It turns out, those are not
working, now. Please say what I am doing wrong.
Last time, I had a similar problem with policy. Michael S. saved me a
bunch of time by advising to load ppolicy.ldif [with the appropriate
schema].
This is obviously no indicator of any kind, yet the problem might be
not in the LDIFs or ...
I understood that manage is the LDIF version of full permissions.
Found olcAccess syntax as "olcAccess: to <what> [ by <who>
[<accesslevel>] [<control>] ]+"
My OLC directives for ldapmodify(1) are below:
dn: olcDatabase={0}config,cn=config
changetype: modify
replace: olcAccess
olcAccess: {0}to * by dn.exact=gidNumber=0+uidNumber=0,cn=peercred,cn=external
,cn=auth manage by * break
olcAccess: {1}to * by self write by dn="cn=config" write by * read
dn: olcDatabase={0}config,cn=config
changetype: modify
add: olcRootPW
olcRootPW: {SSHA}HyVltU836iL4aR0P0C6O8eHkOJt8nYGK
I tried various combinations, like: olcAccess: {1}to * by dn=cn=config
manage by * read
The command syntax is valid. Yet my configuration not result in the desired
access rights. Instead, when ldapdelete(1) is invoked with -D
cn=config on records inside non-config databases, I get:
ldap_delete: Insufficient access (50)
additional info: no write access to parent
Please advise.
I thank everyone on the openldap-technical who has been reading my
messages. People on this list have been extremely helpful. Sorry to
continue being a nag.
Sincerely,
Igor Shmukler