I am using LAM as an interface for openLDAP.
I am able to log in using the admin account I created in the config, but I am looking to allow other users to log in.
To this end, I am trying to create ACL's to permit a group (or even individuals!) to admin the ldap.
My current config is:
{0}to * by * break
{1}to * by dn.exact=gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth manage by * break
{2}to * by dn.exact=uid=<user>,ou=People,dc=<mysite>,dc=com manage by * break
When I try, I simply get:
Was unable to add attributes to DN: uid=<user>,ou=People,dc=<mysite>,dc=com.
LDAP error, server says: Insufficient access - Insufficient access
I can log in and see the data, but I am unable to implement changes. Shouldn't the manage
allow me to?
Additional:
I have set the openLDAP to use the olc as opposed to the slapd.conf.
I am accessing a php interface (LDAP Account Manager Pro) which I bind using the diradmin, but I want to allow a limited set of users (admin) to bind using their own credentials and still have manage permissions to everything in the ldap (not the cn=config).
Doing slapcat -b cn=config
returns:
5d499450 could not open config file "/etc/openldap/slapd.conf": Permission denied (13) slapcat: bad configuration file!
But this file doesn't exist right now, so I'd expect this, right?