Quoting Quanah Gibson-Mount <[EMAIL PROTECTED]>:
--On Tuesday, December 05, 2006 1:26 PM -0500
[EMAIL PROTECTED] wrote:
version: 2
#
# filter: (objectclass=*)
# requesting: ALL
#
# people, harrisonburg, k12, va, us
dn: ou=people, dc=harrisonburg,dc=k12,dc=va,dc=us
objectClass: top
objectClass: organizationalUnit
ou: people
# aadamek, people, harrisonburg, k12, va, us
objectClass: posixAccount,dc=harrisonburg,dc=k12,dc=va,dc=us
objectClass: top
objectClass: shadowAccount
objectClass: inetLocalMailRecipient
objectClass: person
mailLocalAddress: [EMAIL PROTECTED]
userPassword:: somepassword
mail: [EMAIL PROTECTED]
sn: User, Some/Someuser
location: SES suser
This looks like either
(a) This is LDIF from an ldapsearch of your server, which means things
loaded without error?
or
(b) You used ldapsearch to create the LDIF file you are loading
If (b), you generally should use slapcat. If (a), then how are you
generating the error you are seeing?
I will note that the LDIF format specifies there should be a blank line
separating entries, which is missing in the above snippet.
#######################################################################
# ldbm and/or bdb database definitions
#######################################################################
backend ldbm
database ldbm
Don't use the LDBM database type. It is unstable and may lead to data
corruption. Use bdb or hdb.
I really appreciate the help. If I run slapadd -l -d 5 mail.ldifwould
the output of that help?
Possibly.
Here's example of my LDIF output via slapcat:
dn: dc=stanford,dc=edu
objectClass: dcObject
objectClass: organization
o: Stanford University
dc: stanford
l: Palo Alto
structuralObjectClass: organization
entryUUID: e67c08ca-adc9-102a-8f07-03156481d080
creatorsName: cn=manager,dc=stanford,dc=edu
modifiersName: cn=manager,dc=stanford,dc=edu
createTimestamp: 20060722123236Z
modifyTimestamp: 20060722123236Z
entryCSN: 20060722123236Z#000000#00#000000
contextCSN: 20061205113127Z#000000#00#000000
dn: cn=people,dc=stanford,dc=edu
objectClass: top
objectClass: organizationalRole
cn: people
structuralObjectClass: organizationalRole
entryUUID: e68e78f2-adc9-102a-8f0c-03156481d080
creatorsName: cn=manager,dc=stanford,dc=edu
modifiersName: cn=manager,dc=stanford,dc=edu
createTimestamp: 20060722123236Z
modifyTimestamp: 20060722123236Z
entryCSN: 20060722123236Z#000005#00#000000
As you can see, there are no comment fields (those beginning with the #
sign), and there are blank lines between the entries.
It is an ldif file from the mailserver created using slapcat. I
removed the spaces becauses slapadd complained about each one. Even
with slapadd -c -l. Slapd.conf on mailserver has several indices that
I dont have on the new version.
[EMAIL PROTECTED] ~]# slapadd -d 1 -l ldap-backup-01.ldif
slapadd init: initiated tool.
slap_sasl_init: initialized!
bdb_initialize: initialize BDB backend
bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December 3, 2003)
bdb_initialize: initialize BDB backend
bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December 3, 2003)
dnNormalize: <cn=Subschema>
<<< dnNormalize: <cn=subschema>
dnPrettyNormal: <ou=people,dc=harrisonburg,dc=k12,dc=va,dc=us>
<<< dnPrettyNormal: <ou=people,dc=harrisonburg,dc=k12,dc=va,dc=us>,
<ou=people,dc=harrisonburg,dc=k12,dc=va,dc=us>
dnPrettyNormal: <uid=rob,ou=people,dc=harrisonburg,dc=k12,dc=va,dc=us>
<<< dnPrettyNormal:
<uid=rob,ou=people,dc=harrisonburg,dc=k12,dc=va,dc=us>,
<uid=rob,ou=people,dc=harrisonburg,dc=k12,dc=va,dc=us>
dnNormalize: <uid=rob,ou=people,dc=harrisonburg,dc=k12,dc=va,dc=us>
<<< dnNormalize: <uid=rob,ou=people,dc=harrisonburg,dc=k12,dc=va,dc=us>
dnNormalize: <uid=rob,ou=people,dc=harrisonburg,dc=k12,dc=va,dc=us>
<<< dnNormalize: <uid=rob,ou=people,dc=harrisonburg,dc=k12,dc=va,dc=us>
/etc/openldap/slapd.conf: line 107: unknown directive "write" inside
backend database definition (ignored)
matching_rule_use_init
1.2.840.113556.1.4.804 (integerBitOrMatch): matchingRuleUse: (
1.2.840.113556.1.4.804 NAME 'integerBitOrMatch' APPLIES ( oncRpcNumber
$ ipProtocolNumber $ ipServicePort $ shadowFlag $ shadowExpire $
shadowInactive $ shadowWarning $ shadowMax $ shadowMin $
shadowLastChange $ gidNumber $ uidNumber $ mailPreferenceOption $
supportedLDAPVersion ) )
1.2.840.113556.1.4.803 (integerBitAndMatch): matchingRuleUse: (
1.2.840.113556.1.4.803 NAME 'integerBitAndMatch' APPLIES (
oncRpcNumber $ ipProtocolNumber $ ipServicePort $ shadowFlag $
shadowExpire $ shadowInactive $ shadowWarning $ shadowMax $ shadowMin
$ shadowLastChange $ gidNumber $ uidNumber $ mailPreferenceOption $
supportedLDAPVersion ) )
1.3.6.1.4.1.1466.109.114.2 (caseIgnoreIA5Match): matchingRuleUse:
( 1.3.6.1.4.1.1466.109.114.2 NAME 'caseIgnoreIA5Match' APPLIES (
nisMapEntry $ bootFile $ macAddress $ ipNetmaskNumber $
ipNetworkNumber $ ipHostNumber $ memberNisNetgroup $ memberUid $
loginShell $ homeDirectory $ gecos $ janetMailbox $ cNAMERecord $
sOARecord $ nSRecord $ mXRecord $ mDRecord $ aRecord $ email $
associatedDomain $ dc $ mail $ altServer ) )
1.3.6.1.4.1.1466.109.114.1 (caseExactIA5Match): matchingRuleUse:
( 1.3.6.1.4.1.1466.109.114.1 NAME 'caseExactIA5Match' APPLIES (
nisMapEntry $ bootFile $ macAddress $ ipNetmaskNumber $
ipNetworkNumber $ ipHostNumber $ memberNisNetgroup $ memberUid $
loginShell $ homeDirectory $ gecos $ janetMailbox $ cNAMERecord $
sOARecord $ nSRecord $ mXRecord $ mDRecord $ aRecord $ email $
associatedDomain $ dc $ mail $ altServer ) )
2.5.13.35 (certificateMatch): matchingRuleUse: ( 2.5.13.35 NAME
'certificateMatch' APPLIES ( cACertificate $ userCertificate ) )
2.5.13.34 (certificateExactMatch): matchingRuleUse: ( 2.5.13.34
NAME 'certificateExactMatch' APPLIES ( cACertificate $ userCertificate
) )
2.5.13.30 (objectIdentifierFirstComponentMatch): matchingRuleUse:
( 2.5.13.30 NAME 'objectIdentifierFirstComponentMatch' APPLIES (
supportedApplicationContext $ ldapSyntaxes $ supportedFeatures $
supportedExtension $ supportedControl ) )
2.5.13.29 (integerFirstComponentMatch): matchingRuleUse: (
2.5.13.29 NAME 'integerFirstComponentMatch' APPLIES ( oncRpcNumber $
ipProtocolNumber $ ipServicePort $ shadowFlag $ shadowExpire $
shadowInactive $ shadowWarning $ shadowMax $ shadowMin $
shadowLastChange $ gidNumber $ uidNumber $ mailPreferenceOption $
supportedLDAPVersion ) )
2.5.13.27 (generalizedTimeMatch): matchingRuleUse: ( 2.5.13.27
NAME 'generalizedTimeMatch' APPLIES ( modifyTimestamp $
createTimestamp ) )
2.5.13.24 (protocolInformationMatch): matchingRuleUse: (
2.5.13.24 NAME 'protocolInformationMatch' APPLIES protocolInformation )
2.5.13.23 (uniqueMemberMatch): matchingRuleUse: ( 2.5.13.23 NAME
'uniqueMemberMatch' APPLIES uniqueMember )
2.5.13.22 (presentationAddressMatch): matchingRuleUse: (
2.5.13.22 NAME 'presentationAddressMatch' APPLIES presentationAddress )
2.5.13.20 (telephoneNumberMatch): matchingRuleUse: ( 2.5.13.20
NAME 'telephoneNumberMatch' APPLIES ( pager $ mobile $ homePhone $
telephoneNumber ) )
2.5.13.17 (octetStringMatch): matchingRuleUse: ( 2.5.13.17 NAME
'octetStringMatch' APPLIES userPassword )
2.5.13.16 (bitStringMatch): matchingRuleUse: ( 2.5.13.16 NAME
'bitStringMatch' APPLIES x500UniqueIdentifier )
2.5.13.14 (integerMatch): matchingRuleUse: ( 2.5.13.14 NAME
'integerMatch' APPLIES ( oncRpcNumber $ ipProtocolNumber $
ipServicePort $ shadowFlag $ shadowExpire $ shadowInactive $
shadowWarning $ shadowMax $ shadowMin $ shadowLastChange $ gidNumber $
uidNumber $ mailPreferenceOption $ supportedLDAPVersion ) )
2.5.13.13 (booleanMatch): matchingRuleUse: ( 2.5.13.13 NAME
'booleanMatch' APPLIES hasSubordinates )
2.5.13.11 (caseIgnoreListMatch): matchingRuleUse: ( 2.5.13.11
NAME 'caseIgnoreListMatch' APPLIES ( homePostalAddress $
registeredAddress $ postalAddress ) )
2.5.13.8 (numericStringMatch): matchingRuleUse: ( 2.5.13.8 NAME
'numericStringMatch' APPLIES ( internationaliSDNNumber $ x121Address ) )
2.5.13.7 (caseExactSubstringsMatch): matchingRuleUse: ( 2.5.13.7
NAME 'caseExactSubstringsMatch' APPLIES ( dnQualifier $
destinationIndicator $ serialNumber ) )
2.5.13.6 (caseExactOrderingMatch): matchingRuleUse: ( 2.5.13.6
NAME 'caseExactOrderingMatch' APPLIES ( dnQualifier $
destinationIndicator $ serialNumber ) )
2.5.13.5 (caseExactMatch): matchingRuleUse: ( 2.5.13.5 NAME
'caseExactMatch' APPLIES ( nisMapName $ ipServiceProtocol $
preferredLanguage $ employeeType $ employeeNumber $ displayName $
departmentNumber $ carLicense $ documentPublisher $ buildingName $
organizationalStatus $ uniqueIdentifier $ co $ personalTitle $
documentLocation $ documentVersion $ documentTitle $
documentIdentifier $ host $ userClass $ roomNumber $ drink $ info $
textEncodedORAddress $ uid $ dmdName $ houseIdentifier $ dnQualifier $
generationQualifier $ initials $ givenName $ destinationIndicator $
physicalDeliveryOfficeName $ postOfficeBox $ postalCode $
businessCategory $ description $ title $ ou $ o $ street $ st $ l $ c
$ serialNumber $ sn $ knowledgeInformation $ labeledURI $ cn $ name $
ref $ vendorVersion $ vendorName $ supportedSASLMechanisms ) )
2.5.13.4 (caseIgnoreSubstringsMatch): matchingRuleUse: ( 2.5.13.4
NAME 'caseIgnoreSubstringsMatch' APPLIES ( dnQualifier $
destinationIndicator $ serialNumber ) )
2.5.13.3 (caseIgnoreOrderingMatch): matchingRuleUse: ( 2.5.13.3
NAME 'caseIgnoreOrderingMatch' APPLIES ( dnQualifier $
destinationIndicator $ serialNumber ) )
2.5.13.2 (caseIgnoreMatch): matchingRuleUse: ( 2.5.13.2 NAME
'caseIgnoreMatch' APPLIES ( nisMapName $ ipServiceProtocol $
preferredLanguage $ employeeType $ employeeNumber $ displayName $
departmentNumber $ carLicense $ documentPublisher $ buildingName $
organizationalStatus $ uniqueIdentifier $ co $ personalTitle $
documentLocation $ documentVersion $ documentTitle $
documentIdentifier $ host $ userClass $ roomNumber $ drink $ info $
textEncodedORAddress $ uid $ dmdName $ houseIdentifier $ dnQualifier $
generationQualifier $ initials $ givenName $ destinationIndicator $
physicalDeliveryOfficeName $ postOfficeBox $ postalCode $
businessCategory $ description $ title $ ou $ o $ street $ st $ l $ c
$ serialNumber $ sn $ knowledgeInformation $ labeledURI $ cn $ name $
ref $ vendorVersion $ vendorName $ supportedSASLMechanisms ) )
2.5.13.1 (distinguishedNameMatch): matchingRuleUse: ( 2.5.13.1
NAME 'distinguishedNameMatch' APPLIES ( dITRedirect $ associatedName $
secretary $ documentAuthor $ manager $ seeAlso $ roleOccupant $ owner
$ member $ distinguishedName $ aliasedObjectName $ namingContexts $
subschemaSubentry $ modifiersName $ creatorsName ) )
2.5.13.0 (objectIdentifierMatch): matchingRuleUse: ( 2.5.13.0
NAME 'objectIdentifierMatch' APPLIES ( supportedApplicationContext $
supportedFeatures $ supportedExtension $ supportedControl ) )
slapadd startup: initiated.
backend_startup: starting "ou=people,dc=harrisonburg,dc=k12,dc=va,dc=us"
=> ldbm_cache_open( "id2entry.dbb", 73, 600 )
<= ldbm_cache_open (opened 0)
=> str2entry: "version: 2
"
<= str2entry: str2ad(version): attribute type undefined
slapadd: could not parse entry (line=2)
slapadd shutdown: initiated
ldbm backend syncing
ldbm flushing db (id2entry.dbb)
ldbm closing db (id2entry.dbb)
ldbm backend done syncing
====> cache_release_all
slapadd shutdown: freeing system resources.
Also the old server is using ldbm, has been for 5 years with no
database corruption. Can I safely change the new version?
ddh
--
Dwayne Hottinger
Network Administrator
Harrisonburg City Public Schools
---
You are currently subscribed to [email protected] as: [EMAIL PROTECTED]
To unsubscribe send email to [EMAIL PROTECTED] with the word UNSUBSCRIBE as the
SUBJECT of the message.