Hi Rob,
thank you, it works! This is my vcard config for anyone interested, since
it uses standard LDAP attribute names, it should work in most cases (@Rob
maybe include this to prosody-posix-ldap.cfg.lua as examples?).
telephone = {
work = {
number = 'telephoneNumber',
}
},
address = {
work = {
street = 'street', -- street name
pcode = 'postalCode', -- postal code
locality = 'l', -- city name
ctry = 'c', -- country name
}
},
email = {
internet = {
userid = 'mail',
}
}
Am Donnerstag, 3. Juli 2014 05:24:28 UTC+2 schrieb Rob Hoelz:
>
> Hi Stanislav,
>
> Sorry for taking so long; try this:
>
> telephone = {
> work = {
> voice = true,
> number = 'telephoneNumber',
> }
> }
>
> -Rob
>
> On Wed, 2 Jul 2014 02:00:21 -0700 (PDT)
> Stanislav Kopp <[email protected] <javascript:>> wrote:
>
> > Hi Rob, thanks for fast response. Unfortunately this example doesn't
> > work for me, this is my vcard config
> >
> > vcard_format = {
> > displayname = 'cn', -- Consult the vCard configuration section
> > in the README
> > nickname = 'uid',
> > title = 'title',
> > telephone = {
> > {
> > work = 'telephoneNumber'
> > }
> > }
> > },
> >
> >
> > I see all fields except "telephone" in jabber clent, so the mapping
> > works in general. No errors in prosody debug log.
> >
> >
> > Thanks for your help
> >
> > Am Dienstag, 1. Juli 2014 21:55:56 UTC+2 schrieb Rob Hoelz:
> > >
> > > On Tue, 1 Jul 2014 09:28:36 -0700 (PDT)
> > > Stanislav Kopp <[email protected] <javascript:>> wrote:
> > >
> > > > Not sure if this a right place to post, but does anybody have
> > > > working examples of "Multi-level fields" for vcard function? The
> > > > documentation
> > > > <
> > >
> https://code.google.com/p/prosody-modules/source/browse/mod_lib_ldap/README.md?repo=0-8&r=798ef3470b9e4779ed11d895c24148785d1d0a5e>
>
>
> > >
> > > > says "I recommend looking at the example configuration for
> > > > clarification", but there are no examples for "Multi-level
> > > > fields" only for "photo" which is "Single-level field". I need
> > > > working "telephone" and "email" mapping for vCard and can't lua
> > > > to figure it out on my own.
> > > >
> > >
> > > Hi Stanislav,
> > >
> > > Sorry for the lack of examples; try something like this:
> > >
> > > telephone = {
> > > {
> > > work = 'work_phone' -- where work_phone is the name of the
> > > LDAP -- field containing the work phone number
> > > }
> > > }
> > >
> > > If this doesn't work, let me know and I can investigate further.
> > >
> > > -Rob
> > >
> >
>
>
--
You received this message because you are subscribed to the Google Groups
"prosody-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/prosody-dev.
For more options, visit https://groups.google.com/d/optout.