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

Marcio Luciano Donada mdonada at auroraalimentos.com.br
Thu Nov 17 19:26:57 MSK 2016


Hi,
Sorry for the persistence, but I believe this is a bug in the tool, because with ldapsearch I can get the information I'm trying to get. Can someone help? Someone from ejabberd development on the list?

ldapsearch -x -h server -D "sigamx at auroraalimentos.com.br" -W -b "OU=USUARIOS,OU=TI,OU=16-MATRIZ,OU=AURORA,DC=auroraalimentos,DC=com,DC=br" -s sub "(objectCategory=person)" sAMAccountName telephoneNumber sn mail department

# xxxx, USUARIOS, TI, 16-MATRIZ, AURORA, auroraalimentos.com.br
dn: CN=xxxxxx,OU=USUARIOS,OU=TI,OU=16-MATRIZ,OU=AURORA,DC=auroraalimentos,DC=c om,DC=br
sn: xxxx
telephoneNumber: (xx)3321.XXXX
department: Depto De Informatica
sAMAccountName: xxxxx
mail: xxxx at auroraalimentos.com.br<mailto:f at auroraalimentos.com.br>


__
Márcio Luciano Donada
Analista  DBA/Suporte
Depto de TI – Chapecó(SC)
Tel.: (49) 33213262
VOIP: 66 16 3262
Aurora Alimentos
Cooperativa Central Aurora Alimentos

De: ejabberd [mailto:ejabberd-bounces at jabber.ru] Em nome de James Tait
Enviada em: quarta-feira, 16 de novembro de 2016 23:05
Para: ejabberd at jabber.ru
Assunto: Re: [ejabberd] RES: RES: RES: RES: RES: RES: RES: mod_vcard_ldap


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

---------------------------------------+--------------------------------



________________________________

Aviso: Esta mensagem (incluindo qualquer anexo) e os arquivos nela contidos é confidencial e legalmente protegida, somente podendo ser usada pelo indivíduo ou entidade a quem foi endereçada. Caso você a tenha recebido por engano, deverá devolvê-la ao remetente e, posteriormente, apagá-la, pois, a disseminação, encaminhamento, uso, impressão ou cópia do conteúdo desta mensagem são expressamente proibidos.
Warning: This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20161117/3fbb5bdc/attachment.html>


More information about the ejabberd mailing list