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

RE: Numerical result out of range (ITS#2465)



Here what I did :

(From clean sources)
cvs diff -r1.87 -r1.90 pkg/ldap/libraries/liblber/io.c => OK 

./configure (with the same flags) OK
make depend => OK
make => OK
make test => OK
make install => OK

I tested the authentication through courier-imap and i had the same error :
.....
ldap_read: want=9, got=9
  0000:  30 06 02 01 03 50 01 02  30                        0....P..0
ber_get_next on fd 12 failed errno=34 (Numerical result out of range)
connection_read(12): input error=-2 id=6, closing.
....


Here is the debug of slapd :
----------------------------

daemon: activity on 1 descriptors
daemon: new connection on 12
daemon: added 12r
daemon: activity on:
daemon: select: listen=6 active_threads=0 tvp=NULL
daemon: activity on 1 descriptors
daemon: activity on: 12r
daemon: read activity on 12
connection_get(12)
connection_get(12): got connid=6
connection_read(12): checking for input on id=6
ber_get_next
ldap_read: want=9, got=9
  0000:  30 2b 02 01 01 60 26 02  01                        0+...`&..
ldap_read: want=36, got=36
  0000:  03 04 16 63 6e 3d 41 64  6d 69 6e 2c 64 63 3d 6c   ...cn=Admin,dc=l
  0010:  61 62 6f 2c 64 63 3d 62  65 80 09 6d 61 79 62 65   abo,dc=be..maybe
  0020:  61 64 61 79                                        aday
ber_get_next: tag 0x30 len 43 contents:
ber_dump: buf=0x081e8fe8 ptr=0x081e8fe8 end=0x081e9013 len=43
  0000:  02 01 01 60 26 02 01 03  04 16 63 6e 3d 41 64 6d   ...`&.....cn=Adm
  0010:  69 6e 2c 64 63 3d 6c 61  62 6f 2c 64 63 3d 62 65   in,dc=labo,dc=be
  0020:  80 09 6d 61 79 62 65 61  64 61 79                  ..maybeaday
ber_get_next
ldap_read: want=9 error=Resource temporarily unavailable
ber_get_next on fd 12 failed errno=11 (Resource temporarily unavailable)
daemon: select: listen=6 active_threads=1 tvp=NULL
do_bind
ber_scanf fmt ({imt) ber:
ber_dump: buf=0x081e8fe8 ptr=0x081e8feb end=0x081e9013 len=40
  0000:  60 26 02 01 03 04 16 63  6e 3d 41 64 6d 69 6e 2c   `&.....cn=Admin,
  0010:  64 63 3d 6c 61 62 6f 2c  64 63 3d 62 65 80 09 6d   dc=labo,dc=be..m
  0020:  61 79 62 65 61 64 61 79                            aybeaday
ber_scanf fmt (m}) ber:
ber_dump: buf=0x081e8fe8 ptr=0x081e9008 end=0x081e9013 len=11
  0000:  00 09 6d 61 79 62 65 61  64 61 79                  ..maybeaday
>>> dnPrettyNormal: <cn=Admin,dc=labo,dc=be>
=> ldap_bv2dn(cn=Admin,dc=labo,dc=be,0)
<= ldap_bv2dn(cn=Admin,dc=labo,dc=be,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=Admin,dc=labo,dc=be,272)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=admin,dc=labo,dc=be,272)=0
<<< dnPrettyNormal: <cn=Admin,dc=labo,dc=be>, <cn=admin,dc=labo,dc=be>
do_bind: version=3 dn="cn=Admin,dc=labo,dc=be" method=128
==> bdb_bind: dn: cn=Admin,dc=labo,dc=be
bdb_dn2entry_rw("cn=admin,dc=labo,dc=be")
=> bdb_dn2id_matched( "cn=admin,dc=labo,dc=be" )
====> bdb_cache_find_entry_dn2id("cn=admin,dc=labo,dc=be"): 2 (1 tries)
====> bdb_cache_find_entry_id( 2 ) "cn=Admin,dc=labo,dc=be" (found) (1 tries)
====> bdb_cache_return_entry_r( 2 ): returned (0)
do_bind: v3 bind: "cn=Admin,dc=labo,dc=be" to "cn=Admin,dc=labo,dc=be"
send_ldap_result: conn=6 op=0 p=3
send_ldap_result: err=0 matched="" text=""
send_ldap_response: msgid=1 tag=97 err=0
ber_flush: 14 bytes to sd 12
  0000:  30 0c 02 01 01 61 07 0a  01 00 04 00 04 00         0....a........
ldap_write: want=14, written=14
  0000:  30 0c 02 01 01 61 07 0a  01 00 04 00 04 00         0....a........
daemon: activity on 1 descriptors
daemon: activity on: 12r
daemon: read activity on 12
connection_get(12)
connection_get(12): got connid=6
connection_read(12): checking for input on id=6
ber_get_next
ldap_read: want=9, got=9
  0000:  30 81 bf 02 01 02 63 81  b9                        0.....c..
ldap_read: want=185, got=185
  0000:  04 19 6f 75 3d 61 63 63  6f 75 6e 74 73 2c 64 63   ..ou=accounts,dc
  0010:  3d 6c 61 62 6f 2c 64 63  3d 62 65 0a 01 02 0a 01   =labo,dc=be.....
  0020:  00 02 01 00 02 01 00 01  01 00 a0 2a a3 18 04 0b   ...........*....
  0030:  6f 62 6a 65 63 74 63 6c  61 73 73 04 09 71 6d 61   objectclass..qma
  0040:  69 6c 55 73 65 72 a3 0e  04 03 75 69 64 04 07 63   ilUser....uid..c
  0050:  6c 65 79 6d 61 6e 30 61  04 03 75 69 64 04 08 71   leyman0a..uid..q
  0060:  6d 61 69 6c 55 49 44 04  08 71 6d 61 69 6c 47 49   mailUID..qmailGI
  0070:  44 04 0d 61 63 63 6f 75  6e 74 53 74 61 74 75 73   D..accountStatus
  0080:  04 08 6d 61 69 6c 48 6f  73 74 04 10 6d 61 69 6c   ..mailHost..mail
  0090:  4d 65 73 73 61 67 65 53  74 6f 72 65 04 0d 68 6f   MessageStore..ho
  00a0:  6d 65 44 69 72 65 63 74  6f 72 79 04 0c 75 73 65   meDirectory..use
  00b0:  72 50 61 73 73 77 6f 72  64                        rPassword
ber_get_next: tag 0x30 len 191 contents:
ber_dump: buf=0x081efca0 ptr=0x081efca0 end=0x081efd5f len=191
  0000:  02 01 02 63 81 b9 04 19  6f 75 3d 61 63 63 6f 75   ...c....ou=accou
  0010:  6e 74 73 2c 64 63 3d 6c  61 62 6f 2c 64 63 3d 62   nts,dc=labo,dc=b
  0020:  65 0a 01 02 0a 01 00 02  01 00 02 01 00 01 01 00   e...............
  0030:  a0 2a a3 18 04 0b 6f 62  6a 65 63 74 63 6c 61 73   .*....objectclas
  0040:  73 04 09 71 6d 61 69 6c  55 73 65 72 a3 0e 04 03   s..qmailUser....
  0050:  75 69 64 04 07 63 6c 65  79 6d 61 6e 30 61 04 03   uid..cleyman0a..
  0060:  75 69 64 04 08 71 6d 61  69 6c 55 49 44 04 08 71   uid..qmailUID..q
  0070:  6d 61 69 6c 47 49 44 04  0d 61 63 63 6f 75 6e 74   mailGID..account
  0080:  53 74 61 74 75 73 04 08  6d 61 69 6c 48 6f 73 74   Status..mailHost
  0090:  04 10 6d 61 69 6c 4d 65  73 73 61 67 65 53 74 6f   ..mailMessageSto
  00a0:  72 65 04 0d 68 6f 6d 65  44 69 72 65 63 74 6f 72   re..homeDirector
  00b0:  79 04 0c 75 73 65 72 50  61 73 73 77 6f 72 64      y..userPassword
ber_get_next
ldap_read: want=9 error=Resource temporarily unavailable
ber_get_next on fd 12 failed errno=11 (Resource temporarily unavailable)
do_search
ber_scanf fmt ({miiiib) ber:
ber_dump: buf=0x081efca0 ptr=0x081efca3 end=0x081efd5f len=188
  0000:  63 81 b9 04 19 6f 75 3d  61 63 63 6f 75 6e 74 73   c....ou=accounts
  0010:  2c 64 63 3d 6c 61 62 6f  2c 64 63 3d 62 65 0a 01   ,dc=labo,dc=be..
  0020:  02 0a 01 00 02 01 00 02  01 00 01 01 00 a0 2a a3   ..............*.
  0030:  18 04 0b 6f 62 6a 65 63  74 63 6c 61 73 73 04 09   ...objectclass..
  0040:  71 6d 61 69 6c 55 73 65  72 a3 0e 04 03 75 69 64   qmailUser....uid
  0050:  04 07 63 6c 65 79 6d 61  6e 30 61 04 03 75 69 64   ..cleyman0a..uid
  0060:  04 08 71 6d 61 69 6c 55  49 44 04 08 71 6d 61 69   ..qmailUID..qmai
  0070:  6c 47 49 44 04 0d 61 63  63 6f 75 6e 74 53 74 61   lGID..accountSta
  0080:  74 75 73 04 08 6d 61 69  6c 48 6f 73 74 04 10 6d   tus..mailHost..m
  0090:  61 69 6c 4d 65 73 73 61  67 65 53 74 6f 72 65 04   ailMessageStore.
  00a0:  0d 68 6f 6d 65 44 69 72  65 63 74 6f 72 79 04 0c   .homeDirectory..
  00b0:  75 73 65 72 50 61 73 73  77 6f 72 64               userPassword
>>> dnPrettyNormal: <ou=accounts,dc=labo,dc=be>
=> ldap_bv2dn(ou=accounts,dc=labo,dc=be,0)
<= ldap_bv2dn(ou=accounts,dc=labo,dc=be,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(ou=accounts,dc=labo,dc=be,272)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(ou=accounts,dc=labo,dc=be,272)=0
<<< dnPrettyNormal: <ou=accounts,dc=labo,dc=be>, <ou=accounts,dc=labo,dc=be>
SRCH "ou=accounts,dc=labo,dc=be" 2 0    0 0 0
begin get_filter
AND
begin get_filter_list
begin get_filter
EQUALITY
ber_scanf fmt ({mm}) ber:
ber_dump: buf=0x081efca0 ptr=0x081efcd2 end=0x081efd5f len=141
  0000:  a3 18 04 0b 6f 62 6a 65  63 74 63 6c 61 73 73 04   ....objectclass.
  0010:  09 71 6d 61 69 6c 55 73  65 72 a3 0e 04 03 75 69   .qmailUser....ui
  0020:  64 04 07 63 6c 65 79 6d  61 6e 30 61 04 03 75 69   d..cleyman0a..ui
  0030:  64 04 08 71 6d 61 69 6c  55 49 44 04 08 71 6d 61   d..qmailUID..qma
  0040:  69 6c 47 49 44 04 0d 61  63 63 6f 75 6e 74 53 74   ilGID..accountSt
  0050:  61 74 75 73 04 08 6d 61  69 6c 48 6f 73 74 04 10   atus..mailHost..
  0060:  6d 61 69 6c 4d 65 73 73  61 67 65 53 74 6f 72 65   mailMessageStore
  0070:  04 0d 68 6f 6d 65 44 69  72 65 63 74 6f 72 79 04   ..homeDirectory.
  0080:  0c 75 73 65 72 50 61 73  73 77 6f 72 64            .userPassword
end get_filter 0
begin get_filter
EQUALITY
ber_scanf fmt ({mm}) ber:
ber_dump: buf=0x081efca0 ptr=0x081efcec end=0x081efd5f len=115
  0000:  00 0e 04 03 75 69 64 04  07 63 6c 65 79 6d 61 6e   ....uid..cleyman
  0010:  30 61 04 03 75 69 64 04  08 71 6d 61 69 6c 55 49   0a..uid..qmailUI
  0020:  44 04 08 71 6d 61 69 6c  47 49 44 04 0d 61 63 63   D..qmailGID..acc
  0030:  6f 75 6e 74 53 74 61 74  75 73 04 08 6d 61 69 6c   ountStatus..mail
  0040:  48 6f 73 74 04 10 6d 61  69 6c 4d 65 73 73 61 67   Host..mailMessag
  0050:  65 53 74 6f 72 65 04 0d  68 6f 6d 65 44 69 72 65   eStore..homeDire
  0060:  63 74 6f 72 79 04 0c 75  73 65 72 50 61 73 73 77   ctory..userPassw
  0070:  6f 72 64                                           ord
end get_filter 0
end get_filter_list
end get_filter 0
    filter: (&(objectClass=qmailUser)(uid=cleyman))
ber_scanf fmt ({M}}) ber:
ber_dump: buf=0x081efca0 ptr=0x081efcfc end=0x081efd5f len=99
  0000:  00 61 04 03 75 69 64 04  08 71 6d 61 69 6c 55 49   .a..uid..qmailUI
  0010:  44 04 08 71 6d 61 69 6c  47 49 44 04 0d 61 63 63   D..qmailGID..acc
  0020:  6f 75 6e 74 53 74 61 74  75 73 04 08 6d 61 69 6c   ountStatus..mail
  0030:  48 6f 73 74 04 10 6d 61  69 6c 4d 65 73 73 61 67   Host..mailMessag
  0040:  65 53 74 6f 72 65 04 0d  68 6f 6d 65 44 69 72 65   eStore..homeDire
  0050:  63 74 6f 72 79 04 0c 75  73 65 72 50 61 73 73 77   ctory..userPassw
  0060:  6f 72 64                                           ord
    attrs: uid qmailUID qmailGID accountStatus mailHost mailMessageStore
homeDirectory userPassword
=> bdb_back_search
bdb_dn2entry_rw("ou=accounts,dc=labo,dc=be")
=> bdb_dn2id_matched( "ou=accounts,dc=labo,dc=be" )
====> bdb_cache_find_entry_dn2id("ou=accounts,dc=labo,dc=be"): 3 (1 tries)
====> bdb_cache_find_entry_id( 3 ) "ou=accounts,dc=labo,dc=be" (found) (1 tries)
search_candidates: base="ou=accounts,dc=labo,dc=be" (0x00000003) scope=2
=> bdb_filter_candidates
        AND
=> bdb_list_candidates 0xa0
=> bdb_filter_candidates
        DN SUBTREE
=> bdb_dn2idl( "ou=accounts,dc=labo,dc=be" )
bdb_idl_fetch_key: @ou=accounts,dc=labo,dc=be
<= bdb_dn2idl: id=2 first=3 last=4
<= bdb_filter_candidates: id=2 first=3 last=4
=> bdb_filter_candidates
        OR
=> bdb_list_candidates 0xa1
=> bdb_filter_candidates
        EQUALITY
=> bdb_equality_candidates (objectClass)
=> key_read
bdb_idl_fetch_key: [b49d1940]
<= bdb_index_read: failed (-30991)
<= bdb_equality_candidates: id=0, first=0, last=0
<= bdb_filter_candidates: id=0 first=0 last=0
=> bdb_filter_candidates
        AND
=> bdb_list_candidates 0xa0
=> bdb_filter_candidates
        EQUALITY
=> bdb_equality_candidates (objectClass)
=> key_read
bdb_idl_fetch_key: [5cf73cf5]
<= bdb_index_read 1 candidates
<= bdb_equality_candidates: id=1, first=4, last=4
<= bdb_filter_candidates: id=1 first=4 last=4
=> bdb_filter_candidates
        EQUALITY
=> bdb_equality_candidates (uid)
=> key_read
bdb_idl_fetch_key: [86c0097c]
<= bdb_index_read 1 candidates
<= bdb_equality_candidates: id=1, first=4, last=4
<= bdb_filter_candidates: id=1 first=4 last=4
<= bdb_list_candidates: id=1 first=4 last=4
<= bdb_filter_candidates: id=1 first=4 last=4
<= bdb_list_candidates: id=1 first=4 last=4
<= bdb_filter_candidates: id=1 first=4 last=4
<= bdb_list_candidates: id=1 first=4 last=4
<= bdb_filter_candidates: id=1 first=4 last=4
bdb_search_candidates: id=1 first=4 last=4
====> bdb_cache_return_entry_r( 3 ): returned (0)
====> bdb_cache_find_entry_id( 4 ) "uid=cleyman,ou=accounts,dc=labo,dc=be"
(found) (1 tries)
=> test_filter
    AND
=> test_filter_and
=> test_filter
    EQUALITY
=> access_allowed: search access to "uid=cleyman,ou=accounts,dc=labo,dc=be"
"objectClass" requested
<= root access granted
is_object_subclass(1.3.6.1.4.1.7914.1.2.2.1,2.5.6.0) 0
is_object_subclass(1.3.6.1.4.1.7914.1.2.2.1,2.5.6.6) 0
is_object_subclass(1.3.6.1.4.1.7914.1.2.2.1,2.5.6.0) 0
is_object_subclass(1.3.6.1.4.1.7914.1.2.2.1,2.16.840.1.113730.3.2.2) 0
is_object_subclass(1.3.6.1.4.1.7914.1.2.2.1,2.5.6.7) 0
is_object_subclass(1.3.6.1.4.1.7914.1.2.2.1,2.5.6.6) 0
is_object_subclass(1.3.6.1.4.1.7914.1.2.2.1,2.5.6.0) 0
is_object_subclass(1.3.6.1.4.1.7914.1.2.2.1,1.3.6.1.4.1.7914.1.2.2.1) 1
<= test_filter 6
=> test_filter
    EQUALITY
=> access_allowed: search access to "uid=cleyman,ou=accounts,dc=labo,dc=be"
"uid" requested
<= root access granted
<= test_filter 6
<= test_filter_and 6
<= test_filter 6
=> send_search_entry: dn="uid=cleyman,ou=accounts,dc=labo,dc=be"
=> access_allowed: read access to "uid=cleyman,ou=accounts,dc=labo,dc=be"
"entry" requested
<= root access granted
=> access_allowed: read access to "uid=cleyman,ou=accounts,dc=labo,dc=be"
"mailMessageStore" requested
<= root access granted
=> access_allowed: read access to "uid=cleyman,ou=accounts,dc=labo,dc=be"
"mailHost" requested
<= root access granted
=> access_allowed: read access to "uid=cleyman,ou=accounts,dc=labo,dc=be" "uid"
requested
<= root access granted
=> access_allowed: read access to "uid=cleyman,ou=accounts,dc=labo,dc=be"
"userPassword" requested
<= root access granted
ber_flush: 192 bytes to sd 12
  0000:  30 81 bd 02 01 02 64 81  b7 04 25 75 69 64 3d 63   0.....d...%uid=c
  0010:  6c 65 79 6d 61 6e 2c 6f  75 3d 61 63 63 6f 75 6e   leyman,ou=accoun
  0020:  74 73 2c 64 63 3d 6c 61  62 6f 2c 64 63 3d 62 65   ts,dc=labo,dc=be
  0030:  30 81 8d 30 31 04 10 6d  61 69 6c 4d 65 73 73 61   0..01..mailMessa
  0040:  67 65 53 74 6f 72 65 31  1d 04 1b 2f 76 61 72 2f   geStore1.../var/
  0050:  71 6d 61 69 6c 2f 6d 61  69 6c 64 69 72 73 2f 63   qmail/maildirs/c
  0060:  6c 65 79 6d 61 6e 30 1d  04 08 6d 61 69 6c 48 6f   leyman0...mailHo
  0070:  73 74 31 11 04 0f 63 6c  65 79 6d 61 6e 2e 6c 61   st1...cleyman.la
  0080:  62 6f 2e 62 65 30 10 04  03 75 69 64 31 09 04 07   bo.be0...uid1...
  0090:  63 6c 65 79 6d 61 6e 30  27 04 0c 75 73 65 72 50   cleyman0'..userP
  00a0:  61 73 73 77 6f 72 64 31  17 04 15 7b 43 52 59 50   assword1...{CRYP
  00b0:  54 7d 61 73 39 73 50 77  50 61 73 4f 57 39 73 20   T}as9sPwPasOW9s
ldap_write: want=192, written=192
  0000:  30 81 bd 02 01 02 64 81  b7 04 25 75 69 64 3d 63   0.....d...%uid=c
  0010:  6c 65 79 6d 61 6e 2c 6f  75 3d 61 63 63 6f 75 6e   leyman,ou=accoun
  0020:  74 73 2c 64 63 3d 6c 61  62 6f 2c 64 63 3d 62 65   ts,dc=labo,dc=be
  0030:  30 81 8d 30 31 04 10 6d  61 69 6c 4d 65 73 73 61   0..01..mailMessa
  0040:  67 65 53 74 6f 72 65 31  1d 04 1b 2f 76 61 72 2f   geStore1.../var/
  0050:  71 6d 61 69 6c 2f 6d 61  69 6c 64 69 72 73 2f 63   qmail/maildirs/c
  0060:  6c 65 79 6d 61 6e 30 1d  04 08 6d 61 69 6c 48 6f   leyman0...mailHo
  0070:  73 74 31 11 04 0f 63 6c  65 79 6d 61 6e 2e 6c 61   st1...cleyman.la
  0080:  62 6f 2e 62 65 30 10 04  03 75 69 64 31 09 04 07   bo.be0...uid1...
  0090:  63 6c 65 79 6d 61 6e 30  27 04 0c 75 73 65 72 50   cleyman0'..userP
  00a0:  61 73 73 77 6f 72 64 31  17 04 15 7b 43 52 59 50   assword1...{CRYP
  00b0:  54 7d 61 73 39 73 50 77  50 61 73 4f 57 39 73 20   T}as9sPwPasOW9s
<= send_search_entry
====> bdb_cache_return_entry_r( 4 ): returned (0)
daemon: select: listen=6 active_threads=1 tvp=NULL
daemon: activity on 1 descriptors
daemon: activity on: 12r
daemon: read activity on 12
connection_get(12)
connection_get(12): got connid=6
connection_read(12): checking for input on id=6
ber_get_next
ldap_read: want=9, got=9
  0000:  30 06 02 01 03 50 01 02  30                        0....P..0
ber_get_next on fd 12 failed errno=34 (Numerical result out of range)
connection_read(12): input error=-2 id=6, closing.
connection_closing: readying conn=6 sd=12 for close
connection_close: deferring conn=6 sd=12
send_search_result: err=0 matched="" text=""
send_ldap_response: msgid=2 tag=101 err=0
connection_resched: attempting closing conn=6 sd=12
connection_close: conn=6 sd=12
daemon: removing 12
daemon: select: listen=6 active_threads=0 tvp=NULL
daemon: activity on 1 descriptors
daemon: select: listen=6 active_threads=0 tvp=NULL


Thanks a lot (and sorry for CVS...).

Regards,

Cecile.




Quoting Howard Chu <hyc@highlandsun.com>:

> No, you wouldn't be able to use those files as they are, you need to apply
> the diffs between the versions to your existing file.
> use this command to get the diff:
>    cvs diff -r1.87 -r1.90 io.c
> feed this to "patch" to apply the change to your own source.
> 
>   -- Howard Chu
>   Chief Architect, Symas Corp.       Director, Highland Sun
>   http://www.symas.com               http://highlandsun.com/hyc
>   Symas: Premier OpenSource Development and Support
> 


-------------------------------------------------
Mail sent through GFI Mailserver1.0
info: ava@gfi.be