intore

Untitled

Apr 29th, 2012
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.23 KB | None | 0 0
  1. root@amahoro:~# smbldap-populate
  2. Populating LDAP directory for domain AMAHORO (S-1-5-21-251852451-2940789264-3475694606)
  3. (using builtin directory structure)
  4.  
  5. entry dc=amahoro,dc=bi already exist.
  6. entry ou=Users,dc=amahoro,dc=bi already exist.
  7. entry ou=Groups,dc=amahoro,dc=bi already exist.
  8. entry ou=Computers,dc=amahoro,dc=bi already exist.
  9. entry ou=Idmap,dc=amahoro,dc=bi already exist.
  10. adding new entry: uid=root,ou=Users,dc=amahoro,dc=bi
  11. failed to add entry: index generation failed at /usr/sbin/smbldap-populate line 498, <GEN1> line 58.
  12. adding new entry: uid=nobody,ou=Users,dc=amahoro,dc=bi
  13. failed to add entry: index generation failed at /usr/sbin/smbldap-populate line 498, <GEN1> line 89.
  14. adding new entry: cn=Domain Admins,ou=Groups,dc=amahoro,dc=bi
  15. failed to add entry: index generation failed at /usr/sbin/smbldap-populate line 498, <GEN1> line 101.
  16. adding new entry: cn=Domain Users,ou=Groups,dc=amahoro,dc=bi
  17. failed to add entry: index generation failed at /usr/sbin/smbldap-populate line 498, <GEN1> line 112.
  18. adding new entry: cn=Domain Guests,ou=Groups,dc=amahoro,dc=bi
  19. failed to add entry: index generation failed at /usr/sbin/smbldap-populate line 498, <GEN1> line 123.
  20. adding new entry: cn=Domain Computers,ou=Groups,dc=amahoro,dc=bi
  21. failed to add entry: index generation failed at /usr/sbin/smbldap-populate line 498, <GEN1> line 134.
  22. adding new entry: cn=Administrators,ou=Groups,dc=amahoro,dc=bi
  23. failed to add entry: index generation failed at /usr/sbin/smbldap-populate line 498, <GEN1> line 179.
  24. adding new entry: cn=Account Operators,ou=Groups,dc=amahoro,dc=bi
  25. failed to add entry: index generation failed at /usr/sbin/smbldap-populate line 498, <GEN1> line 201.
  26. adding new entry: cn=Print Operators,ou=Groups,dc=amahoro,dc=bi
  27. failed to add entry: index generation failed at /usr/sbin/smbldap-populate line 498, <GEN1> line 212.
  28. adding new entry: cn=Backup Operators,ou=Groups,dc=amahoro,dc=bi
  29. failed to add entry: index generation failed at /usr/sbin/smbldap-populate line 498, <GEN1> line 223.
  30. adding new entry: cn=Replicators,ou=Groups,dc=amahoro,dc=bi
  31. failed to add entry: index generation failed at /usr/sbin/smbldap-populate line 498, <GEN1> line 234.
  32. entry sambaDomainName=AMAHORO,dc=amahoro,dc=bi already exist. Updating it...
  33.  
  34. Please provide a password for the domain root:
  35. /usr/sbin/smbldap-passwd: user root doesn't exist
  36.  
  37. I used slapindex also, the output is:
  38.  
  39. stefano@amahoro:~$ /usr/sbin/slapindex
  40. /etc/ldap/slapd.conf: line 20: invalid path: Permission denied
  41. slapindex: bad configuration file!
  42.  
  43. This is my slapd.conf
  44.  
  45. #Basics
  46. include /etc/ldap/schema/core.schema
  47. include /etc/ldap/schema/cosine.schema
  48. include /etc/ldap/schema/nis.schema
  49. include /etc/ldap/schema/inetorgperson.schema
  50. include /etc/ldap/schema/samba.schema
  51.  
  52. pidfile /var/run/slapd/slapd.pid
  53. argsfile /var/run/slapd/slapd.args
  54. loglevel 256
  55.  
  56. modulepath /usr/lib/ldap
  57. moduleload back_hdb
  58.  
  59. #Database configuration
  60. database hdb
  61. suffix "dc=amahoro,dc=bi"
  62. rootdn "cn=Manager,dc=amahoro,dc=bi"
  63. rootpw {SSHA}XBLZ+TknuZHW3dirN2SE2fj3mYka3tkG
  64. directory /var/lib/ldap <----------------------------- LINE 20
  65. index uid,uidNumber,gidNumber,memberUid eq
  66. index cn,mail,surname,givenname eq,subinitial
  67. index sambaSID eq
  68. index sambaPrimaryGroupSID eq
  69.  
  70.  
  71. #ACLs
  72. access to attrs=userPassword
  73. by anonymous auth
  74. by self write
  75. by * none
  76.  
  77. access to *
  78. by dn.base="uid=nslcd_proc,ou=System,dc=amahoro,dc=bi" read
  79. by self write
  80. by * none
  81.  
  82.  
  83. These are the permissions of /var/lib/ldap/are
  84.  
  85. drwxr-x--- 2 openldap openldap 4096 Apr 29 09:57 ldap
  86.  
  87. -rw-r--r-- 1 openldap openldap 4096 Apr 29 09:57 alock
  88. -rw------- 1 openldap openldap 8192 Apr 28 12:18 cn.bdb
  89. -rw------- 1 openldap openldap 24576 Apr 29 09:57 __db.001
  90. -rw------- 1 openldap openldap 352256 Apr 29 09:57 __db.002
  91. -rw------- 1 openldap openldap 2629632 Apr 29 09:57 __db.003
  92. -rw------- 1 openldap openldap 163840 Apr 29 09:57 __db.004
  93. -rw------- 1 openldap openldap 876544 Apr 29 09:57 __db.005
  94. -rw------- 1 openldap openldap 32768 Apr 29 09:57 __db.006
  95. -rw-r--r-- 1 openldap openldap 96 Apr 23 17:34 DB_CONFIG
  96. -rw------- 1 openldap openldap 8192 Apr 28 14:23 dn2id.bdb
  97. -rw------- 1 openldap openldap 8192 Apr 28 14:23 gidNumber.bdb
  98. -rw------- 1 openldap openldap 32768 Apr 28 14:23 id2entry.bdb
  99. -rw------- 1 openldap openldap 10485760 Apr 29 09:57 log.0000000001
  100. -rw------- 1 openldap openldap 8192 Apr 28 12:18 mail.bdb
  101. -rw------- 1 openldap openldap 8192 Apr 28 14:00 memberUid.bdb
  102. -rw------- 1 openldap openldap 8192 Apr 28 11:52 objectClass.bdb
  103. -rw------- 1 openldap openldap 8192 Apr 28 14:23 sambaSID.bdb
  104. -rw------- 1 openldap openldap 8192 Apr 28 12:18 sn.bdb
  105. -rw------- 1 openldap openldap 8192 Apr 28 12:18 uid.bdb
  106. -rw------- 1 openldap openldap 8192 Apr 28 14:23 uidNumber.bdb
  107.  
  108.  
  109. other check:
  110.  
  111. using
  112. sudo strace /usr/sbin/slapindex
  113. i found the line:
  114. open("/var/lib/ldap/DUMMY", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = -1 EACCES (Permission denied)
  115. but in that directory there is not "DUMMY"
  116.  
  117. ideas?
Advertisement
Add Comment
Please, Sign In to add comment