[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: vcard imort...
Hugh Caley wrote :
> I'm not sure I understand this. I took a whole lot of time and
> effort and wrote a Perl script to import vCards into OpenLDAP...are
> you saying that it already had native support for importing vcards?
No, all that this does...
> > ldapmodify -b -f ldif.file
> >
> > Contents of ldif.file
> > ---------------------
> > dn: cn=whatever,dc=domain,dc=org
> > changetype: modify
> > add: vcard
> > vcard: /tmp/vcardfile
> >
> > Value gets loaded into attribute from /tmp/vcardfile
...is to load the binary data in /tmp/vcardfile into an attribute
called "vcard" (this is the kind of thing you do if you want to store
somebody's photo, for instance), which probably isn't what the
original poster wanted...
As for the original question, I don't know offhand, but it's not too
hard to write something in your favourite scripting language to parse
a VCard and send it off to ldapmodify...
--
Andrew J Cosgriff <ajc@polydistortion.net> bitstream nightmare