Advertisement
Guest User

Untitled

a guest
Apr 8th, 2017
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.68 KB | None | 0 0
  1. STDERR: SASL/EXTERNAL authentication started
  2. SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
  3. SASL SSF: 0
  4. ldap_add: Insufficient access (50)
  5. additional info: no write access to parent
  6.  
  7. include /etc/ldap/schema/core.schema
  8. include /etc/ldap/schema/cosine.schema
  9. include /etc/ldap/schema/inetorgperson.schema
  10. include /etc/ldap/schema/nis.schema
  11.  
  12. pidfile /var/run/slapd/slapd.pid
  13. argsfile /var/run/slapd/slapd.args
  14.  
  15. loglevel 0
  16.  
  17. modulepath /usr/lib/ldap
  18. moduleload back_hdb
  19.  
  20. sizelimit 500
  21. tool-threads 1
  22.  
  23. database hdb
  24. suffix "dc=a6,dc=com"
  25. rootdn "cn=admin,dc=a6,dc=com"
  26. rootpw {SSHA}a6a6aa66a6a6a6a6a6a6a6
  27. directory "/var/lib/ldap"
  28. lastmod on
  29.  
  30. dbconfig set_cachesize 0 31457280 0
  31.  
  32. dbconfig set_lk_max_objects 1500
  33. dbconfig set_lk_max_locks 1500
  34. dbconfig set_lk_max_lockers 1500
  35.  
  36. index default pres,eq,approx,sub
  37. index objectClass eq
  38. index cn,ou,sn,uid,l,mail,gecos,memberUid,description
  39. index loginShell,homeDirectory pres,eq,approx
  40. index uidNumber,gidNumber pres,eq
  41.  
  42. dn: dc=a6,dc=com
  43. objectClass: top
  44. objectClass: dcObject
  45. objectClass: organization
  46. dc: a6
  47. o: a6
  48. description: A6
  49.  
  50. dn: cn=admin,dc=a6,dc=com
  51. cn: admin
  52. description: LDAP administrator
  53. objectclass: simpleSecurityObject
  54. objectclass: organizationalRole
  55. userpassword: {SSHA}Aa6a6aa66a6a6a6a6a6a6a6
  56.  
  57. dn: ou=users,dc=a6,dc=com
  58. objectClass: top
  59. objectClass: organizationalUnit
  60. ou: users
  61.  
  62. dn: ou=groups,dc=a6,dc=com
  63. objectClass: top
  64. objectClass: organizationalUnit
  65. ou: groups
  66.  
  67. dn: cn=administrators,ou=groups,dc=a6,dc=com
  68. objectClass: posixGroup
  69. cn: administrators
  70. gidNumber: 500
  71.  
  72. dn: uid=co,ou=administrators,dc=a6,dc=com
  73. objectclass: inetOrgPerson
  74. objectclass: posixAccount
  75. cn: co
  76. gidnumber: 500
  77. givenname: Jack
  78. homedirectory: /home/co
  79. loginshell: /bin/bash
  80. uid: co
  81. uidnumber: 1000
  82. userpassword: {SSHA}a6a6aa66a6a6a6a6a6a6a6
  83.  
  84. SASL/EXTERNAL authentication started
  85. SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
  86. SASL SSF: 0
  87. adding new entry "dc=example,dc=com"
  88. ldap_add: Insufficient access (50)
  89. additional info: no write access to parent
  90.  
  91. CMD: cat base.ldif
  92.  
  93. dn: dc=example,dc=com
  94. objectClass: dcObject
  95. objectclass: organization
  96. o: example.com
  97. dc: example
  98. description: My LDAP Root
  99.  
  100. dn: cn=admin,dc=example,dc=com
  101. objectClass: simpleSecurityObject
  102. objectClass: organizationalRole
  103. cn: admin
  104. userPassword: secret
  105. description: LDAP administrator
  106.  
  107. ldapadd -x -D 'cn=admin,dc=example,dc=com' -w secret -H ldapi:/// -f base.ldif
  108.  
  109. adding new entry "dc=example,dc=com"
  110.  
  111. adding new entry "cn=admin,dc=example,dc=com"
  112.  
  113. to * by dn.exact=gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth write by * break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement