From Redhat, 2 Years ago, written in Plain Text.
  1. [root@sal-lnx01 ~]# ldapadd -x -W -D uid=maheshwar.reddy,ou=users,o=redhot,dc=redhot,dc=com -f test.ldif
  2. Enter LDAP Password:
  3. adding new entry "uid=srikanth.reddy,ou=users,o=redhot,dc=redhot,dc=com"
  4. ldap_add: Insufficient access (50)
  5.         additional info: no write access to parent
  6.  
  7. [root@sal-lnx01 ~]# slapcat -n0 | tail -n10
  8. olcAccess: {1}to dn.base="" by * read
  9. olcAccess: {2}to * by dn="cn=Manager,dc=redhot,dc=com" write by * read
  10. olcAccess: {3}to * by group/organizationalRole/roleOccupant="cn=ldap_writers
  11.  ,ou=access_control,o=redhot,dc=redhot,dc=com" write
  12. olcSuffix: dc=redhot,dc=com
  13. olcRootDN: cn=Manager,dc=redhot,dc=com
  14. entryCSN: 20161017124350.966527Z#000000#000#000000
  15. modifiersName: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
  16. modifyTimestamp: 20161017124350Z
  17.  
  18. [root@sal-lnx01 ~]# cat grantaccess.ldif
  19. dn: olcDatabase={2}bdb,cn=config
  20. changetype: modify
  21. add: olcAccess
  22. olcAccess: to * by group/organizationalRole/roleOccupant="cn=ldap_writers,ou=access_control,o=redhot,dc=redhot,dc=com" write
  23. [root@sal-lnx01 ~]#
  24.  

Replies to Linux rss

Title Name Language When
Re: Linux Redhat text 2 Years ago.
captcha