Hello guys.
I'm a beginner in this language. It's been a few weeks since I've been breaking my head in the configuration of my ejabberd server integrated with the active directory. Authentication via LDAP is working perfectly, but searching for users within the active directory is not working. I need some help finding out what the problem is.
This environment is for tests.
ejabberd.log:
2017-11-22 03:08:28.971 [debug] <0.497.0>@ejabberd_receiver:process_data:284 Received XML on stream = <<"teste@cso.local">>
2017-11-22 03:08:28.971 [debug] <0.497.0>@shaper:update:143 State: {maxrate,1000,84.64103236206141,1511348903483000}, Size=213
M=111.20630837292924, I=5485.0
2017-11-22 03:08:28.971 [debug] <0.498.0>@ejabberd_router:do_route:337 route:
#iq{id = <<"vZ0Yf-110">>,type = set,lang = <<"en">>,
from =
{jid,<<"kibe">>,<<"cso.local">>,<<"Spark">>,<<"kibe">>,
<<"cso.local">>,<<"Spark">>},
to = {jid,<<>>,<<"vjud.cso.local">>,<<>>,<<>>,<<"vjud.cso.local">>,<<>>},
sub_els =
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:search">>}],
[{xmlel,<<"x">>,
[{<<"xmlns">>,<<"jabber:x:data">>},
{<<"type">>,<<"submit">>}],
[{xmlel,<<"field">>,
[{<<"var">>,<<"mail">>},{<<"type">>,<<"text-single">>}],
[{xmlel,<<"value">>,[],
[{xmlcdata,<<"teste@cso.local">>}]}]}]}]}],
meta = #{ip => {10,1,7,39}}}
2017-11-22 03:08:28.971 [debug] <0.420.0>@eldap:send_command:776 {searchRequest,{'SearchRequest',<<"ou=USUARIOS,dc=cso,dc=local">>,wholeSubtree,neverDerefAliases,30,0,false,{and,[{and,[{present,<<"sAMAccountName">>},{and,[{equalityMatch,{'AttributeValueAssertion',<<"objectCategory">>,<<"person">>}},{equalityMatch,{'AttributeValueAssertion',<<"objectClass">>,<<"user">>}}]}]},{substrings,{'SubstringFilter',<<"mail">>,[{any,<<"teste@cso.local">>}]}}]},[<<"displayName">>]}}
2017-11-22 03:08:28.987 [debug] <0.420.0>@eldap:recvd_packet:836 {searchResEntry,{'SearchResultEntry',<<"CN=teste,OU=USUARIOS,DC=cso,DC=local">>,[{'PartialAttributeList_SEQOF',<<"displayName">>,[<<"teste">>]}]}}
2017-11-22 03:08:28.987 [debug] <0.420.0>@eldap:recvd_packet:836 {searchResDone,{'LDAPResult',success,<<>>,<<>>,asn1_NOVALUE}}
2017-11-22 03:08:28.987 [debug] <0.418.0>@ejabberd_router:do_route:337 route:
#iq{id = <<"vZ0Yf-110">>,type = result,lang = <<"en">>,
from = {jid,<<>>,<<"vjud.cso.local">>,<<>>,<<>>,<<"vjud.cso.local">>,<<>>},
to =
{jid,<<"kibe">>,<<"cso.local">>,<<"Spark">>,<<"kibe">>,
<<"cso.local">>,<<"Spark">>},
sub_els =
[{search,undefined,undefined,undefined,undefined,undefined,[],
{xdata,result,[],<<"Search Results for vjud.cso.local">>,
[{xdata_field,<<"Full Name">>,'text-single',<<"FN">>,false,
<<>>,[],[],[]},
{xdata_field,<<"Nickname">>,'text-single',<<"NICKNAME">>,
false,<<>>,[],[],[]},
{xdata_field,<<"Email">>,'text-single',<<"EMAIL">>,false,
<<>>,[],[],[]}],
[],[]}}],
meta = #{ip => {10,1,7,39}}}
2017-11-22 03:08:28.987 [debug] <0.418.0>@ejabberd_local:do_route:256 local route:
#iq{id = <<"vZ0Yf-110">>,type = result,lang = <<"en">>,
from = {jid,<<>>,<<"vjud.cso.local">>,<<>>,<<>>,<<"vjud.cso.local">>,<<>>},
to =
{jid,<<"kibe">>,<<"cso.local">>,<<"Spark">>,<<"kibe">>,
<<"cso.local">>,<<"Spark">>},
sub_els =
[{search,undefined,undefined,undefined,undefined,undefined,[],
{xdata,result,[],<<"Search Results for vjud.cso.local">>,
[{xdata_field,<<"Full Name">>,'text-single',<<"FN">>,false,
<<>>,[],[],[]},
{xdata_field,<<"Nickname">>,'text-single',<<"NICKNAME">>,
false,<<>>,[],[],[]},
{xdata_field,<<"Email">>,'text-single',<<"EMAIL">>,false,
<<>>,[],[],[]}],
[],[]}}],
meta = #{ip => {10,1,7,39}}}
2017-11-22 03:08:28.987 [debug] <0.418.0>@ejabberd_sm:do_route:670 processing packet to full JID:
#iq{id = <<"vZ0Yf-110">>,type = result,lang = <<"en">>,
from = {jid,<<>>,<<"vjud.cso.local">>,<<>>,<<>>,<<"vjud.cso.local">>,<<>>},
to =
{jid,<<"kibe">>,<<"cso.local">>,<<"Spark">>,<<"kibe">>,
<<"cso.local">>,<<"Spark">>},
sub_els =
[{search,undefined,undefined,undefined,undefined,undefined,[],
{xdata,result,[],<<"Search Results for vjud.cso.local">>,
[{xdata_field,<<"Full Name">>,'text-single',<<"FN">>,false,
<<>>,[],[],[]},
{xdata_field,<<"Nickname">>,'text-single',<<"NICKNAME">>,
false,<<>>,[],[],[]},
{xdata_field,<<"Email">>,'text-single',<<"EMAIL">>,false,
<<>>,[],[],[]}],
[],[]}}],
meta = #{ip => {10,1,7,39}}}
2017-11-22 03:08:28.987 [debug] <0.418.0>@ejabberd_sm:do_route:694 sending to process <0.498.0>:
#iq{id = <<"vZ0Yf-110">>,type = result,lang = <<"en">>,
from = {jid,<<>>,<<"vjud.cso.local">>,<<>>,<<>>,<<"vjud.cso.local">>,<<>>},
to =
{jid,<<"kibe">>,<<"cso.local">>,<<"Spark">>,<<"kibe">>,
<<"cso.local">>,<<"Spark">>},
sub_els =
[{search,undefined,undefined,undefined,undefined,undefined,[],
{xdata,result,[],<<"Search Results for vjud.cso.local">>,
[{xdata_field,<<"Full Name">>,'text-single',<<"FN">>,false,
<<>>,[],[],[]},
{xdata_field,<<"Nickname">>,'text-single',<<"NICKNAME">>,
false,<<>>,[],[],[]},
{xdata_field,<<"Email">>,'text-single',<<"EMAIL">>,false,
<<>>,[],[],[]}],
[],[]}}],
meta = #{ip => {10,1,7,39}}}
2017-11-22 03:08:28.987 [debug] <0.498.0>@mod_client_state:filter_other:267 Won't add stanza for kibe@cso.local/Spark to CSI queue
2017-11-22 03:08:28.987 [debug] <0.498.0>@mod_client_state:dequeue_sender:306 Flushing packets of @vjud.cso.local from CSI queue of kibe@cso.local/Spark
2017-11-22 03:08:28.987 [debug] <0.498.0>@ejabberd_socket:send:216 (tls|<0.497.0>) Send XML on stream = <<"Search Results for vjud.cso.local">>
2017-11-22 03:08:30.065 [debug] <0.497.0>@ejabberd_receiver:process_data:284 Received XML on stream = <<"teste@cso.local">>
2017-11-22 03:08:30.065 [debug] <0.497.0>@shaper:update:143 State: {maxrate,1000,61.737106882945014,1511348908968000}, Size=213
M=109.89221367048921, I=1094.0
2017-11-22 03:08:30.065 [debug] <0.498.0>@ejabberd_router:do_route:337 route:
#iq{id = <<"vZ0Yf-113">>,type = set,lang = <<"en">>,
from =
{jid,<<"kibe">>,<<"cso.local">>,<<"Spark">>,<<"kibe">>,
<<"cso.local">>,<<"Spark">>},
to = {jid,<<>>,<<"vjud.cso.local">>,<<>>,<<>>,<<"vjud.cso.local">>,<<>>},
sub_els =
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:search">>}],
[{xmlel,<<"x">>,
[{<<"xmlns">>,<<"jabber:x:data">>},
{<<"type">>,<<"submit">>}],
[{xmlel,<<"field">>,
[{<<"var">>,<<"mail">>},{<<"type">>,<<"text-single">>}],
[{xmlel,<<"value">>,[],
[{xmlcdata,<<"teste@cso.local">>}]}]}]}]}],
meta = #{ip => {10,1,7,39}}}
2017-11-22 03:08:30.065 [debug] <0.420.0>@eldap:send_command:776 {searchRequest,{'SearchRequest',<<"ou=USUARIOS,dc=cso,dc=local">>,wholeSubtree,neverDerefAliases,30,0,false,{and,[{and,[{present,<<"sAMAccountName">>},{and,[{equalityMatch,{'AttributeValueAssertion',<<"objectCategory">>,<<"person">>}},{equalityMatch,{'AttributeValueAssertion',<<"objectClass">>,<<"user">>}}]}]},{substrings,{'SubstringFilter',<<"mail">>,[{any,<<"teste@cso.local">>}]}}]},[<<"displayName">>]}}
2017-11-22 03:08:30.065 [debug] <0.420.0>@eldap:recvd_packet:836 {searchResEntry,{'SearchResultEntry',<<"CN=teste,OU=USUARIOS,DC=cso,DC=local">>,[{'PartialAttributeList_SEQOF',<<"displayName">>,[<<"teste">>]}]}}
2017-11-22 03:08:30.065 [debug] <0.420.0>@eldap:recvd_packet:836 {searchResDone,{'LDAPResult',success,<<>>,<<>>,asn1_NOVALUE}}
2017-11-22 03:08:30.065 [debug] <0.418.0>@ejabberd_router:do_route:337 route:
#iq{id = <<"vZ0Yf-113">>,type = result,lang = <<"en">>,
from = {jid,<<>>,<<"vjud.cso.local">>,<<>>,<<>>,<<"vjud.cso.local">>,<<>>},
to =
{jid,<<"kibe">>,<<"cso.local">>,<<"Spark">>,<<"kibe">>,
<<"cso.local">>,<<"Spark">>},
sub_els =
[{search,undefined,undefined,undefined,undefined,undefined,[],
{xdata,result,[],<<"Search Results for vjud.cso.local">>,
[{xdata_field,<<"Full Name">>,'text-single',<<"FN">>,false,
<<>>,[],[],[]},
{xdata_field,<<"Nickname">>,'text-single',<<"NICKNAME">>,
false,<<>>,[],[],[]},
{xdata_field,<<"Email">>,'text-single',<<"EMAIL">>,false,
<<>>,[],[],[]}],
[],[]}}],
meta = #{ip => {10,1,7,39}}}
2017-11-22 03:08:30.065 [debug] <0.418.0>@ejabberd_local:do_route:256 local route:
#iq{id = <<"vZ0Yf-113">>,type = result,lang = <<"en">>,
from = {jid,<<>>,<<"vjud.cso.local">>,<<>>,<<>>,<<"vjud.cso.local">>,<<>>},
to =
{jid,<<"kibe">>,<<"cso.local">>,<<"Spark">>,<<"kibe">>,
<<"cso.local">>,<<"Spark">>},
sub_els =
[{search,undefined,undefined,undefined,undefined,undefined,[],
{xdata,result,[],<<"Search Results for vjud.cso.local">>,
[{xdata_field,<<"Full Name">>,'text-single',<<"FN">>,false,
<<>>,[],[],[]},
{xdata_field,<<"Nickname">>,'text-single',<<"NICKNAME">>,
false,<<>>,[],[],[]},
{xdata_field,<<"Email">>,'text-single',<<"EMAIL">>,false,
<<>>,[],[],[]}],
[],[]}}],
meta = #{ip => {10,1,7,39}}}
2017-11-22 03:08:30.065 [debug] <0.418.0>@ejabberd_sm:do_route:670 processing packet to full JID:
#iq{id = <<"vZ0Yf-113">>,type = result,lang = <<"en">>,
from = {jid,<<>>,<<"vjud.cso.local">>,<<>>,<<>>,<<"vjud.cso.local">>,<<>>},
to =
{jid,<<"kibe">>,<<"cso.local">>,<<"Spark">>,<<"kibe">>,
<<"cso.local">>,<<"Spark">>},
sub_els =
[{search,undefined,undefined,undefined,undefined,undefined,[],
{xdata,result,[],<<"Search Results for vjud.cso.local">>,
[{xdata_field,<<"Full Name">>,'text-single',<<"FN">>,false,
<<>>,[],[],[]},
{xdata_field,<<"Nickname">>,'text-single',<<"NICKNAME">>,
false,<<>>,[],[],[]},
{xdata_field,<<"Email">>,'text-single',<<"EMAIL">>,false,
<<>>,[],[],[]}],
[],[]}}],
meta = #{ip => {10,1,7,39}}}
2017-11-22 03:08:30.065 [debug] <0.418.0>@ejabberd_sm:do_route:694 sending to process <0.498.0>:
#iq{id = <<"vZ0Yf-113">>,type = result,lang = <<"en">>,
from = {jid,<<>>,<<"vjud.cso.local">>,<<>>,<<>>,<<"vjud.cso.local">>,<<>>},
to =
{jid,<<"kibe">>,<<"cso.local">>,<<"Spark">>,<<"kibe">>,
<<"cso.local">>,<<"Spark">>},
sub_els =
[{search,undefined,undefined,undefined,undefined,undefined,[],
{xdata,result,[],<<"Search Results for vjud.cso.local">>,
[{xdata_field,<<"Full Name">>,'text-single',<<"FN">>,false,
<<>>,[],[],[]},
{xdata_field,<<"Nickname">>,'text-single',<<"NICKNAME">>,
false,<<>>,[],[],[]},
{xdata_field,<<"Email">>,'text-single',<<"EMAIL">>,false,
<<>>,[],[],[]}],
[],[]}}],
meta = #{ip => {10,1,7,39}}}
2017-11-22 03:08:30.065 [debug] <0.498.0>@mod_client_state:filter_other:267 Won't add stanza for kibe@cso.local/Spark to CSI queue
2017-11-22 03:08:30.065 [debug] <0.498.0>@mod_client_state:dequeue_sender:306 Flushing packets of @vjud.cso.local from CSI queue of kibe@cso.local/Spark
2017-11-22 03:08:30.065 [debug] <0.498.0>@ejabberd_socket:send:216 (tls|<0.497.0>) Send XML on stream = <<"Search Results for vjud.cso.local">>
2017-11-22 03:08:34.065 [debug] <0.497.0>@ejabberd_receiver:process_data:284 Received XML on stream = <<"teste">>
2017-11-22 03:08:34.065 [debug] <0.497.0>@shaper:update:143 State: {maxrate,1000,128.2177307723683,1511348910062000}, Size=203
M=108.45278499393281, I=4.0e3
2017-11-22 03:08:34.065 [debug] <0.498.0>@ejabberd_router:do_route:337 route:
#iq{id = <<"vZ0Yf-116">>,type = set,lang = <<"en">>,
from =
{jid,<<"kibe">>,<<"cso.local">>,<<"Spark">>,<<"kibe">>,
<<"cso.local">>,<<"Spark">>},
to = {jid,<<>>,<<"vjud.cso.local">>,<<>>,<<>>,<<"vjud.cso.local">>,<<>>},
sub_els =
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:search">>}],
[{xmlel,<<"x">>,
[{<<"xmlns">>,<<"jabber:x:data">>},
{<<"type">>,<<"submit">>}],
[{xmlel,<<"field">>,
[{<<"var">>,<<"mail">>},{<<"type">>,<<"text-single">>}],
[{xmlel,<<"value">>,[],[{xmlcdata,<<"teste">>}]}]}]}]}],
meta = #{ip => {10,1,7,39}}}
2017-11-22 03:08:34.065 [debug] <0.420.0>@eldap:send_command:776 {searchRequest,{'SearchRequest',<<"ou=USUARIOS,dc=cso,dc=local">>,wholeSubtree,neverDerefAliases,30,0,false,{and,[{and,[{present,<<"sAMAccountName">>},{and,[{equalityMatch,{'AttributeValueAssertion',<<"objectCategory">>,<<"person">>}},{equalityMatch,{'AttributeValueAssertion',<<"objectClass">>,<<"user">>}}]}]},{substrings,{'SubstringFilter',<<"mail">>,[{any,<<"teste">>}]}}]},[<<"displayName">>]}}
2017-11-22 03:08:34.065 [debug] <0.420.0>@eldap:recvd_packet:836 {searchResEntry,{'SearchResultEntry',<<"CN=teste,OU=USUARIOS,DC=cso,DC=local">>,[{'PartialAttributeList_SEQOF',<<"displayName">>,[<<"teste">>]}]}}
2017-11-22 03:08:34.065 [debug] <0.420.0>@eldap:recvd_packet:836 {searchResDone,{'LDAPResult',success,<<>>,<<>>,asn1_NOVALUE}}
2017-11-22 03:08:34.065 [debug] <0.418.0>@ejabberd_router:do_route:337 route:
#iq{id = <<"vZ0Yf-116">>,type = result,lang = <<"en">>,
from = {jid,<<>>,<<"vjud.cso.local">>,<<>>,<<>>,<<"vjud.cso.local">>,<<>>},
to =
{jid,<<"kibe">>,<<"cso.local">>,<<"Spark">>,<<"kibe">>,
<<"cso.local">>,<<"Spark">>},
sub_els =
[{search,undefined,undefined,undefined,undefined,undefined,[],
{xdata,result,[],<<"Search Results for vjud.cso.local">>,
[{xdata_field,<<"Full Name">>,'text-single',<<"FN">>,false,
<<>>,[],[],[]},
{xdata_field,<<"Nickname">>,'text-single',<<"NICKNAME">>,
false,<<>>,[],[],[]},
{xdata_field,<<"Email">>,'text-single',<<"EMAIL">>,false,
<<>>,[],[],[]}],
[],[]}}],
meta = #{ip => {10,1,7,39}}}
2017-11-22 03:08:34.065 [debug] <0.418.0>@ejabberd_local:do_route:256 local route:
#iq{id = <<"vZ0Yf-116">>,type = result,lang = <<"en">>,
from = {jid,<<>>,<<"vjud.cso.local">>,<<>>,<<>>,<<"vjud.cso.local">>,<<>>},
to =
{jid,<<"kibe">>,<<"cso.local">>,<<"Spark">>,<<"kibe">>,
<<"cso.local">>,<<"Spark">>},
sub_els =
[{search,undefined,undefined,undefined,undefined,undefined,[],
{xdata,result,[],<<"Search Results for vjud.cso.local">>,
[{xdata_field,<<"Full Name">>,'text-single',<<"FN">>,false,
<<>>,[],[],[]},
{xdata_field,<<"Nickname">>,'text-single',<<"NICKNAME">>,
false,<<>>,[],[],[]},
{xdata_field,<<"Email">>,'text-single',<<"EMAIL">>,false,
<<>>,[],[],[]}],
[],[]}}],
meta = #{ip => {10,1,7,39}}}
2017-11-22 03:08:34.065 [debug] <0.418.0>@ejabberd_sm:do_route:670 processing packet to full JID:
#iq{id = <<"vZ0Yf-116">>,type = result,lang = <<"en">>,
from = {jid,<<>>,<<"vjud.cso.local">>,<<>>,<<>>,<<"vjud.cso.local">>,<<>>},
to =
{jid,<<"kibe">>,<<"cso.local">>,<<"Spark">>,<<"kibe">>,
<<"cso.local">>,<<"Spark">>},
sub_els =
[{search,undefined,undefined,undefined,undefined,undefined,[],
{xdata,result,[],<<"Search Results for vjud.cso.local">>,
[{xdata_field,<<"Full Name">>,'text-single',<<"FN">>,false,
<<>>,[],[],[]},
{xdata_field,<<"Nickname">>,'text-single',<<"NICKNAME">>,
false,<<>>,[],[],[]},
{xdata_field,<<"Email">>,'text-single',<<"EMAIL">>,false,
<<>>,[],[],[]}],
[],[]}}],
meta = #{ip => {10,1,7,39}}}
2017-11-22 03:08:34.081 [debug] <0.418.0>@ejabberd_sm:do_route:694 sending to process <0.498.0>:
#iq{id = <<"vZ0Yf-116">>,type = result,lang = <<"en">>,
from = {jid,<<>>,<<"vjud.cso.local">>,<<>>,<<>>,<<"vjud.cso.local">>,<<>>},
to =
{jid,<<"kibe">>,<<"cso.local">>,<<"Spark">>,<<"kibe">>,
<<"cso.local">>,<<"Spark">>},
sub_els =
[{search,undefined,undefined,undefined,undefined,undefined,[],
{xdata,result,[],<<"Search Results for vjud.cso.local">>,
[{xdata_field,<<"Full Name">>,'text-single',<<"FN">>,false,
<<>>,[],[],[]},
{xdata_field,<<"Nickname">>,'text-single',<<"NICKNAME">>,
false,<<>>,[],[],[]},
{xdata_field,<<"Email">>,'text-single',<<"EMAIL">>,false,
<<>>,[],[],[]}],
[],[]}}],
meta = #{ip => {10,1,7,39}}}
2017-11-22 03:08:34.081 [debug] <0.498.0>@mod_client_state:filter_other:267 Won't add stanza for kibe@cso.local/Spark to CSI queue
2017-11-22 03:08:34.081 [debug] <0.498.0>@mod_client_state:dequeue_sender:306 Flushing packets of @vjud.cso.local from CSI queue of kibe@cso.local/Spark
2017-11-22 03:08:34.081 [debug] <0.498.0>@ejabberd_socket:send:216 (tls|<0.497.0>) Send XML on stream = <<"Search Results for vjud.cso.local">>
2017-11-22 03:08:40.268 [debug] <0.497.0>@ejabberd_receiver:process_data:284 Received XML on stream = <<"teste">>
2017-11-22 03:08:40.268 [debug] <0.497.0>@shaper:update:143 State: {maxrate,1000,89.48386538618415,1511348914062000}, Size=210
M=109.9179411235114, I=6203.0
2017-11-22 03:08:40.268 [debug] <0.498.0>@ejabberd_router:do_route:337 route:
#iq{id = <<"vZ0Yf-119">>,type = set,lang = <<"en">>,
from =
{jid,<<"kibe">>,<<"cso.local">>,<<"Spark">>,<<"kibe">>,
<<"cso.local">>,<<"Spark">>},
to = {jid,<<>>,<<"vjud.cso.local">>,<<>>,<<>>,<<"vjud.cso.local">>,<<>>},
sub_els =
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:search">>}],
[{xmlel,<<"x">>,
[{<<"xmlns">>,<<"jabber:x:data">>},
{<<"type">>,<<"submit">>}],
[{xmlel,<<"field">>,
[{<<"var">>,<<"displayName">>},
{<<"type">>,<<"text-single">>}],
[{xmlel,<<"value">>,[],[{xmlcdata,<<"teste">>}]}]}]}]}],
meta = #{ip => {10,1,7,39}}}
2017-11-22 03:08:40.268 [debug] <0.420.0>@eldap:send_command:776 {searchRequest,{'SearchRequest',<<"ou=USUARIOS,dc=cso,dc=local">>,wholeSubtree,neverDerefAliases,30,0,false,{and,[{and,[{present,<<"sAMAccountName">>},{and,[{equalityMatch,{'AttributeValueAssertion',<<"objectCategory">>,<<"person">>}},{equalityMatch,{'AttributeValueAssertion',<<"objectClass">>,<<"user">>}}]}]},{substrings,{'SubstringFilter',<<"displayName">>,[{any,<<"teste">>}]}}]},[<<"displayName">>]}}
2017-11-22 03:08:40.268 [debug] <0.420.0>@eldap:recvd_packet:836 {searchResEntry,{'SearchResultEntry',<<"CN=teste12345,OU=USUARIOS,DC=cso,DC=local">>,[{'PartialAttributeList_SEQOF',<<"displayName">>,[<<"teste12345">>]}]}}
2017-11-22 03:08:40.268 [debug] <0.420.0>@eldap:recvd_packet:836 {searchResEntry,{'SearchResultEntry',<<"CN=teste,OU=USUARIOS,DC=cso,DC=local">>,[{'PartialAttributeList_SEQOF',<<"displayName">>,[<<"teste">>]}]}}
2017-11-22 03:08:40.268 [debug] <0.420.0>@eldap:recvd_packet:836 {searchResEntry,{'SearchResultEntry',<<"CN=Teste01,OU=USUARIOS,DC=cso,DC=local">>,[{'PartialAttributeList_SEQOF',<<"displayName">>,[<<"Teste01">>]}]}}
2017-11-22 03:08:40.268 [debug] <0.420.0>@eldap:recvd_packet:836 {searchResEntry,{'SearchResultEntry',<<"CN=teste02,OU=USUARIOS,DC=cso,DC=local">>,[{'PartialAttributeList_SEQOF',<<"displayName">>,[<<"teste02">>]}]}}
2017-11-22 03:08:40.268 [debug] <0.420.0>@eldap:recvd_packet:836 {searchResDone,{'LDAPResult',success,<<>>,<<>>,asn1_NOVALUE}}
2017-11-22 03:08:40.268 [debug] <0.418.0>@ejabberd_router:do_route:337 route:
#iq{id = <<"vZ0Yf-119">>,type = result,lang = <<"en">>,
from = {jid,<<>>,<<"vjud.cso.local">>,<<>>,<<>>,<<"vjud.cso.local">>,<<>>},
to =
{jid,<<"kibe">>,<<"cso.local">>,<<"Spark">>,<<"kibe">>,
<<"cso.local">>,<<"Spark">>},
sub_els =
[{search,undefined,undefined,undefined,undefined,undefined,[],
{xdata,result,[],<<"Search Results for vjud.cso.local">>,
[{xdata_field,<<"Full Name">>,'text-single',<<"FN">>,false,
<<>>,[],[],[]},
{xdata_field,<<"Nickname">>,'text-single',<<"NICKNAME">>,
false,<<>>,[],[],[]},
{xdata_field,<<"Email">>,'text-single',<<"EMAIL">>,false,
<<>>,[],[],[]}],
[],[]}}],
meta = #{ip => {10,1,7,39}}}
2017-11-22 03:08:40.268 [debug] <0.418.0>@ejabberd_local:do_route:256 local route:
#iq{id = <<"vZ0Yf-119">>,type = result,lang = <<"en">>,
from = {jid,<<>>,<<"vjud.cso.local">>,<<>>,<<>>,<<"vjud.cso.local">>,<<>>},
to =
{jid,<<"kibe">>,<<"cso.local">>,<<"Spark">>,<<"kibe">>,
<<"cso.local">>,<<"Spark">>},
sub_els =
[{search,undefined,undefined,undefined,undefined,undefined,[],
{xdata,result,[],<<"Search Results for vjud.cso.local">>,
[{xdata_field,<<"Full Name">>,'text-single',<<"FN">>,false,
<<>>,[],[],[]},
{xdata_field,<<"Nickname">>,'text-single',<<"NICKNAME">>,
false,<<>>,[],[],[]},
{xdata_field,<<"Email">>,'text-single',<<"EMAIL">>,false,
<<>>,[],[],[]}],
[],[]}}],
meta = #{ip => {10,1,7,39}}}
2017-11-22 03:08:40.268 [debug] <0.418.0>@ejabberd_sm:do_route:670 processing packet to full JID:
#iq{id = <<"vZ0Yf-119">>,type = result,lang = <<"en">>,
from = {jid,<<>>,<<"vjud.cso.local">>,<<>>,<<>>,<<"vjud.cso.local">>,<<>>},
to =
{jid,<<"kibe">>,<<"cso.local">>,<<"Spark">>,<<"kibe">>,
<<"cso.local">>,<<"Spark">>},
sub_els =
[{search,undefined,undefined,undefined,undefined,undefined,[],
{xdata,result,[],<<"Search Results for vjud.cso.local">>,
[{xdata_field,<<"Full Name">>,'text-single',<<"FN">>,false,
<<>>,[],[],[]},
{xdata_field,<<"Nickname">>,'text-single',<<"NICKNAME">>,
false,<<>>,[],[],[]},
{xdata_field,<<"Email">>,'text-single',<<"EMAIL">>,false,
<<>>,[],[],[]}],
[],[]}}],
meta = #{ip => {10,1,7,39}}}
2017-11-22 03:08:40.268 [debug] <0.418.0>@ejabberd_sm:do_route:694 sending to process <0.498.0>:
#iq{id = <<"vZ0Yf-119">>,type = result,lang = <<"en">>,
from = {jid,<<>>,<<"vjud.cso.local">>,<<>>,<<>>,<<"vjud.cso.local">>,<<>>},
to =
{jid,<<"kibe">>,<<"cso.local">>,<<"Spark">>,<<"kibe">>,
<<"cso.local">>,<<"Spark">>},
sub_els =
[{search,undefined,undefined,undefined,undefined,undefined,[],
{xdata,result,[],<<"Search Results for vjud.cso.local">>,
[{xdata_field,<<"Full Name">>,'text-single',<<"FN">>,false,
<<>>,[],[],[]},
{xdata_field,<<"Nickname">>,'text-single',<<"NICKNAME">>,
false,<<>>,[],[],[]},
{xdata_field,<<"Email">>,'text-single',<<"EMAIL">>,false,
<<>>,[],[],[]}],
[],[]}}],
meta = #{ip => {10,1,7,39}}}
2017-11-22 03:08:40.268 [debug] <0.498.0>@mod_client_state:filter_other:267 Won't add stanza for kibe@cso.local/Spark to CSI queue
2017-11-22 03:08:40.268 [debug] <0.498.0>@mod_client_state:dequeue_sender:306 Flushing packets of @vjud.cso.local from CSI queue of kibe@cso.local/Spark
2017-11-22 03:08:40.268 [debug] <0.498.0>@ejabberd_socket:send:216 (tls|<0.497.0>) Send XML on stream = <<"Search Results for vjud.cso.local">>
2017-11-22 03:08:49.768 [info] <0.61.0>@ejabberd_listener:stop_listener:387 Stop accepting TCP connections at 0.0.0.0:5222 for ejabberd_c2s
2017-11-22 03:08:49.768 [info] <0.61.0>@ejabberd_listener:stop_listener:387 Stop accepting TCP connections at 0.0.0.0:5269 for ejabberd_s2s_in
2017-11-22 03:08:49.768 [info] <0.61.0>@ejabberd_listener:stop_listener:387 Stop accepting TCP connections at 0.0.0.0:5280 for ejabberd_http
2017-11-22 03:08:49.768 [debug] <0.498.0>@ejabberd_socket:send:216 (tls|<0.497.0>) Send XML on stream = <<"">>
2017-11-22 03:08:49.768 [debug] <0.498.0>@mod_pubsub:node_action:3541 node_action <<"pubsub.cso.local">> <<"flat">> get_entity_affiliations [<<"pubsub.cso.local">>,{<<"kibe">>,<<"cso.local">>,<<"Spark">>}]
2017-11-22 03:08:49.768 [debug] <0.498.0>@mod_pubsub:node_call:3522 node_call <<"flat">> get_entity_affiliations [<<"pubsub.cso.local">>,{<<"kibe">>,<<"cso.local">>,<<"Spark">>}]
2017-11-22 03:08:49.768 [debug] <0.498.0>@mod_pubsub:node_action:3541 node_action <<"pubsub.cso.local">> <<"pep">> get_entity_affiliations [<<"pubsub.cso.local">>,{<<"kibe">>,<<"cso.local">>,<<"Spark">>}]
2017-11-22 03:08:49.768 [debug] <0.498.0>@mod_pubsub:node_call:3522 node_call <<"pep">> get_entity_affiliations [<<"pubsub.cso.local">>,{<<"kibe">>,<<"cso.local">>,<<"Spark">>}]
2017-11-22 03:08:49.768 [info] <0.498.0>@ejabberd_c2s:process_terminated:272 (tls|<0.497.0>) Closing c2s session for kibe@cso.local/Spark: Stream closed by us: system-shutdown
2017-11-22 03:08:49.768 [debug] <0.498.0>@mod_carboncopy:disable:270 disabling for <<"kibe">>
2017-11-22 03:08:49.768 [debug] <0.498.0>@mod_shared_roster:unset_presence:763 unset_presence for <<"kibe">> @ <<"cso.local">> / <<"Spark">> -> <<"Stream closed by us: system-shutdown">> (0 resources)
2017-11-22 03:08:49.768 [debug] <0.498.0>@ejabberd_router_multicast:do_route:213 route multicast:
#presence{id = <<>>,type = unavailable,lang = <<>>,
from = {jid,<<"kibe">>,<<"cso.local">>,<<"Spark">>,<<"kibe">>,
<<"cso.local">>,<<"Spark">>},
to = {jid,<<"kibe">>,<<"cso.local">>,<<>>,<<"kibe">>,
<<"cso.local">>,<<>>},
show = undefined,
status = [#text{lang = <<"en">>,
data = <<"Stream closed by us: system-shutdown">>}],
priority = undefined,sub_els = [],meta = #{}}
Domain: cso.local
Destinations: kibe@cso.local
2017-11-22 03:08:49.768 [debug] <0.498.0>@ejabberd_router:do_route:337 route:
#presence{id = <<>>,type = unavailable,lang = <<>>,
from = {jid,<<"kibe">>,<<"cso.local">>,<<"Spark">>,<<"kibe">>,
<<"cso.local">>,<<"Spark">>},
to = {jid,<<"kibe">>,<<"cso.local">>,<<>>,<<"kibe">>,
<<"cso.local">>,<<>>},
show = undefined,
status = [#text{lang = <<"en">>,
data = <<"Stream closed by us: system-shutdown">>}],
priority = undefined,sub_els = [],meta = #{}}
2017-11-22 03:08:49.768 [debug] <0.498.0>@ejabberd_local:do_route:256 local route:
#presence{id = <<>>,type = unavailable,lang = <<>>,
from = {jid,<<"kibe">>,<<"cso.local">>,<<"Spark">>,<<"kibe">>,
<<"cso.local">>,<<"Spark">>},
to = {jid,<<"kibe">>,<<"cso.local">>,<<>>,<<"kibe">>,
<<"cso.local">>,<<>>},
show = undefined,
status = [#text{lang = <<"en">>,
data = <<"Stream closed by us: system-shutdown">>}],
priority = undefined,sub_els = [],meta = #{}}
2017-11-22 03:08:49.768 [debug] <0.497.0>@ejabberd_receiver:process_data:284 Received XML on stream = <<>>
2017-11-22 03:08:49.768 [debug] <0.497.0>@shaper:update:143 State: {maxrate,1000,61.66922593829601,1511348920265000}, Size=0
M=0.0, I=9.5e3
2017-11-22 03:08:49.768 [debug] <0.498.0>@ejabberd_sm:do_route:650 processing presence to bare JID:
#presence{id = <<>>,type = unavailable,lang = <<>>,
from = {jid,<<"kibe">>,<<"cso.local">>,<<"Spark">>,<<"kibe">>,
<<"cso.local">>,<<"Spark">>},
to = {jid,<<"kibe">>,<<"cso.local">>,<<>>,<<"kibe">>,
<<"cso.local">>,<<>>},
show = undefined,
status = [#text{lang = <<"en">>,
data = <<"Stream closed by us: system-shutdown">>}],
priority = undefined,sub_els = [],meta = #{}}
2017-11-22 03:08:49.768 [debug] <0.498.0>@ejabberd_socket:send:216 (tls|<0.497.0>) Send XML on stream = <<"">>
2017-11-22 03:08:49.784 [debug] <0.409.0>@ejabberd_router:unregister_route:188 Route unregistered: conference.cso.local
2017-11-22 03:08:49.784 [debug] <0.442.0>@mod_pubsub:terminate_plugins:388 ** terminate flat plugin
2017-11-22 03:08:49.784 [debug] <0.442.0>@mod_pubsub:terminate_plugins:388 ** terminate pep plugin
2017-11-22 03:08:49.784 [debug] <0.442.0>@ejabberd_router:unregister_route:188 Route unregistered: pubsub.cso.local
2017-11-22 03:08:49.784 [debug] <0.418.0>@ejabberd_router:unregister_route:188 Route unregistered: vjud.cso.local
2017-11-22 03:08:49.784 [debug] <0.392.0>@ejabberd_router:unregister_route:188 Route unregistered: cso.local
2017-11-22 03:08:49.800 [info] <0.61.0>@ejabberd_app:stop:79 ejabberd 17.09 is stopped in the node ejabberd@localhost
Here is my source code:
loglevel: 5
log_rotate_size: 10485760
log_rotate_date: ""
log_rotate_count: 1
log_rate_limit: 100
hosts:
##- "Jabber"
- "cso.local"
define_macro:
'CERTFILE': "C:\\ProgramData\\ejabberd\\conf\\server.pem"
## 'CIPHERS': "ECDH:DH:!3DES:!aNULL:!eNULL:!MEDIUM@STRENGTH"
'TLSOPTS':
- "no_sslv3"
listen:
-
port: 5222
ip: "0.0.0.0"
module: ejabberd_c2s
starttls: true
certfile: 'CERTFILE'
protocol_options: 'TLSOPTS'
## dhfile: 'DHFILE'
## ciphers: 'CIPHERS'
##
## To enforce TLS encryption for client connections,
## use this instead of the "starttls" option:
##
## starttls_required: true
##
## Stream compression
##
## zlib: true
##
max_stanza_size: 65536
shaper: c2s_shaper
access: c2s
-
port: 5269
ip: "0.0.0.0"
module: ejabberd_s2s_in
max_stanza_size: 131072
shaper: s2s_shaper
-
port: 5280
ip: "0.0.0.0"
module: ejabberd_http
request_handlers:
"/websocket": ejabberd_http_ws
"/api": mod_http_api
## "/pub/archive": mod_http_fileserver
web_admin: true
http_bind: true
## register: true
captcha: false
auth_method: ldap
##
## List of LDAP servers:
ldap_servers:
## - "localhost"
- "srvdc01.cso.local"
##
## Encryption of connection to LDAP servers:
ldap_encrypt: none
## ldap_encrypt: tls
##
## Port to connect to on LDAP servers:
ldap_port: 389
## ldap_port: 636
##
## LDAP manager:
## ldap_rootdn: "dc=example,dc=com"
ldap_rootdn: "cn=lixo,cn=Users,dc=cso,dc=local"
##
## Password of LDAP manager:
## ldap_password: "******"
ldap_password: "123456"
##
## Search base of LDAP directory:
## ldap_base: "dc=example,dc=com"
ldap_base: "ou=USUARIOS,dc=cso,dc=local"
##
## LDAP attribute that holds user ID:
## ldap_uids:
## - "mail": "%u@mail.example.org"
##ldap_uids: ["sAMAccountName","%u"]
ldap_uids: ["sAMAccountName"]
##ldap_uids:
## - "sAMAccountName"
##
## LDAP filter:
## ldap_filter: "(objectClass=shadowAccount)"
ldap_filter: "(&(objectCategory=person)(objectClass=user))"
shaper:
##
## The "normal" shaper limits traffic speed to 1000 B/s
##
normal: 1000
##
## The "fast" shaper limits traffic speed to 50000 B/s
##
fast: 50000
##
## This option specifies the maximum number of elements in the queue
## of the FSM. Refer to the documentation for details.
##
max_fsm_queue: 1000
###. ====================
###' ACCESS CONTROL LISTS
acl:
##
## The 'admin' ACL grants administrative privileges to XMPP accounts.
## You can put here as many accounts as you want.
##
admin:
user:
- "admin@Jabber"
- "administrator@cso.local"
local:
user_regexp: ""
loopback:
ip:
- "127.0.0.0/8"
shaper_rules:
## Maximum number of simultaneous sessions allowed for a single user:
max_user_sessions: 10
## Maximum number of offline messages that users can have:
max_user_offline_messages:
- 5000: admin
- 100
## For C2S connections, all users except admins use the "normal" shaper
c2s_shaper:
- none: admin
- normal
## All S2S connections use the "fast" shaper
s2s_shaper: fast
###. ============
###' ACCESS RULES
access_rules:
## This rule allows access only for local users:
local:
- allow: local
## Only non-blocked users can use c2s connections:
c2s:
- deny: blocked
- allow
## Only admins can send announcement messages:
announce:
- allow: admin
## Only admins can use the configuration interface:
configure:
- allow: admin
## Only accounts of the local ejabberd server can create rooms:
muc_create:
- allow: local
## Only accounts on the local ejabberd server can create Pubsub nodes:
pubsub_createnode:
- allow: local
## In-band registration allows registration of any possible username.
## To disable in-band registration, replace 'allow' with 'deny'.
register:
- allow
## Only allow to register from localhost
trusted_network:
- allow: loopback
api_permissions:
"console commands":
from:
- ejabberd_ctl
who: all
what: "*"
"admin access":
who:
- access:
- allow:
- ip: "127.0.0.1/8"
- ip: "10.0.0.0/8"
- acl: admin
- oauth:
- scope: "ejabberd:admin"
- access:
- allow:
- ip: "127.0.0.1/8"
- ip: "10.0.0.0/8"
- acl: admin
what:
- "*"
- "!stop"
- "!start"
"public commands":
who:
- ip: "127.0.0.1/8"
- ip: "10.0.0.0/8"
what:
- "status"
- "connected_users_number"
language: "en"
modules:
mod_adhoc: {}
mod_admin_extra: {}
mod_announce: # recommends mod_adhoc
access: announce
mod_blocking: {} # requires mod_privacy
mod_caps: {}
mod_carboncopy: {}
mod_client_state: {}
mod_configure: {} # requires mod_adhoc
## mod_delegation: {} # for xep0356
mod_disco: {}
## mod_echo: {}
## mod_irc: {}
mod_bosh: {}
mod_last: {}
mod_muc:
## host: "conference.@HOST@"
access:
- allow
access_admin:
- allow: admin
access_create: muc_create
access_persistent: muc_create
mod_muc_admin: {}
## mod_muc_log: {}
## mod_multicast: {}
mod_offline:
access_max_user_messages: max_user_offline_messages
mod_ping: {}
## mod_pres_counter:
## count: 5
## interval: 60
mod_privacy: {}
mod_private: {}
## mod_proxy65: {}
mod_pubsub:
access_createnode: pubsub_createnode
## reduces resource comsumption, but XEP incompliant
ignore_pep_from_offline: true
## XEP compliant, but increases resource comsumption
## ignore_pep_from_offline: false
last_item_cache: false
plugins:
- "flat"
- "pep" # pep requires mod_caps
mod_register:
welcome_message:
subject: "Welcome!"
body: |-
Hi.
Welcome to this XMPP server.
ip_access: trusted_network
access: register
mod_roster: {}
mod_shared_roster: {}
mod_version: {}
mod_stream_mgmt: {}
mod_s2s_dialback: {}
mod_http_api: {}
mod_vcard:
##mod_vcard_ldap:
##host: "jabber.cso.local"
db_type: ldap
search: true
##ldap_rootdn: "cn=lixo,cn=Users,dc=cso,dc=local"
##ldap_rootdn: "cn=administrator,OU=USUARIOS,dc=cso,dc=local"
##ldap_password: "sgicso"
ldap_base: "ou=USUARIOS,dc=cso,dc=local"
##ldap_uids:
## - "givenName"
##ldap_uids: ["sAMAccountName" ,"%u"]
##ldap_uids: ["sAMAccountName"]
##ldap_uids: {"mail": "%u@cso.local"}
##ldap_uids:
##"cn": "%u"
##ldap_filter: ""
##ldap_filter: "(memberOf=*)"
##ldap_filter: "(&(objectCategory=person)(objectClass=user))"
##matches: infinity
##search: true
ldap_vcard_map: ## It maps the LDAP attributes in to friendly names
"NICKNAME": {"%u": []}
##"NICKNAME": {"%u": ["nickname"]}
##"NICKNAME":
## "%u": []
"FN": {"%s": ["displayName"]}
##"MIDDLE": {"%s": ["initials"]}
##"FAMILY": {"%s": ["sn"]}
##"FIRST": {"%u": ["givenName"]}
##"LAST": {"%u": ["sn"]}
##"FIRST": {"%u": ["givenName"]}
##"LAST": {"%u": ["sn"]}
##"FN": {"%s": ["displayName"]}
##"EMAIL": {"%s": ["mail"]}
"EMAIL": {"%u@%d": []}
##"ORGNAME": {"%s": ["company"]}
##"ORGUNIT": {"%s": ["department"]}
##"CTRY": {"%s": ["c"]}
##"LOCALITY": {"%s": ["l"]}
##"STREET": {"%s": ["streetAddress"]}
##"REGION": {"%s": ["st"]}
##"PCODE": {"%s": ["postalCode"]}
##"TITLE": {"%s": ["title"]}
##"URL": {"%s": ["wWWHomePage"]}
##"DESC": {"%s": ["description"]}
##"TEL": {"%s": ["telephoneNumber"]}
ldap_search_fields: ##It specifies the posible search fields when you want to search an user
##"User": "%u"
"User": "uid"
##"User": "%u"
"Full Name": "displayName"
##"Family Name": "sn"
"Email": "mail"
##"Company": "company"
##"Department": "department"
##"Role": "title"
##"Description": "description"
##"Phone": "telephoneNumber"
ldap_search_reported: ## It specifies the reported fields as result of the search
"Full Name": "FN"
"Nickname": "NICKNAME"
"Email": "EMAIL"
allow_contrib_modules: true