Folks;
   I am muddling through, searching for the Holy Grail of the combined 
Address book on a server with multiple user access.

Attempting to load an entry comes up with a format mismatch and then scans 
to the end of the file. The OID from the error message appears nowhere else 
in the output from the program (debug and parsing data).

  OS FreeBSD 4.6
  Built Berkeley DB
  Built OpenLDAP 2.1.4
  Exported an addrbook from Mozilla->.ldif file
  Corrected 'xmozillanickname' attribute to 'mozillaNickName'

   /u/l/e/openldap/slapd.conf
           ....
    include         /usr/local/etc/openldap/schema/core.schema
    include         /usr/local/etc/openldap/schema/cosine.schema
    include         /usr/local/etc/openldap/schema/inetorgperson.schema
    include         /usr/local/etc/openldap/schema/mozilla-ldap-v0.3.schema
           .....

   slapadd -b "dc=xyz,dc=net" -l Moz-export-020905.ldif -d 255
     (linewrap by email composer)
           .....

bdb_db_open: dc=xyz,dc=net
bdb_db_open: dbenv_open(/var/db/openldap-bdb4)
=> str2entry
 >>> dnPrettyNormal: <cn=Bill Garry,[EMAIL PROTECTED]>
<<< dnPrettyNormal: <cn=Bill Garry,[EMAIL PROTECTED]>, <cn=bill 
      garry,[EMAIL PROTECTED]>
str2entry: invalid value for syntax 1.3.6.1.4.1.1466.115.121.1.24
slapadd: could not parse entry (line=339)
slapadd shutdown: initiated
====> bdb_cache_release_all
slapadd shutdown: freeing system resources.

The .ldif entry looks like:

dn: cn=Bill Garry,[EMAIL PROTECTED]
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
objectclass: mozillaAbPersonObsolete
givenName: Bill
sn: Garry
cn: Bill Garry
mozillaNickname: Bill
mail: [EMAIL PROTECTED]
modifytimestamp: 0Z

... many more entries ....

I don't write LDIF (yet)... any suggestions about the format and OID?


Victor Probo


Reply via email to