[Date Prev][Date Next] [Chronological] [Thread] [Top]

decodingerror while SASL Authentification (ITS#791)



Full_Name: Rudolf Weber
Version: 2.0.4
OS: linux-2.2.16
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (195.226.100.142)



cyrus-sasl-1.5.24

Calling simply ldapserch -x works,
calling simply  ldapserch don't work, because the is a decoding-error in the
Server , its authentificate with sasl, the Mechanisms are returned and then
the connection ist closed with a decoding-Error:

slapd -d -1 :

>daemon: select: listen=6 active_threads=0 tvp=NULL
>daemon: activity on 1 descriptors
>daemon: select: listen=6 active_threads=0 tvp=NULL
>daemon: activity on 1 descriptors
>daemon: new connection on 9
>daemon: conn=3 fd=9 connection from IP=127.0.0.1:1577 (IP=:: 389) accepted.
>daemon: added 9r
>daemon: activity on:
>daemon: select: listen=6 active_threads=0 tvp=NULL
>daemon: activity on 1 descriptors
>daemon: activity on: 9r
>daemon: read activity on 9
>connection_get(9)
>connection_get(9): got connid=3
>connection_read(9): checking for input on id=3
>ber_get_next
>sockbuf_read: want=1, got=1
>         0 
>sockbuf_read: want=1, got=1
>         > 
>sockbuf_read: want=62, got=62
>        02 01 01  c  9 04 00 0a 01 00 0a 01 00 02 01 00
>        02 01 00 01 01 00 87 0b  o  b  j  e  c  t  c  l
>         a  s  s  0 19 04 17  s  u  p  p  o  r  t  e  d
>         S  A  S  L  M  e  c  h  a  n  i  s  m  s 
>ber_get_next: tag 0x30 len 62 contents:
>ber_dump: buf 0x80db488, ptr 0x80db488, end 0x80db4c6
>        02 01 01  c  9 04 00 0a 01 00 0a 01 00 02 01 00
>        02 01 00 01 01 00 87 0b  o  b  j  e  c  t  c  l
>         a  s  s  0 19 04 17  s  u  p  p  o  r  t  e  d
>         S  A  S  L  M  e  c  h  a  n  i  s  m  s 
>ber_get_next
>sockbuf_read: want=1 error=Resource temporarily unavailable
>ber_get_next on fd 9 failed errno=11 (Resource temporarily unavailable)
>do_search
>ber_scanf fmt ({aiiiib) ber:
>ber_dump: buf 0x80db488, ptr 0x80db48b, end 0x80db4c6
>         c  9 04 00 0a 01 00 0a 01 00 02 01 00 02 01 00
>        01 01 00 87 0b  o  b  j  e  c  t  c  l  a  s  s
>         0 19 04 17  s  u  p  p  o  r  t  e  d  S  A  S
>         L  M  e  c  h  a  n  i  s  m  s 
>SRCH "" 0 0    0 0 0
>begin get_filter
>PRESENT
>ber_scanf fmt (o) ber:
>ber_dump: buf 0x80db488, ptr 0x80db49e, end 0x80db4c6
>        87 0b  o  b  j  e  c  t  c  l  a  s  s  0 19 04
>        17  s  u  p  p  o  r  t  e  d  S  A  S  L  M  e
>         c  h  a  n  i  s  m  s 
>end get_filter 0
>    filter: (objectClass=*)
>ber_scanf fmt ({v}}) ber:
>ber_dump: buf 0x80db488, ptr 0x80db4ab, end 0x80db4c6
>         0 19 04 17  s  u  p  p  o  r  t  e  d  S  A  S
>         L  M  e  c  h  a  n  i  s  m  s 
>    attrs: supportedSASLMechanisms
>conn=3 op=0 SRCH base="" scope=0 filter="(objectClass=*)"
>=> test_filter
>    PRESENT
><= test_filter 6
>=> send_search_entry: ""
>=> access_allowed: read access to "" "entry" requested
>=> access_allowed: backend default read access granted to ""
>=> access_allowed: read access to "" "supportedSASLMechanisms" requested
>=> access_allowed: backend default read access granted to ""
>=> access_allowed: read access to "" "supportedSASLMechanisms" requested
>=> access_allowed: backend default read access granted to ""
>=> access_allowed: read access to "" "supportedSASLMechanisms" requested
>=> access_allowed: backend default read access granted to ""
>ber_flush: 62 bytes to sd 9
>         0  < 02 01 01  d  7 04 00  0  3  0  1 04 17  s
>         u  p  p  o  r  t  e  d  S  A  S  L  M  e  c  h
>         a  n  i  s  m  s  1 16 04 0a  D  I  G  E  S  T
>         -  M  D  5 04 08  C  R  A  M  -  M  D  5 
>sockbuf_write: want=62, written=62
>         0  < 02 01 01  d  7 04 00  0  3  0  1 04 17  s
>         u  p  p  o  r  t  e  d  S  A  S  L  M  e  c  h
>         a  n  i  s  m  s  1 16 04 0a  D  I  G  E  S  T
>         -  M  D  5 04 08  C  R  A  M  -  M  D  5 
>conn=3 op=0 ENTRY dn=""
><= send_search_entry
>send_ldap_result: conn=3 op=0 p=3
>send_ldap_result: 0::
>send_ldap_response: msgid=1 tag=101 err=0
>ber_flush: 14 bytes to sd 9
>         0 0c 02 01 01  e 07 0a 01 00 04 00 04 00 
>sockbuf_write: want=14, written=14
>         0 0c 02 01 01  e 07 0a 01 00 04 00 04 00 
>conn=3 op=0 RESULT tag=101 err=0 text=
>daemon: select: listen=6 active_threads=1 tvp=NULL
>daemon: activity on 1 descriptors
>daemon: activity on: 9r
>daemon: read activity on 9
>connection_get(9)
>connection_get(9): got connid=3
>connection_read(9): checking for input on id=3
>ber_get_next
>sockbuf_read: want=1, got=1
>         0 
>sockbuf_read: want=1, got=1
>        18 
>sockbuf_read: want=24, got=24
>        02 01 02  ` 13 02 01 03 04 00 a3 0c 04 0a  D  I
>         G  E  S  T  -  M  D  5 
>ber_get_next: tag 0x30 len 24 contents:
>ber_dump: buf 0x80db7b0, ptr 0x80db7b0, end 0x80db7c8
>        02 01 02  ` 13 02 01 03 04 00 a3 0c 04 0a  D  I
>         G  E  S  T  -  M  D  5 
>do_bind
>ber_get_next
>sockbuf_read: want=1 error=Resource temporarily unavailable
>ber_get_next on fd 9 failed errno=11 (Resource temporarily unavailable)
>ber_scanf fmt ({iat) ber:
>ber_dump: buf 0x80db7b0, ptr 0x80db7b3, end 0x80db7c8
>         ` 13 02 01 03 04 00 a3 0c 04 0a  D  I  G  E  S
>         T  -  M  D  5 
>ber_scanf fmt ({a) ber:
>ber_dump: buf 0x80db7b0, ptr 0x80db7ba, end 0x80db7c8
>        a3 0c 04 0a  D  I  G  E  S  T  -  M  D  5 
>send_ldap_disconnect 2:decoding error
>send_ldap_response: msgid=0 tag=120 err=2
>ber_flush: 52 bytes to sd 9
>         0  2 02 01 00  x  - 0a 01 02 04 00 04 0e  d  e
>         c  o  d  i  n  g 20  e  r  r  o  r 8a 16  1  .
>         3  .  6  .  1  .  4  .  1  .  1  4  6  6  .  2
>         0  0  3  6 
>sockbuf_write: want=52, written=52
>         0  2 02 01 00  x  - 0a 01 02 04 00 04 0e  d  e
>         c  o  d  i  n  g 20  e  r  r  o  r 8a 16  1  .
>         3  .  6  .  1  .  4  .  1  .  1  4  6  6  .  2
>         0  0  3  6 
>conn=3 op=1 DISCONNECT err=120 tag=2 text=decoding error
>connection_closing: readying conn=3 sd=9 for close
>connection_resched: reaquiring locks conn=3 sd=9
>connection_resched: attempting closing conn=3 sd=9
>connection_close: conn=3 sd=9
>daemon: removing 9
>conn=-1 fd=9 closed
>daemon: select: listen=6 active_threads=0 tvp=NULL
>daemon: activity on 1 descriptors
>daemon: select: listen=6 active_threads=0 tvp=NULL
>
Is this a protocoll-error ?

Gretings
  Rudolf Weber

( Kurt D. Zeilenga ask me to resumit ITS#784)