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

Marcio Luciano Donada mdonada at auroraalimentos.com.br
Tue Nov 8 16:17:24 MSK 2016



>I forgot the most important attribute: sAMAccountName in the output.
>Can you type this command:

# ldapsearch \
-x -h server1 \
-D "usuario at auroraalimentos.com.br" \
-W \
-b "CN=mdonada,OU=USUARIOS,OU=TI,OU=16-MATRIZ,OU=AURORA,DC=auroraalimentos,DC=com,DC=br" \
-s sub "(&(objectCategory=person)(objectClass=user)(sAMAccountName=*))" givenName displayName sAMAccountName
Enter LDAP Password:
# extended LDIF
#
# LDAPv3
# base <CN=mdonada,OU=USUARIOS,OU=TI,OU=16-MATRIZ,OU=AURORA,DC=auroraalimentos,DC=com,DC=br> with scope subtree
# filter: (&(objectCategory=person)(objectClass=user)(sAMAccountName=*))
# requesting: givenName displayName sAMAccountName
#

# mdonada, USUARIOS, TI, 16-MATRIZ, AURORA, auroraalimentos.com.br
dn: CN=mdonada,OU=USUARIOS,OU=TI,OU=16-MATRIZ,OU=AURORA,DC=auroraalimentos,DC=
 com,DC=br
givenName: Marcio
displayName: Marcio Luciano Donada
sAMAccountName: mdonada


I find that ejabberd is looking (loglevel 5, in ejabberd.yml) in database (mysql),

2016-11-08 11:12:38.863 [debug] <0.336.0>@ejabberd_sql:sql_query_internal:570 SQL: "select subscription from rosterusers where username='alcenir' and jid='mdonada at auroraalimentos.com.br/Pandion'"
2016-11-08 11:12:38.864 [debug] <0.336.0>@ejabberd_sql:sql_query_internal:570 SQL: "select subscription from rosterusers where username='alcenir' and jid='mdonada at auroraalimentos.com.br'"
2016-11-08 11:12:38.864 [debug] <0.336.0>@ejabberd_sql:sql_query_internal:570 SQL: "select grp from rostergroups where username='alcenir' and jid='mdonada at auroraalimentos.com.br'"
2016-11-08 11:12:38.865 [debug] <0.336.0>@ejabberd_sql:sql_query_internal:570 SQL: "select grp from sr_user where jid='alcenir at auroraalimentos.com.br'"
2016-11-08 11:12:38.865 [debug] <0.336.0>@ejabberd_sql:sql_query_internal:570 SQL: "select name from sr_group"
2016-11-08 11:12:38.865 [debug] <0.336.0>@ejabberd_sql:sql_query_internal:570 SQL: "select name from privacy_default_list where username='alcenir'"
2016-11-08 11:12:38.866 [debug] <0.336.0>@ejabberd_sql:sql_query_internal:570 SQL: "select seconds, state from last where username='alcenir'"
2016-11-08 11:12:41.071 [debug] <0.338.0>@ejabberd_sql:sql_query_internal:570 SQL: "select vcard from vcard where username='alcenir'"
2016-11-08 11:12:41.072 [debug] <0.441.0>@ejabberd_router:do_route:351 route

Thanks...
________________________________

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.


More information about the ejabberd mailing list