Advertisement
gnu699

slapadd_fail

Sep 25th, 2014
622
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.75 KB | None | 0 0
  1. # slapcat -o ldif-wrap=no -n1 > datas.ldif
  2.  
  3. # time rm /var/lib/ldap/openldap-data/* ; sleep 2 ; slapadd -wq -n1 -l datas.ldif ; sleep 4 ; chown -R openldap:openldap /var/lib/ldap/* ; sleep 5 ; service slapd restart ; service cron restart
  4.  
  5. real 0m0.121s
  6. user 0m0.000s
  7. sys 0m0.096s
  8. -################### 97.00% eta 27s elapsed 14m18s spd 181.6 k/s 541787fc <= str2entry: str2ad(modifyTim0140715214304Z): empty AttributeDescription
  9. *################### 97.05% eta 26s elapsed 14m19s spd 268.1 k/s slapadd: could not parse entry (line=16543287)
  10. "################### 97.05% eta 26s elapsed 14m19s spd 0.0 /s
  11. Closing DB...
  12. * Stopping OpenLDAP slapd
  13. ...done.
  14. * Starting OpenLDAP slapd
  15. ...done.
  16. stop: Unknown instance:
  17. cron start/running, process 14851
  18.  
  19. # time rm /var/lib/ldap/openldap-data/* ; sleep 2 ; slapadd -wq -n1 -l datas.ldif ; sleep 4 ; chown -R openldap:openldap /var/lib/ldap/* ; sleep 5 ; service slapd restart ; service cron restart
  20.  
  21. real 0m0.134s
  22. user 0m0.000s
  23. sys 0m0.105s
  24. _################## 92.18% eta 59s elapsed 11m31s spd 23.6 k/s
  25. -################### 97.01% eta 26s elapsed 13m51s spd 506.6 k/s 54178c9b str2entry: invalid value for attributeType modifyTimestamp #0 (syntax 1.3.6.1.4.1.1466.115.121.1.24)
  26. slapadd: could not parse entry (line=16543287)
  27. .################### 97.05% eta 25s elapsed 13m51s spd 468.9 k/s
  28. Closing DB...
  29. * Stopping OpenLDAP slapd
  30. ...done.
  31. * Starting OpenLDAP slapd
  32. ...done.
  33. stop: Unknown instance:
  34. cron start/running, process 15091
  35.  
  36.  
  37. When i check, for example, the line (line=16543287) in my datas.ldif, i have:
  38.  
  39. dn: uid=user.025center2,ou=People,dc=example,dc=com
  40. description: Operator
  41. l:
  42. preferredLanguage:
  43. st:
  44. cn: user.025center2
  45. givenName: name
  46. sn: surname
  47. uid: user.025center2
  48. mail: user.025center2@entreprise.com
  49. displayName: user.025center2
  50. gecos: user.025center2
  51. loginShell: /bin/bash
  52. uidNumber: 50453
  53. gidNumber: 513
  54. homeDirectory: /home/users/user.025center2
  55. host: *
  56. shadowExpire: 1577836800
  57. objectClass: top
  58. objectClass: person
  59. objectClass: organizationalPerson
  60. objectClass: inetOrgPerson
  61. objectClass: posixAccount
  62. objectClass: hostObject
  63. objectClass: shadowAccount
  64. userPassword:: password_user
  65. structuralObjectClass: inetOrgPerson
  66. entryUUID: bf0d4ee8-a0b4-1033-92fe-8f4f7bb1021d
  67. creatorsName: cn=admin,dc=edomex,dc=proacceso,dc=mx
  68. createTimestamp: 20140715214304Z
  69. entryCSN: 20140715214304.712125Z#000000#0e6#000000
  70. modifiersName: cn=admin,dc=edomex,dc=proacceso,dc=mx
  71. modifyTimestamp: 0140715214304Z
  72. entryCSN: 20140715214304.712125Z#000000#0e6#000000
  73. modifiersName: cn=admin,dc=edomex,dc=proacceso,dc=mx
  74. modifyTimestamp: 20140715214304Z
  75.  
  76. ==> file corrupted
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement