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

ACL to create a CRUD to OpenLDAP



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi, all

I'm writing a little script to allow some people to manage LDAP users, as a CRUD. I created a user
uid=crud,ou=Applications,dc=domain,dc=org and I need to allow this user to add, modify and delete users that only belongs to
ou=FTPUsers,dc=domain,dc=org.

I wrote this ACL in slapd.conf:

access to dn.subtree="ou=FTPUsers,dc=domain,dc=org"
        by dn.exact="cn=Admin,dc=domain,dc=org" write
        by dn.exact="uid=crud,ou=Applications,dc=domain,dc=org" write
        by self write
        by * read

Testing ACL, I had:

[root@svr2021 openldap2.4]# slapacl2.4 -f /etc/openldap2.4/slapd.conf -b "uid=crud,ou=Applications,dc=domain,dc=org" -D
"uid=ftppinguim,ou=FTPUsers,dc=domain,dc=org" "uid/write:"
authcDN: "uid=ftppinguim,ou=ftpusers,dc=domain,dc=org"
write access to uid=: DENIED

So, the ACL is not working. If I ask to uid/read:, I have access allowed.

Later I changed my ACL to dn.children, but the result was the same.

I'm using LDAP 2.4 and I would like to know if somebody already did the same configuration or has tips or docs to read.

Thanks a lot

.0. MrBiTs - mrbits.dcf@gmail.com
..0 GnuPG  - http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x6EC818FC2B3CA5AB
000 http://www.mrbits.com.br


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAEBCAAGBQJMNIHOAAoJEG7IGPwrPKWrkuwH/juH+H2qAyF40BB6AhpLyEN8
OxYkrtZkNYdg/8H3RPNByYyOHIr+VwKutsvp9RD6By+kFSFj1WvcvgtyDby5P4cs
EgGYsYmtQuiK1VNz7EWbK5hOEzqGly8ipP5QZ+jqTa03TGbq1zWJy44ZytbArWSA
iXyzFeg09H/OdWFYITieSDKSFj35WJ8fIOJOaG+qQh5Sa1p5ti45TIQRZgtM9Drv
UL7GmEja2Gahal9Ka5fF3zxriLmpoCq8hOL2ZdhGdYfpG3KloBshcDkOFIXz/Z7W
B80oBJI+NHG4fIr5WWKl0U28DfFWKHWr8oCqes0tttx28QBA7c2nXzy7D/pKgmU=
=g3tQ
-----END PGP SIGNATURE-----