Discussion:
db_load: line 2: unexpected format
(too old to reply)
Coonay
2009-04-15 10:14:59 UTC
Permalink
my ldap verions in widnows is 2.2.28
Berkeley DB version is 4.3.28,
in windows :
cmd>db_dump -f id2entry.dump id2entry
cmd>ftp id2entry.dump redhat.coonay.com


in linux:
#/usr/local/BerkeleyDB.4.7/bin/db_load -f radiaId.dump -h /var/opt/
ldap/ radiaId.bdb
db_load: line 2: unexpected format


how can i dump the bdb in window into linux?should i update the bdb to
4.7 in window in order for
that work?

thanks so much
Coonay
2009-04-15 10:26:27 UTC
Permalink
Post by Coonay
my ldap verions in widnows is 2.2.28
Berkeley  DB version is 4.3.28,
cmd>db_dump -f id2entry.dump id2entry
cmd>ftp id2entry.dump redhat.coonay.com
#/usr/local/BerkeleyDB.4.7/bin/db_load -f radiaId.dump -h /var/opt/
ldap/ radiaId.bdb
db_load: line 2: unexpected format
how can i dump the bdb in window into linux?should i update the bdb to
4.7 in window in order for
that work?
thanks so much
the first lines in radiaId.dump is :

VERSION=3
format=bytevalue
type=btree
duplicates=1
dupsort=1
db_pagesize=4096
HEADER=END
Florian Weimer
2009-04-15 12:05:56 UTC
Permalink
Post by Coonay
VERSION=3
format=bytevalue
type=btree
duplicates=1
dupsort=1
db_pagesize=4096
HEADER=END
Can you post the output of "hd radiaId.dump | head"?

I suspect you need to convert the line endings from CRLF to LF.
Coonay
2009-04-16 04:00:31 UTC
Permalink
Post by Florian Weimer
Post by Coonay
VERSION=3
format=bytevalue
type=btree
duplicates=1
dupsort=1
db_pagesize=4096
HEADER=END
Can you post the output of "hd radiaId.dump | head"?
I suspect you need to convert the line endings from CRLF to LF.
Florian :

what is hd?i cann't find it .

thanks
Coonay
2009-04-16 04:01:44 UTC
Permalink
Post by Florian Weimer
Post by Coonay
VERSION=3
format=bytevalue
type=btree
duplicates=1
dupsort=1
db_pagesize=4096
HEADER=END
Can you post the output of "hd radiaId.dump | head"?
I suspect you need to convert the line endings from CRLF to LF.
btw ,i transfer the dump using binary mode,should there is no CRLF
Florian Weimer
2009-04-16 09:31:28 UTC
Permalink
Post by Coonay
Post by Florian Weimer
Post by Coonay
VERSION=3
format=bytevalue
type=btree
duplicates=1
dupsort=1
db_pagesize=4096
HEADER=END
Can you post the output of "hd radiaId.dump | head"?
I suspect you need to convert the line endings from CRLF to LF.
btw ,i transfer the dump using binary mode,should there is no CRLF
No, the CRLF is would be gone if you used text mode instead of binary
mode.
Post by Coonay
what is hd?i cann't find it .
"hd" is a hex dump command. It allows you to check what type of line
endings are present.

Continue reading on narkive:
Loading...