How to debug Samba4 kadmin interface (commit 12ce07e53b9453f35a1483d941bfce9c23f790a0)

Gémes Géza geza at kzsdabas.hu
Fri Dec 2 23:54:44 MST 2011


2011-12-03 07:45 keltezéssel, Gémes Géza írta:
> 2011-12-02 18:32 keltezéssel, Gémes Géza írta:
>> Hi,
>>
>> I've tried using  heimdal (1.4.0) kadmin with the new hdb_samba4.so
>> module. Unfortunately it doesn't support it:
>> # kadmin -l
>> kadmin: error trying to load dynamic module /usr/lib/hdb_samba4.so: (null)
>>
>> kadmin: No database support for samba4:
>>
>> I suppose my heimdal installation is too old. What is the minimal
>> heimdal version this module should work with?
>>
>> Thank you!
>>
>> Geza
> Hi,
>
> To answer my own question heimdal 1.5.1's kadmin is working with
> hdb_samba4.so, but some operations like list still segfaults.
> How could I debug it?
>
> Cheers
>
> Geza
Some more details:

A gdb backtrace from kadmin -l:

#0  0x00007ffff6a21e98 in main_arena () from /lib/libc.so.6
#1  0x00007ffff79cc8a0 in kadm5_s_get_principals
(server_handle=0x611d50, expression=0x1f1fb25 "*",
princs=0x7fffffffe870, count=0x7fffffffe87c)
    at get_princs_s.c:88
#2  0x000000000040997e in foreach_principal (exp_str=0x1f1fb25 "*",
func=<value optimized out>, funcname=<value optimized out>, data=0x0) at
util.c:526
#3  0x0000000000405ee6 in listit (opt=<value optimized out>,
name=0x40c813 "list", argc=1, argv=<value optimized out>) at get.c:444
#4  getit (opt=<value optimized out>, name=0x40c813 "list", argc=1,
argv=<value optimized out>) at get.c:471
#5  0x000000000040af12 in list_wrap (argc=<value optimized out>,
argv=0x12f6cc0) at kadmin-commands.c:544
#6  0x00007ffff77c378c in sl_command_loop (cmds=0x6108a0, prompt=<value
optimized out>, data=<value optimized out>) at sl.c:328
#7  0x00000000004073ab in main (argc=0, argv=<value optimized out>) at
kadmin.c:275

Cheers,

Geza


More information about the samba-technical mailing list