Jean de Largentaye wrote:
Hello,
To use the "mail attribute instead of the "uid" attribute, along with
the realm, put
<uidattr>mail</uidattr>
<append-realm/>
in the <ldap> section of your c2s.xml. This should behave as you are expecting.
hope this helps.
John
Hello John, thank you for reply.
Im now trying to setup jabberd-2.2.3 with this auth scheme.
My storage is "db", and auth is ldap.
Im use <query>(&([EMAIL PROTECTED])(objectClass=mailUser))</query> to
lookup my users.
All seems fine - jabberd2 starting and waiting for connections.
Im use Psi client.
[EMAIL PROTECTED]
host:%ip of my test server%
Im trying to connect but Psi says what all failed.
In logs AFTER im trying to connect:
%cat var/jabberd/log/router.log
Wed Sep 3 18:23:39 2008 [notice] [127.0.0.1, port=49606] disconnect
Wed Sep 3 18:23:39 2008 [notice] [domain.off] offline
Wed Sep 3 18:23:39 2008 [notice] shutting down
Wed Sep 3 18:23:39 2008 [notice] [127.0.0.1, port=65435] disconnect
Wed Sep 3 18:23:39 2008 [notice] [c2s] offline
%cat /var/jabberd/log/c2s.log
Wed Sep 3 18:23:39 2008 [notice] [6] [172.16.1.80, port=53962] connect
Wed Sep 3 18:23:39 2008 [notice] [6] SASL authentication succeeded:
mechanism=PLAIN; [EMAIL PROTECTED]
Wed Sep 3 18:23:39 2008 [notice] [6] bound:
[EMAIL PROTECTED]/proskurin-kv
Wed Sep 3 18:23:39 2008 [notice] [6] [172.16.1.80, port=53962]
disconnect [EMAIL PROTECTED]/proskurin-kv, packets: 1
Wed Sep 3 18:23:39 2008 [notice] shutting down
in sm.log - nothing.
and all jabberd2 process are dead.
Im feel what something wrong in my setup...
In attachment jabberd -D after im trying to connect.
--
Best regards,
Proskurin Kirill
C2S : Wed Sep 3 18:32:06 2008 [notice] ready for connections
C2S : Wed Sep 3 18:32:30 2008 c2s.c:562 accept action on fd 6
C2S : Wed Sep 3 18:32:30 2008 [notice] [6] [172.16.1.80, port=52829] connect
C2S : sx (sx.c:53) allocated new sx for 6
C2S : sx (server.c:236) doing server init for sx 6
C2S : sx (server.c:251) waiting for stream header
C2S : sx (server.c:254) tag 6 event 0 data 0x0
C2S : Wed Sep 3 18:32:30 2008 c2s.c:35 want read
C2S : Wed Sep 3 18:32:30 2008 c2s.c:525 read action on fd 6
C2S : sx (io.c:190) 6 ready for reading
C2S : sx (io.c:196) tag 6 event 2 data 0x80725a0
C2S : Wed Sep 3 18:32:30 2008 c2s.c:45 reading from 6
C2S : Wed Sep 3 18:32:30 2008 c2s.c:104 read 202 bytes
C2S : Wed Sep 3 18:32:30 2008 [notice] [6] SASL authentication succeeded:
mechanism=PLAIN; [EMAIL PROTECTED]
C2S : sx (io.c:213) passed 202 read bytes
C2S : sx (chain.c:93) calling io read chain
C2S : sx (io.c:237) decoded read data (202 bytes): <?xml version="1.0"?>
C2S : <stream:stream xmlns:stream="http://etherx.jabber.org/streams"
version="1.0" xmlns="jabber:client" to="domain.off" xml:lang="en"
xmlns:xml="http://www.w3.org/XML/1998/namespace" >
C2S :
C2S : sx (server.c:118) stream request: to domain.off from (null) version 1.0
C2S : sx (server.c:133) 6 state change from 0 to 1
C2S : sx (server.c:151) stream id is pd9vl182v04xnosi79e66j59upqw992nb3ff28c3
C2S : sx (server.c:181) prepared stream response: <?xml
version='1.0'?><stream:stream xmlns:stream='http://etherx.jabber.org/streams'
xmlns='jabber:client' from='domain.off' version='1.0'
id='pd9vl182v04xnosi79e66j59upqw992nb3ff28c3'>
SM : Wed Sep 3 18:32:05 2008 [notice] module 'disco' added to chain
'pkt-router' (order 1 index 9 seq 2)
ROUT: sx (chain.c:119) calling nad read chain
C2S : Wed Sep 3 18:32:30 2008 [notice] [6] bound: [EMAIL
PROTECTED]/proskurin-kv
SM : sx (chain.c:119) calling nad read chain
C2S : sx (io.c:253) tag 6 event 1 data 0x0
ROUT: Wed Sep 3 18:32:06 2008 [notice] [c2s] online (bound to 127.0.0.1, port
64243)
SM : Wed Sep 3 18:32:05 2008 [notice] module 'active' added to chain
'user-load' (order 0 index 21 seq 0)
ROUT: sx (io.c:155) tag 6 event 6 data 0x8072380
C2S : Wed Sep 3 18:32:30 2008 [notice] [6] [172.16.1.80, port=52829]
disconnect [EMAIL PROTECTED]/proskurin-kv, packets: 1
SM : sx (io.c:155) tag 4 event 6 data 0x807af00
C2S : Wed Sep 3 18:32:30 2008 c2s.c:40 want write
ROUT: Wed Sep 3 18:32:06 2008 [notice] [127.0.0.1, port=59981] authenticated
as [EMAIL PROTECTED]
SM : Wed Sep 3 18:32:05 2008 [notice] module 'roster' added to chain
'user-load' (order 1 index 4 seq 2)
ROUT: Wed Sep 3 18:32:06 2008 router.c:379 unicast route from domain.off to c2s
SM : Wed Sep 3 18:32:06 2008 sm.c:181 got a packet from router, but we're not
online, dropping
C2S : Wed Sep 3 18:32:30 2008 c2s.c:539 write action on fd 6
ROUT: Wed Sep 3 18:32:06 2008 [notice] [domain.off] online (bound to
127.0.0.1, port 59981)
SM : Wed Sep 3 18:32:05 2008 [notice] module 'roster-publish' added to chain
'user-load' (order 2 index 22 seq 0)
ROUT: Wed Sep 3 18:32:06 2008 router.c:424 writing route for 'c2s' to
127.0.0.1, port 64243
SM : Wed Sep 3 18:32:06 2008 sm.c:232 read action on fd 4
C2S : sx (io.c:325) 6 ready for writing
ROUT: Wed Sep 3 18:32:30 2008 [notice] [127.0.0.1, port=59981] disconnect
SM : Wed Sep 3 18:32:05 2008 [notice] module 'privacy' added to chain
'user-load' (order 3 index 3 seq 3)
ROUT: sx (chain.c:106) calling nad write chain
SM : sx (io.c:190) 4 ready for reading
C2S : sx (io.c:283) encoding 184 bytes for writing: <?xml
version='1.0'?><stream:stream xmlns:stream='http://etherx.jabber.org/streams'
xmlns='jabber:client' from='domain.off' version='1.0'
id='pd9vl182v04xnosi79e66j59upqw992nb3ff28c3'>
SM : Wed Sep 3 18:32:05 2008 [notice] module 'disco-publish' added to chain
'user-load' (order 4 index 20 seq 1)
ROUT: sx (io.c:403) queueing for write: <route
xmlns='http://jabberd.jabberstudio.org/ns/component/1.0' to='c2s'
from='domain.off'><iq xmlns='jabber:client' type='get' to='c2s'
from='domain.off' id='pd9vl182'><query
xmlns='http://jabber.org/protocol/disco#info'/></iq></route>
SM : sx (io.c:196) tag 4 event 2 data 0x8070d60
C2S : sx (chain.c:79) calling io write chain
SM : Wed Sep 3 18:32:05 2008 [notice] module 'vacation' added to chain
'user-load' (order 5 index 5 seq 2)
ROUT: sx (io.c:426) tag 5 event 1 data 0x0
SM : Wed Sep 3 18:32:06 2008 sm.c:53 reading from 4
C2S : sx (io.c:346) handing app 184 bytes to write
SM : Wed Sep 3 18:32:05 2008 [notice] module 'active' added to chain
'user-create' (order 0 index 21 seq 1)
ROUT: Wed Sep 3 18:32:06 2008 router.c:520 want write
SM : Wed Sep 3 18:32:06 2008 sm.c:78 read 143 bytes
C2S : sx (io.c:347) tag 6 event 3 data 0x80725c0
SM : Wed Sep 3 18:32:05 2008 [notice] module 'template-roster' added to chain
'user-create' (order 1 index 23 seq 0)
ROUT: Wed Sep 3 18:32:06 2008 router.c:869 write action on fd 5
SM : sx (io.c:213) passed 143 read bytes
C2S : Wed Sep 3 18:32:30 2008 c2s.c:142 writing to 6
SM : Wed Sep 3 18:32:05 2008 [notice] module 'active' added to chain
'user-delete' (order 0 index 21 seq 2)
ROUT: sx (io.c:325) 5 ready for writing
SM : sx (chain.c:93) calling io read chain
C2S : Wed Sep 3 18:32:30 2008 c2s.c:146 184 bytes written
SM : Wed Sep 3 18:32:05 2008 [notice] module 'announce' added to chain
'user-delete' (order 1 index 12 seq 2)
ROUT: sx (io.c:283) encoding 236 bytes for writing: <route
xmlns='http://jabberd.jabberstudio.org/ns/component/1.0' to='c2s'
from='domain.off'><iq xmlns='jabber:client' type='get' to='c2s'
from='domain.off' id='pd9vl182'><query
xmlns='http://jabber.org/protocol/disco#info'/></iq></route>
SM : sx (io.c:237) decoded read data (143 bytes): <bind
xmlns='http://jabberd.jabberstudio.org/ns/component/1.0'/><presence
xmlns='http://jabberd.jabberstudio.org/ns/component/1.0' from='c2s'/>
C2S : sx (server.c:29) stream established
SM : Wed Sep 3 18:32:05 2008 [notice] module 'disco-publish' added to chain
'user-delete' (order 2 index 20 seq 2)
ROUT: sx (chain.c:79) calling io write chain
SM : sx (io.c:91) completed nad: <bind
xmlns='http://jabberd.jabberstudio.org/ns/component/1.0'/>
C2S : sx (server.c:39) 6 state change from 1 to 3
SM : Wed Sep 3 18:32:05 2008 [notice] module 'offline' added to chain
'user-delete' (order 3 index 11 seq 2)
ROUT: sx (io.c:346) handing app 236 bytes to write
SM : sx (chain.c:119) calling nad read chain
C2S : sx (server.c:40) tag 6 event 4 data 0x0
SM : Wed Sep 3 18:32:05 2008 [notice] module 'privacy' added to chain
'user-delete' (order 4 index 3 seq 4)
ROUT: sx (io.c:347) tag 5 event 3 data 0x8069780
SM : sx (io.c:155) tag 4 event 6 data 0x807af00
C2S : sx (server.c:45) building features nad
SM : Wed Sep 3 18:32:05 2008 [notice] module 'roster' added to chain
'user-delete' (order 5 index 4 seq 3)
ROUT: Wed Sep 3 18:32:06 2008 router.c:590 writing to 5
SM : Wed Sep 3 18:32:06 2008 sm.c:193 coming online
C2S : sx (sasl_gsasl.c:225) offering sasl mechanisms
SM : Wed Sep 3 18:32:05 2008 [notice] module 'vacation' added to chain
'user-delete' (order 6 index 5 seq 3)
ROUT: Wed Sep 3 18:32:06 2008 router.c:594 236 bytes written
SM : sx (io.c:91) completed nad: <presence
xmlns='http://jabberd.jabberstudio.org/ns/component/1.0' from='c2s'/>
C2S : sx (sasl_gsasl.c:627) in _sx_sasl_gsasl_callback, property: 5
SM : Wed Sep 3 18:32:05 2008 [notice] module 'status' added to chain
'user-delete' (order 7 index 0 seq 4)
ROUT: sx (io.c:380) tag 5 event 0 data 0x0
SM : sx (chain.c:119) calling nad read chain
C2S : sx (sasl_gsasl.c:627) in _sx_sasl_gsasl_callback, property: 6
SM : Wed Sep 3 18:32:05 2008 [notice] module 'iq-last' added to chain
'user-delete' (order 8 index 1 seq 3)
ROUT: Wed Sep 3 18:32:06 2008 router.c:515 want read
SM : sx (io.c:155) tag 4 event 6 data 0x809c080
C2S : sx (sasl_gsasl.c:245) offering mechanism: PLAIN
SM : Wed Sep 3 18:32:05 2008 [notice] module 'iq-private' added to chain
'user-delete' (order 9 index 8 seq 1)
ROUT: sx (io.c:428) tag 5 event 0 data 0x0
SM : Wed Sep 3 18:32:06 2008 sm.c:203 got a packet
C2S : sx (compress.c:126) offering compression
SM : Wed Sep 3 18:32:05 2008 [notice] module 'iq-vcard' added to chain
'user-delete' (order 10 index 6 seq 2)
ROUT: Wed Sep 3 18:32:06 2008 router.c:515 want read
SM : Wed Sep 3 18:32:06 2008 pkt.c:107 creating new packet
C2S : Wed Sep 3 18:32:30 2008 bind.c:38 not auth'd, offering auth and register
SM : Wed Sep 3 18:32:05 2008 [notice] module 'iq-version' added to chain
'disco-extend' (order 0 index 17 seq 1)
ROUT: Wed Sep 3 18:32:30 2008 router.c:855 read action on fd 5
SM : Wed Sep 3 18:32:06 2008 mm.c:622 dispatching pkt-router chain
C2S : sx (io.c:380) tag 6 event 0 data 0x0
SM : Wed Sep 3 18:32:05 2008 [notice] module 'help' added to chain
'disco-extend' (order 1 index 18 seq 1)
SM : Wed Sep 3 18:32:06 2008 mm.c:635 calling module session
C2S : Wed Sep 3 18:32:30 2008 c2s.c:35 want read
SM : Wed Sep 3 18:32:05 2008 [notice] version: jabberd sm 2.2.3
SM : Wed Sep 3 18:32:06 2008 mm.c:635 calling module disco
C2S : Wed Sep 3 18:32:30 2008 c2s.c:539 write action on fd 6
SM : Wed Sep 3 18:32:05 2008 [notice] attempting connection to router at
127.0.0.1, port=5347
SM : Wed Sep 3 18:32:06 2008 mod_disco.c:566 presence from component c2s,
issuing discovery request
C2S : sx (io.c:325) 6 ready for writing
SM : Wed Sep 3 18:32:06 2008 [notice] connection to router established
SM : Wed Sep 3 18:32:06 2008 pkt.c:107 creating new packet
C2S : sx (io.c:283) encoding 319 bytes for writing: <stream:features
xmlns:stream='http://etherx.jabber.org/streams'><mechanisms
xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>PLAIN</mechanism></mechanisms><compression
xmlns='http://jabber.org/features/compress'><method>zlib</method></compression><auth
xmlns='http://jabber.org/features/iq-auth'/></stream:features>
SM : Wed Sep 3 18:32:06 2008 [notice] ready for sessions
SM : Wed Sep 3 18:32:06 2008 pkt.c:366 delivering pkt to router
C2S : sx (chain.c:79) calling io write chain
ERROR: sm died. Shutting down server.
JBRD: Got a signal... pass it on.
JBRD: It was a TERM. Shut it all down!