LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Error adding ACL to openldap database (https://www.linuxquestions.org/questions/linux-newbie-8/error-adding-acl-to-openldap-database-4175457808/)

zulkifal 04-11-2013 12:30 PM

Error adding ACL to openldap database
 
Hi Respected Experts ! I have been fighting with this issue before bringing it up here. Just a question, what is wrong with this procedure:

root@openldap-server$ vi /etc/acl.ldif
dn: olcDatabase={2}bdb,cn=config
changetype: modify
add: olcAccess
olcAccess: to attrs=userPassword,shadowLastChange
by anonymous auth
by * none

root@openldap-server$ ldapmodify -xWD cn=admin,dc=company,dc=com -f /etc/acl.ldif
ldapmodify: invalid format (line 5) entry: "olcDatabase={2}bdb,cn=config"

any guesses ?
Thanks


All times are GMT -5. The time now is 03:01 PM.