[ejabberd] RES: RES: RES: RES: RES: RES: RES: mod_vcard_ldap

James Tait james.tait at wyrddreams.org
Thu Nov 17 04:04:51 MSK 2016


On 16/11/16 20:54, Marcio Luciano Donada wrote:

> What is wrong on the line below, see the log (debug)
>
> mod_vcard_ldap:
>     ldap_vcard_map:
>       "NICKNAME": {"%u", []}

Looks like you have a comma where there should be a colon above.

>       "GIVEN": {"%s": ["givenName"]}
>       "FAMILY": {"%s": ["sn"]}
>       "TEL": {"%s": ["telephoneNumber"]}
>
>
> 2016-11-16 18:54:21.543 [error] <0.62.0>@gen_mod:validate_opts:327 ignoring invalid value '[{<<"NICKNAME">>,[{<<"%u">>,<<>>},{[],<<>>}]},{<<"GIVEN">>,[{<<"%s">>,[<<"givenName">>]}]},

And so note the difference between NICKNAME and GIVEN above.

> {<<"FAMILY">>,[{<<"%s">>,[<<"sn">>]}]},{<<"TEL">>,[{<<"%s">>,[<<"telephoneNumber">>]}]}]' for option 'ldap_vcard_map' of module 'mod_vcard_ldap'
> 2016-11-16 18:54:21.553 [debug] <0.340.0> Supervisor ejabberd_sup started mod_vcard_ldap:start_link(<<"auroraalimentos.com.br">>, [{ldap_search_fields,[{<<"User">>,<<"%u">>},{<<"Name">>,<<"givenName">>},{<<"Family Name">>,<<"sn">>},...]},...]) at pid <0.433.0>

JT

​

-- 
---------------------------------------+--------------------------------
James Tait, BSc                        |    xmpp:jayteeuk at wyrddreams.org
Programmer and Free Software advocate  |        Tel: +44 (0)870 490 2407
---------------------------------------+--------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20161117/313eecc9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20161117/313eecc9/attachment.sig>


More information about the ejabberd mailing list