Hello,
My source server :
openldap-clients-2.2.29-1.FC3 perl-Net-LDAP-0.3202-1.1.fc3.rf nss_ldap-220-3 openldap-devel-2.2.29-1.FC3 php-ldap-4.3.11-2.8.4.legacy smbldap-tools-0.9.1-1.1.fc3.rf openldap-2.2.29-1.FC3 openldap-servers-2.2.29-1.FC3
My destination server : openldap-2.3.27-8 openldap-devel-2.3.27-8 perl-LDAP-0.33-3.fc6 php-ldap-5.1.6-15.el5 python-ldap-2.2.0-2.1 nss_ldap-253-5.el5 openldap-servers-2.3.27-8
I export my database from source :
ldapsearch -LLL -x -h localhost -D "cn=Manager,dc=myDomain,dc=com" -w password -b "dc=myDomain,dc=com" > /backups/ldap/ldap-fs4-$TODAY.ldif
dn: dc=myDomain,dc=com objectClass: dcObject objectClass: organization o: myDomain dc: myDomain
dn: ou=Users,dc=myDomain,dc=com objectClass: organizationalUnit ou: Users
dn: ou=Groups,dc=myDomain,dc=com objectClass: organizationalUnit ou: Groups
dn: ou=Computers,dc=myDomain,dc=com objectClass: organizationalUnit ou: Computers
dn: cn=NextFreeUnixId,dc=myDomain,dc=com objectClass: inetOrgPerson objectClass: sambaUnixIdPool cn: NextFreeUnixId sn: NextFreeUnixId gidNumber: 1001 uidNumber: 1154
dn: uid=smbguest3,ou=Users,dc=myDomain,dc=com objectClass: inetOrgPerson objectClass: sambaSamAccount objectClass: posixAccount objectClass: shadowAccount
(...)
and try to add in my destination server : slapadd -l fichier.ldif
The system failed with this error :
str2entry: invalid value for attributeType objectClass #1 (syntax 1.3.6.1.4.1.1466.115.121.1.38) slapadd: could not parse entry (line=69)
The database is working well on source server...do y have an idea ?
Thank you very much ! Alain
--On Thursday, January 31, 2008 3:39 PM +0100 "asiani@free.fr" alain.siani@gmail.com wrote:
Hello,
My source server :
ldapsearch -LLL -x -h localhost -D "cn=Manager,dc=myDomain,dc=com" -w password -b "dc=myDomain,dc=com" > /backups/ldap/ldap-fs4-$TODAY.ldif
man slapcat
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
Ok i tried slapcat ...
service ldap stop slapcat > fichier.ldif service ldap start
slapcat -l fichier.ldif str2entry: invalid value for attributeType objectClass #1 (syntax 1.3.6.1.4.1.1466.115.121.1.38) slapadd: could not parse entry (line=77)
It does not work !
Thanks for your help ! Alain
Quanah Gibson-Mount wrote:
--On Thursday, January 31, 2008 3:39 PM +0100 "asiani@free.fr" alain.siani@gmail.com wrote:
Hello,
My source server :
ldapsearch -LLL -x -h localhost -D "cn=Manager,dc=myDomain,dc=com" -w password -b "dc=myDomain,dc=com" > /backups/ldap/ldap-fs4-$TODAY.ldif
man slapcat
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc
Zimbra :: the leader in open source messaging and collaboration
On Friday 01 February 2008 13:33:33 asiani@free.fr wrote:
Ok i tried slapcat ...
service ldap stop slapcat > fichier.ldif service ldap start
slapcat -l fichier.ldif str2entry: invalid value for attributeType objectClass #1 (syntax 1.3.6.1.4.1.1466.115.121.1.38) slapadd: could not parse entry (line=77)
So, most likely your new server is missing the schema definition for the objectclass in your ldif file on line 77, or for the attribute starting on line 77.
If you can't find out for yourself, please send the output of:
tail -n106 fichier.ldif|head -n30
so that someone can see what is in your file (since you haven't bothered to look where the error message tells you to look).
Regards, Buchan
openldap-technical@openldap.org