List Info

Thread: ldap jabberd 1.4 md5




ldap jabberd 1.4 md5
user name
2006-10-02 04:27:56
hi all
i try to make ldap authentification? but compare ny
passwords is unsuccessful
Help me please
my slapd.conf have this

password-hash   
password-crypt-salt-format "$1$%.8s"
allow           bind_v2

my jabberd (multiple.xml) have this

 <xdb id="xdb_ldap">
   <ns>jabber:iq:auth:0k</ns>
   <ns>jabber:iq:auth</ns>
   <ns>vcard-temp</ns>
   <ns>jabber:jud:users</ns>
   <host/>
   <load>
    
<xdb_ldap>/usr/lib/jabberd/xdb_ldap.so</xdb_ldap>
;
   </load>
   <xdb_ldap xmlns="jabberddb_ld
ap:config">
     <connection>
       <host>ldap</host>
       <port>389</port>
      
<suffix>ou=Users,dc=domain,dc=org</suffix>
      
<rootdn>ou=Users,dc=domain,dc=org</rootdn>
       <uniqattr>uid</uniqattr>
      
<binddn>cn=jabber,ou=DSA,dc=domain,dc=org</binddn&g
t;
       <bindpw>secret</bindpw>
       <spool>/var/spool/jabber</spool>
     </connection>
     <spool><jabberd:cmdline 
flag='s'>/var/spool/jabber</jabberd:cmdline></sp
ool
>
   </xdb_ldap>
 </xdb

jabber -c multiple.xml -D show this (when user try logon,
user exist)

Mon Oct  2 10:27:13 2006  mio.c:418 write_dump writing data:
<iq type='result' 
i
d='auth_1'>
<query xmlns='jabber:iq:auth'>
<username>klim</username>
<password/><password/><digest/><resourc
e/></query>
</iq>
Mon Oct  2 10:27:13 2006  mio.c:816 mio while loop top
Mon Oct  2 10:27:13 2006  mio.c:829 mio while loop, working
Mon Oct  2 10:27:13 2006  mio.c:977 MIO read from socket 18:
<iq type="set" 
id="
auth_2" to="srv-dc" >
<query xmlns="jabber:iq:auth">
<username>klim</username>
<digest>23d8d7bad93edb4d103fa5817f0f31c38bbd2d94</d
igest>
<resource>test</resource>
</query>
</iq>
Mon Oct  2 10:27:13 2006  c2s [client.c:282]
pthsock_client_read called with: 
m:
811F930 flag:3 arg:811FA40
Mon Oct  2 10:27:13 2006  deliver.c:474 DELIVER 4:srv-dc
<route type='auth' 
to='
klimsrv-dc/test' from='18c2s/811F930'><iq
type='set' id='auth_2' 
to='srv-dc'>
<query xmlns='jabber:iq:auth'>
<username>klim</username>
<digest
sid='4520E981'>23d8d7bad93edb4d103fa5817f0f31c38bbd2d94&l
t;/digest>
<resource>test</resource>
</query>
</iq></route>
Mon Oct  2 10:27:13 2006  deliver.c:678 delivering to
instance 'sessions'
Mon Oct  2 10:27:13 2006  deliver.c:95 (80BCED0)incoming
packet <route 
type='aut
h' to='klimsrv-dc/test' from='18c2s/811F930'><iq
type='set' id='auth_2' 
to='sr
v-dc'>
<query xmlns='jabber:iq:auth'>
<username>klim</username>
<digest
sid='4520E981'>23d8d7bad93edb4d103fa5817f0f31c38bbd2d94&l
t;/digest>
<resource>test</resource>
</query>
</iq></route>
Mon Oct  2 10:27:13 2006  util.c:103 config query auth
Mon Oct  2 10:27:13 2006  mtq 8123000 entering from pth
Mon Oct  2 10:27:13 2006  mtq 8123000 one call 821B500
Mon Oct  2 10:27:13 2006  authreg.c:63 auth request
Mon Oct  2 10:27:13 2006  users.c:143 js_user(klimsrv-dc,81234D8)
Mon Oct  2 10:27:13 2006  modules.c:135 mapi_call 5
Mon Oct  2 10:27:13 2006  modules.c:158 MAPI 80C5740
Mon Oct  2 10:27:13 2006  mod_auth_plain checking
Mon Oct  2 10:27:13 2006  modules.c:158 MAPI 80C57D0
Mon Oct  2 10:27:13 2006  mod_auth_crypt checking
Mon Oct  2 10:27:13 2006  modules.c:158 MAPI 80C5860
Mon Oct  2 10:27:13 2006  mod_auth_digest checking
Mon Oct  2 10:27:13 2006  mod_auth_digest Got SID: 4520E981
Mon Oct  2 10:27:13 2006  mod_auth_digest comparing 
23d8d7bad93edb4d103fa5817f0f
31c38bbd2d94 fb7386a6a64e6e0b3202fffa251a0371ba6cc8e2
Mon Oct  2 10:27:13 2006  deliver.c:474 DELIVER 4:c2s
<route 
from='klimsrv-dc/t
est' to='18c2s/811F930' type='auth'><iq type='error'
id='auth_2'>
<query xmlns='jabber:iq:auth'>
<username>klim</username>
<digest
sid='4520E981'>23d8d7bad93edb4d103fa5817f0f31c38bbd2d94&l
t;/digest>
<resource>test</resource>
</query>
<error
code='401'>Unauthorized</error></iq></rout
e>
_______________________________________________
JAdmin mailing list
JAdminjabber.org
http:/
/mail.jabber.org/mailman/listinfo/jadmin
FAQ: http://ww
w.jabber.org/about/jadminfaq.shtml
_______________________________________________
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )