net ads testjoin issue after date change on the server!

Ephi Dror ephi at
Fri Aug 12 20:20:36 GMT 2005

Hi All,
I joined an ADS domain, moved the date on my samba server 15 years
forward (don't ask me why, its my QA guy who did it!!!) and issued the
folioing command:
"net ads testjoin"
The command has not returned, memory usage increased. If you leave it
long enough, it created more than 1 gig core file!!!
I think it is related to Kerberos. Possibly a Kerberos bug. (using krb5
Any idea what  happened here?
Here is gdb info, 
Program received signal SIGINT, Interrupt.
0x55680a15 in _int_malloc () from /lib/tls/
(gdb) bt
#0  0x55680a15 in _int_malloc () from /lib/tls/
#1  0x5567fb0d in malloc () from /lib/tls/
#2  0x08188b0b in krb5_copy_data ()
#3  0x08182b34 in krb5_mcc_next_cred ()
#4  0x08183087 in krb5_cc_next_cred ()
#5  0x081b6d86 in krb5_cc_retrieve_cred_seq ()
#6  0x081b6f74 in krb5_cc_retrieve_cred_default ()
#7  0x08182e2b in krb5_mcc_retrieve ()
#8  0x08182fee in krb5_cc_retrieve_cred ()
#9  0x08189cdc in krb5_get_credentials ()
#10 0x080a4c66 in ads_krb5_mk_req (context=0x829de58,
    auth_context=0xffffd384, ap_req_options=1,
    principal=0x829de30 "london$@LONDON.STORADINC.COM",
    outbuf=0xffffd3a0) at libsmb/clikrb5.c:386
#11 0x080a5094 in cli_krb5_get_ticket (
    principal=0x829de30 "london$@LONDON.STORADINC.COM",
    time_offset=-315520706, ticket=0xffffd3f0,
    at libsmb/clikrb5.c:471
#12 0x080a5b96 in spnego_gen_negTokenTarg (
    principal=0x829de30 "london$@LONDON.STORADINC.COM",
    time_offset=-315520706, targ=0xffffd440,
    at libsmb/clispnego.c:335
#13 0x0815d0e3 in ads_sasl_spnego_krb5_bind (ads=0x8297a60,
    principal=0x829de30 "london$@LONDON.STORADINC.COM") at
#14 0x0815d3c5 in ads_sasl_spnego_bind (ads=0x8297a60) at
#15 0x0815d946 in ads_sasl_bind (ads=0x8297a60) at libads/sasl.c:448
#16 0x0815865a in ads_connect (ads=0x8297a60) at libads/ldap.c:333
#17 0x0807ce17 in ads_startup () at utils/net_ads.c:183
#18 0x0807dbb3 in net_ads_join_ok () at utils/net_ads.c:671
#19 0x0807dbe4 in net_ads_testjoin (argc=0, argv=0x82541ac)
    at utils/net_ads.c:687
#20 0x0807b77e in net_run_function (argc=1, argv=0x82541a8,
    usage_fn=0x807cb40 <net_ads_usage>) at utils/net.c:135
#21 0x0807ee9f in net_ads (argc=1, argv=0x82541a8) at
#22 0x0807b77e in net_run_function (argc=2, argv=0x82541a4,
    usage_fn=0x807fb3a <net_help>) at utils/net.c:135
#23 0x0807cae9 in main (argc=3, argv=0xffffdb14) at utils/net.c:902
(gdb) c
Program received signal SIGSEGV, Segmentation fault.
0x0818bdd7 in krb5_free_addresses ()

More information about the samba-technical mailing list