[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Access control
- To: openldap-technical@openldap.org
- Subject: Re: Access control
- From: harry.jede@arcor.de
- Date: Mon, 31 Jan 2011 11:52:14 +0100
- Content-disposition: inline
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=arcor.de; s=mail-in; t=1296471137; bh=+p5eA8+4cdeMvSBapK/ndGONm/SvAN+p/hmND1Oq0rI=; h=From:To:Subject:Date:References:In-Reply-To:MIME-Version: Content-Type:Content-Transfer-Encoding:Message-Id; b=tfLkacuOPmYMmnsEfC6tPsWczmIbdj2YJu5NBo8Wsmoo1+fUK/B/aQydsHXe6gCQf 1c08UC+3ojnsLNMR08HwQbk0chA/U0n8RF7xrnVGnsZbFrRM9SvXZDW8b2wHEOlfiP sv5V+neUbseVb2hQuPYEtOlGxGURUyXd11WPqt1g=
- In-reply-to: <ii4p4u$6tj$1@dough.gmane.org>
- References: <ii4p4u$6tj$1@dough.gmane.org>
- User-agent: KMail/1.9.9
Thomas Schweikle wrote:
> Hi!
>
> I am trying to set up access control for an OpenLDAP server. I'd
> like to use a Group to set up users allowed to access and write to
> entries inside my tree:
>
> I've created the group:
> dn: cn=administrators,dc=example,dc=com
> cn: administrators
> objectclass: groupOfNames (important for the group acl feature)
> member: cn=user1,ou=Users,dc=example,dc=com
> member: cn=user2,ou=Users,dc=example,dc=com
>
> in
> dn: olcDatabase=hdb,cn=config
> objectClass: olcDatabaseConfig
> objectClass: olcHdbConfig
> olcDatabase: hdb
> olcDbDirectory: /var/lib/ldap
> olcSuffix: dc=example,dc=com
> olcRootDN: cn=adm,dc=example,dc=com
> olcRootPW: ${admpw}
> olcAccess: to attrs=userPassword,shadowLastChange,krbPrincipalKey
> by group.exact="cn=administrators,dc=example,dc=com" write
> by dn="cn=adm,dc=example,dc=com" write
> by anonymous auth
> by self write
> by * none
> olcAccess: to dn.base=""
> by * read
> olcAccess: to *
> by group.exact="cn=administrators,dc=example,dc=com" write
> by dn="cn=adm,dc=example,dc=com" write
> by * read
>
> Now trying to access "userPassword" from any user inside the tree
> "ou=Users,dc=example,dc=com".
> 1. The password field is empty -- it should hold a value
> 2. Entering a value, then pressing apply: "Error modifying
> 'cn=user3,ou=Users,dc=xompu,dc=de': Insufficient access
>
> I'd expected to have access to "userPassword" and I am allowed to
> write this value. Why does it not work if I log in with user1?
The openldap server is unable to authenticate user1 unless user1 has a
valid password. I assume that adm is your admin DN. Try to set an
initial password for user1 with the adm account.
And then verify that a search operation is successfull before trying to
write.
In your acls you use "dc=example,dc=com" as suffix, but your real suffix
is "dc=xompu,dc=de". Isn't it?
--
Regards
Harry Jede