Hello Team,
I have a problem with OpenLDAP exporting and importing in to a different machine.
When I use slapadd -l /backupfilname.ldif I used to get below error message
_ 0.16% eta 05m31s elapsed none spd 6.7 k/s 51f0c75b str2entry: invalid value for attributeType objectClass #2 (syntax 1.3.6.1.4.1.1466.115.121.1.38) slapadd: could not parse entry (line=168) . 0.28% eta 04m29s elapsed none spd 12.1 k/s Closing DB...
Below is the line 168
168 dn: ou=Idmap,dc=example,dc=test,dc=com 169 objectClass: top 170 objectClass: organizationalUnit 171 objectClass: sambaUnixIdPool 172 ou: Idmap 173 structuralObjectClass: organizationalUnit 174 entryUUID: 22da7a76-16e0-102f-87b0-799f55e47d38 175 creatorsName: cn=admin,dc=example,dc=test,dc=com 176 createTimestamp: 20100628090609Z 177 uidNumber: 1000 178 gidNumber: 20001 179 entryCSN: 20100814084304.552975Z#000000#002#000000 180 modifiersName: cn=admin,dc=example,dc=test,dc=com 181 modifyTimestamp: 20100814084304Z
I already installed samba.schema.
what could be the reason then.
Am Thu, 25 Jul 2013 10:51:25 +0400 schrieb 25Dollar Tech 25dollartechhelp@gmail.com:
Hello Team,
I have a problem with OpenLDAP exporting and importing in to a different machine.
When I use slapadd -l /backupfilname.ldif I used to get below error message
_ 0.16% eta 05m31s elapsed none spd 6.7 k/s 51f0c75b str2entry: invalid value for attributeType objectClass #2 (syntax 1.3.6.1.4.1.1466.115.121.1.38) slapadd: could not parse entry (line=168) . 0.28% eta 04m29s elapsed none spd 12.1 k/s Closing DB...
Below is the line 168
168 dn: ou=Idmap,dc=example,dc=test,dc=com 169 objectClass: top 170 objectClass: organizationalUnit 171 objectClass: sambaUnixIdPool 172 ou: Idmap 173 structuralObjectClass: organizationalUnit 174 entryUUID: 22da7a76-16e0-102f-87b0-799f55e47d38 175 creatorsName: cn=admin,dc=example,dc=test,dc=com 176 createTimestamp: 20100628090609Z 177 uidNumber: 1000 178 gidNumber: 20001 179 entryCSN: 20100814084304.552975Z#000000#002#000000 180 modifiersName: cn=admin,dc=example,dc=test,dc=com 181 modifyTimestamp: 20100814084304Z
I already installed samba.schema.
what could be the reason then.
Probably the wrong samba schema installed. There are 2 samba schema files around, a samba.schema which has been implemented for samba 2.x and a samba3.schema. Check whether the objctclass sambaUnixIdPool is included in your samba.schema file.
-Dieter
openldap-technical@openldap.org