[ejabberd] Cant get auth pam to work

Jon Bendtsen jbendtsen at laerdal.dk
Fri Jun 19 21:04:10 MSD 2009


Hi

I cant get auth pam to work.

-rwsr-x--- 1 root ejabberd 88012 Apr 16 02:09 /usr/lib/ejabberd/priv/ 
bin/epam

{auth_method, pam}.
{pam_service, "ejabberd"}.


cat ../pam.d/ejabberd
----------------------------------
auth        sufficient  pam_winbind.so
account     sufficient  pam_winbind.so


i connect using adium 1.3.4




auth.log:
Jun 19 16:57:48 dkjabber epam: pam_winbind(ejabberd:auth): getting  
password (0x00000000)
Jun 19 16:57:48 dkjabber epam: pam_winbind(ejabberd:auth): user  
'**********' granted access


So far so good, but

ejabberd.log:
---------------------------------
=INFO REPORT==== 2009-06-19 16:57:48 ===
I(<0.252.0>:ejabberd_listener:112) : (#Port<0.464>) Accepted  
connection {{192,168,119,15},52094} -> {{
192,168,123,224},5222}

=INFO REPORT==== 2009-06-19 16:57:48 ===
D(<0.371.0>:ejabberd_receiver:297) : Received XML on stream = "<?xml  
version='1.0' ?><stream:stream to
='dkjabber.laerdal.global' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' 
  version='1.0'>"

=INFO REPORT==== 2009-06-19 16:57:48 ===
D(<0.372.0>:ejabberd_c2s:1336) : Send XML on stream = "<?xml  
version='1.0'?><stream:stream xmlns='jabb
er:client' xmlns:stream='http://etherx.jabber.org/streams'  
id='2754733196' from='dkjabber.laerdal.glob
al' version='1.0' xml:lang='en'>"

=INFO REPORT==== 2009-06-19 16:57:48 ===
D(<0.372.0>:ejabberd_c2s:1336) : Send XML on stream =  
"<stream:features><starttls xmlns='urn:ietf:para
ms:xml:ns:xmpp-tls'/><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl' 
 ><mechanism>PLAIN</mechanism></mechanisms><register xmlns='http://jabber.org/features/iq-register'/ 
 ></stream:features>"
=INFO REPORT==== 2009-06-19 16:57:48 ===
D(<0.371.0>:ejabberd_receiver:297) : Received XML on stream =  
"<starttls xmlns='urn:ietf:params:xml:ns
:xmpp-tls'/>"=INFO REPORT==== 2009-06-19 16:57:48 ===
D(<0.371.0>:shaper:61) : State: {maxrate,1000,0,1245430668443023},  
Size=51
M=25.5, I=6.774
=INFO REPORT==== 2009-06-19 16:57:48 ===
D(<0.371.0>:ejabberd_receiver:297) : Received XML on stream = []

=INFO REPORT==== 2009-06-19 16:57:48 ===
D(<0.371.0>:shaper:61) : State: {maxrate,1000,988.9854173130624,
                                    1245430668468807}, Size=0
M=0.0, I=-17.622


=INFO REPORT==== 2009-06-19 16:57:48 ===
D(<0.371.0>:ejabberd_receiver:297) : Received XML on stream = []

=INFO REPORT==== 2009-06-19 16:57:48 ===
D(<0.371.0>:shaper:61) : State: {maxrate,1000,494.4927086565312,
                                    1245430668469196}, Size=0M=0.0,  
I=1.79


=INFO REPORT==== 2009-06-19 16:57:48 ===
D(<0.371.0>:ejabberd_receiver:297) : Received XML on stream = []

=INFO REPORT==== 2009-06-19 16:57:48 ===
D(<0.371.0>:shaper:61) : State: {maxrate,1000,247.2463543282656,
                                    1245430668470995}, Size=0
M=0.0, I=1.363
=INFO REPORT==== 2009-06-19 16:57:48 ===
D(<0.371.0>:ejabberd_receiver:297) : Received XML on stream = []
=INFO REPORT==== 2009-06-19 16:57:48 ===D(<0.371.0>:shaper:61) :  
State: {maxrate,1000,123.6231771641328,
                                    1245430668472376}, Size=0
M=0.0, I=43.639
=INFO REPORT==== 2009-06-19 16:57:48 ===
D(<0.371.0>:ejabberd_receiver:297) : Received XML on stream =  
"<stream:stream to='dkjabber.laerdal.glo
bal' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' 
  version='1.0'>"

=INFO REPORT==== 2009-06-19 16:57:48 ===
D(<0.371.0>:shaper:61) : State: {maxrate,1000,61.8115885820664,
                                    1245430668516037}, Size=128
M=66.04105114133779, I=1.106

=INFO REPORT==== 2009-06-19 16:57:48 ===
D(<0.372.0>:ejabberd_c2s:1336) : Send XML on stream = "<?xml  
version='1.0'?><stream:stream xmlns='jabb
er:client' xmlns:stream='http://etherx.jabber.org/streams'  
id='1054452830' from='dkjabber.laerdal.global' version='1.0'  
xml:lang='en'>"

=INFO REPORT==== 2009-06-19 16:57:48 ===
D(<0.372.0>:ejabberd_c2s:1336) : Send XML on stream =  
"<stream:features><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp- 
sasl'><mechanism>PLAIN</mechanism></mechanisms><register xmlns='http://jabber.org/features/iq-register'/ 
 ></stream:features>"

=INFO REPORT==== 2009-06-19 16:57:48 ===
D(<0.371.0>:ejabberd_receiver:297) : Received XML on stream = "<auth  
xmlns='urn:ietf:params:xml:ns:xmpp-sasl' xmlns:ga='http://www.google.com/talk/protocol/auth' 
  ga:client-uses-full-bind-result='true'  
mechanism='PLAIN'>AGRramJlMQBzbHRwaGMxMzMw</auth>"

=INFO REPORT==== 2009-06-19 16:57:48 ===
D(<0.371.0>:shaper:61) : State: {maxrate,1000,0,1245430668518092},  
Size=187
M=93.5, I=65.208


=INFO REPORT==== 2009-06-19 16:57:48 ===
I(<0.372.0>:ejabberd_c2s:565) : ({socket_state,tls, 
{tlssock,#Port<0.464>,#Port<0.466>},<0.371.0>}) Failed authentication  
for ********@dkjabber.laerdal.global

=INFO REPORT==== 2009-06-19 16:57:48 ===
D(<0.372.0>:ejabberd_c2s:1336) : Send XML on stream = "<failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl' 
 ><not-authorized/></failure>"




More information about the ejabberd mailing list