[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Samba 3.0.21/Heimdal 0.7.1 problem



I have been having trouble building 3.0.21 on a Sparc Solaris 8
machine using the following packages:

heimdal-0.7.1
openssl-0.9.8a
openldap-2.3.13

The compiler is gcc-3.4.3. The problem appears in the ARCFOUR_subencrypt
function. Here is a backtrace:

(gdb) bt   
#0  0x7f989394 in RC4_set_key (key=0xffbee21a, len=16, 
    data=0xffbee1ea "Ä4¹o\230Á-V§´)E8\221Z@>ßZCg»\235Å\0317 ÷\2138~P>ßZCg»\235Å\0317 ÷\2138~P") at rc4.c:57
#1  0x7f3e5efc in ARCFOUR_subencrypt (context=0x356900, key=0x3581dc, 
    data=0x356d80, len=150, usage=11, ivec=0x0) at crypto.c:2585
#2  0x7f3e6488 in ARCFOUR_encrypt (context=0x356900, key=0x3581dc, 
    data=0x356d80, len=150, encrypt=1, usage=11, ivec=0x0) at crypto.c:2708
#3  0x7f3e79e8 in encrypt_internal_special (context=0x356900, crypto=0x3581d8, 
    usage=11, data=0x356cf8, len=126, result=0xffbee6b8, ivec=0x0)
    at crypto.c:3415
#4  0x7f3e84ec in krb5_encrypt_ivec (context=0x356900, crypto=0x3581d8, 
    usage=11, data=0x356cf8, len=126, result=0xffbee6b8, ivec=0x0)
    at crypto.c:3631
#5  0x7f3e8574 in krb5_encrypt (context=0x356900, crypto=0x3581d8, usage=11, 
    data=0x356cf8, len=126, result=0xffbee6b8) at crypto.c:3645
#6  0x7f3d768c in krb5_build_authenticator (context=0x356900, 
    auth_context=0x3577a0, enctype=ETYPE_ARCFOUR_HMAC_MD5, cred=0x357328, 
    cksum=0xffbee6a8, auth_result=0x0, result=0xffbee6b8, 
    usage=KRB5_KU_AP_REQ_AUTH) at build_auth.c:178
#7  0x7f40594c in _krb5_mk_req_internal (context=0x356900, 
    auth_context=0xffbee8a4, ap_req_options=4, in_data=0xffbee7c0, 
    in_creds=0x357328, outbuf=0xffbee8b0, 
    checksum_usage=KRB5_KU_AP_REQ_AUTH_CKSUM, 
    encrypt_usage=KRB5_KU_AP_REQ_AUTH) at mk_req_ext.c:144
#8  0x7f405a4c in krb5_mk_req_extended (context=0x356900, 
    auth_context=0xffbee8a4, ap_req_options=4, in_data=0xffbee7c0, 
    in_creds=0x357328, outbuf=0xffbee8b0) at mk_req_ext.c:172
#9  0x000a8a4c in ads_krb5_mk_req (context=0x356900, auth_context=0xffbee8a4, 
    ap_req_options=4, principal=0x348e70 "support-dc5$@AD.RICE.EDU", 
    ccache=0x357ba8, outbuf=0xffbee8b0) at libsmb/clikrb5.c:508
#10 0x000a8f54 in cli_krb5_get_ticket (
    principal=0x348e70 "support-dc5$@AD.RICE.EDU", time_offset=0, 
    ticket=0xffbee978, session_key_krb5=0xffbeea10, extra_ap_opts=0)
    at libsmb/clikrb5.c:569
#11 0x000aaf04 in spnego_gen_negTokenTarg (
    principal=0x348e70 "support-dc5$@AD.RICE.EDU", time_offset=0, 
    targ=0xffbeea30, session_key_krb5=0xffbeea10, extra_ap_opts=0)
    at libsmb/clispnego.c:335
#12 0x00291b24 in ads_sasl_spnego_krb5_bind (ads=0x34b5e0, 
    principal=0x348e70 "support-dc5$@AD.RICE.EDU") at libads/sasl.c:149
#13 0x00292130 in ads_sasl_spnego_bind (ads=0x34b5e0) at libads/sasl.c:233
#14 0x00292bf4 in ads_sasl_bind (ads=0x34b5e0) at libads/sasl.c:456
#15 0x00286a34 in ads_connect (ads=0x34b5e0) at libads/ldap.c:341
#16 0x0003cffc in ads_startup () at utils/net_ads.c:183
#17 0x0003f268 in net_ads_join (argc=0, argv=0x347ad4) at utils/net_ads.c:732
#18 0x0003a238 in net_run_function (argc=1, argv=0x347ad0, table=0xffbeef78, 
    usage_fn=0x3c990 <net_ads_usage>) at utils/net.c:129
#19 0x00041d54 in net_ads (argc=1, argv=0x347ad0) at utils/net_ads.c:1491
#20 0x0003a238 in net_run_function (argc=2, argv=0x347acc, table=0x331444, 
    usage_fn=0x438dc <net_help>) at utils/net.c:129
#21 0x0003c8ac in main (argc=3, argv=0xffbef4b4) at utils/net.c:874
(gdb) 

Has anyone seen a similar problem? I do not know if the problem is
a samba problem, a heimdal problem or something else. 

Ken