Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # slapcat -o ldif-wrap=no -n1 > datas.ldif
- # 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
- real 0m0.121s
- user 0m0.000s
- sys 0m0.096s
- -################### 97.00% eta 27s elapsed 14m18s spd 181.6 k/s 541787fc <= str2entry: str2ad(modifyTim0140715214304Z): empty AttributeDescription
- *################### 97.05% eta 26s elapsed 14m19s spd 268.1 k/s slapadd: could not parse entry (line=16543287)
- "################### 97.05% eta 26s elapsed 14m19s spd 0.0 /s
- Closing DB...
- * Stopping OpenLDAP slapd
- ...done.
- * Starting OpenLDAP slapd
- ...done.
- stop: Unknown instance:
- cron start/running, process 14851
- # 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
- real 0m0.134s
- user 0m0.000s
- sys 0m0.105s
- _################## 92.18% eta 59s elapsed 11m31s spd 23.6 k/s
- -################### 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)
- slapadd: could not parse entry (line=16543287)
- .################### 97.05% eta 25s elapsed 13m51s spd 468.9 k/s
- Closing DB...
- * Stopping OpenLDAP slapd
- ...done.
- * Starting OpenLDAP slapd
- ...done.
- stop: Unknown instance:
- cron start/running, process 15091
- When i check, for example, the line (line=16543287) in my datas.ldif, i have:
- dn: uid=user.025center2,ou=People,dc=example,dc=com
- description: Operator
- l:
- preferredLanguage:
- st:
- cn: user.025center2
- givenName: name
- sn: surname
- uid: user.025center2
- mail: user.025center2@entreprise.com
- displayName: user.025center2
- gecos: user.025center2
- loginShell: /bin/bash
- uidNumber: 50453
- gidNumber: 513
- homeDirectory: /home/users/user.025center2
- host: *
- shadowExpire: 1577836800
- objectClass: top
- objectClass: person
- objectClass: organizationalPerson
- objectClass: inetOrgPerson
- objectClass: posixAccount
- objectClass: hostObject
- objectClass: shadowAccount
- userPassword:: password_user
- structuralObjectClass: inetOrgPerson
- entryUUID: bf0d4ee8-a0b4-1033-92fe-8f4f7bb1021d
- creatorsName: cn=admin,dc=edomex,dc=proacceso,dc=mx
- createTimestamp: 20140715214304Z
- entryCSN: 20140715214304.712125Z#000000#0e6#000000
- modifiersName: cn=admin,dc=edomex,dc=proacceso,dc=mx
- modifyTimestamp: 0140715214304Z
- entryCSN: 20140715214304.712125Z#000000#0e6#000000
- modifiersName: cn=admin,dc=edomex,dc=proacceso,dc=mx
- modifyTimestamp: 20140715214304Z
- ==> file corrupted
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement