Guest

jonkke

By: a guest on Apr 26th, 2010  |  syntax: None  |  size: 0.68 KB  |  hits: 183  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1. root@ltsp42:~/ldap# cat acls.ldif
  2. dn: olcDatabase={1}hdb,cn=config
  3. add: olcAccess
  4. olcAccess: {0}to attrs=userPassword,shadowLastChange by dn="uid=admin,ou=People,dc=keuruu,dc=fi" write by anonymous auth by self write by * none
  5. olcAccess: {1}to dn.subtree="" by * read
  6. olcAccess: {2}to * by dn="uid=admin,ou=People,dc=edu,dc=keuruu,dc=fi" write by * read
  7.  
  8. root@ltsp42:~/ldap# sudo ldapadd -Y EXTERNAL -H ldapi:/// -f acls.ldif
  9. SASL/EXTERNAL authentication started
  10. SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
  11. SASL SSF: 0
  12. adding new entry "olcDatabase={1}hdb,cn=config"
  13. ldap_add: Undefined attribute type (17)
  14.         additional info: add: attribute type undefined