[Samba] Samba 3.0.23 - smbd + custom passdb panics when there is no root user

Paul Griffith paulg at cs.yorku.ca
Thu Jul 13 15:14:28 GMT 2006


Hi,

I am in the process of upgrading from v3.0.20a to v3.0.23 with our
local passdb plugin. The plugin complies without any issues.

Our User DataBase contains all our users accounts but not system
accounts. With Samba v3.0.20a this wasn't a problem.

Why th change between v3.0.20a and v3.0.23 ?

Do you see any issues if I return a fake root account? Returning a
fake root account s a hack I would rather not perform.

Thanks
Paul

FYI - Yes smbd runs without a panic if I disable our custom passdb plugin.



See below for smbd v3.0.20a and smbd v3.0.23 start logs.

-----smbd v3.0.20a--------
[2006/07/13 10:58:02, 2] lib/module.c:do_smb_load_module(66)
  Module '/usr/local/samba/lib/pdb/pdb_udb.so' loaded
[2006/07/13 10:58:02, 0] pdb_udb.c:udb_init(720)
  udb: Debug class number of 'udb': 18
[2006/07/13 10:58:02, 0] pdb_udb.c:udb_init(722)
  Initializing udb
[2006/07/13 10:58:02, 0] pdb_udb.c:udb_getsampwsid(684)
  udb_getsampwsid called
[2006/07/13 10:58:02, 3] smbd/sec_ctx.c:pop_sec_ctx(386)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2006/07/13 10:58:02, 3] smbd/sec_ctx.c:push_sec_ctx(256)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2006/07/13 10:58:02, 3] smbd/uid.c:push_conn_ctx(388)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2006/07/13 10:58:02, 3] smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2006/07/13 10:58:02, 3] smbd/sec_ctx.c:push_sec_ctx(256)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2
[2006/07/13 10:58:02, 3] smbd/uid.c:push_conn_ctx(388)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 1
[2006/07/13 10:58:02, 3] smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2
[2006/07/13 10:58:02, 3] smbd/sec_ctx.c:pop_sec_ctx(386)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1
[2006/07/13 10:58:02, 3] smbd/sec_ctx.c:push_sec_ctx(256)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2
[2006/07/13 10:58:02, 3] smbd/uid.c:push_conn_ctx(388)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 1
[2006/07/13 10:58:02, 3] smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2
[2006/07/13 10:58:02, 3] smbd/sec_ctx.c:pop_sec_ctx(386)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1
[2006/07/13 10:58:02, 3] smbd/sec_ctx.c:pop_sec_ctx(386)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2006/07/13 10:58:02, 3] lib/privileges.c:get_privileges(260)
  get_privileges: No privileges assigned to SID
  [S-1-5-21-1265807701-987397405-2681433802-501]
[2006/07/13 10:58:02, 3] lib/privileges.c:get_privileges(260)
  get_privileges: No privileges assigned to SID
  [S-1-5-21-1265807701-987397405-2681433802-514]
[2006/07/13 10:58:02, 3] lib/privileges.c:get_privileges(260)
  get_privileges: No privileges assigned to SID [S-1-5-2]
[2006/07/13 10:58:02, 3] lib/privileges.c:get_privileges(260)
  get_privileges: No privileges assigned to SID [S-1-5-32-546]
[2006/07/13 10:58:02, 3] lib/privileges.c:get_privileges(260)
  get_privileges: No privileges assigned to SID
  [S-1-5-21-1265807701-987397405-2681433802-1199]
[2006/07/13 10:58:02, 3] smbd/server.c:main(839)
  loaded services
[2006/07/13 10:58:02, 0] smbd/server.c:main(843)
  standard input is not a socket, assuming -D option
[2006/07/13 10:58:02, 3] smbd/server.c:main(854)
  Becoming a daemon.
[2006/07/13 10:58:02, 2] lib/tallocmsg.c:register_msg_pool_usage(56)
  Registered MSG_REQ_POOL_USAGE
[2006/07/13 10:58:02, 2] lib/dmallocmsg.c:register_dmalloc_msgs(71)
  Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2006/07/13 10:58:02, 3]
  printing/printing.c:start_background_queue(1321)
  start_background_queue: Starting background LPQ thread
[2006/07/13 10:58:02, 2] smbd/server.c:open_sockets_smbd(334)
  waiting for a connection

----smbd v3.0.23-----
[2006/07/13 11:08:44, 2]
passdb/pdb_interface.c:make_pdb_method_name(164)
  No builtin backend found, trying to load plugin
[2006/07/13 11:08:44, 2] lib/module.c:do_smb_load_module(64)
  Module '/usr/local/samba/lib/pdb/pdb_udb.so' loaded
[2006/07/13 11:08:44, 0] pdb_udb.c:udb_init(723)
  udb: Debug class number of 'udb': 19
[2006/07/13 11:08:44, 0] pdb_udb.c:udb_init(725)
  Initializing udb
[2006/07/13 11:08:44, 3] smbd/sec_ctx.c:push_sec_ctx(208)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2006/07/13 11:08:44, 3] smbd/uid.c:push_conn_ctx(345)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2006/07/13 11:08:44, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2006/07/13 11:08:44, 2] pdb_udb.c:udb_cmd(126)
  udb_cmd: sending: auth login root ident
[2006/07/13 11:08:44, 2] pdb_udb.c:udb_cmd(137)
  udb_cmd: result: ok root
[2006/07/13 11:08:44, 2] pdb_udb.c:udb_cmd(126)
  udb_cmd: sending: udb get root:user name
[2006/07/13 11:08:44, 2] pdb_udb.c:udb_cmd(137)
  udb_cmd: result: error record root:user does not exist
[2006/07/13 11:08:44, 0] pdb_udb.c:udb_to_sam(308)
  udb_to_sam: record root:user does not exist
[2006/07/13 11:08:44, 3] smbd/sec_ctx.c:pop_sec_ctx(339)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2006/07/13 11:08:44, 0] lib/fault.c:fault_report(41)
  ===============================================================
[2006/07/13 11:08:44, 0] lib/fault.c:fault_report(42)
  INTERNAL ERROR: Signal 11 in pid 17610 (3.0.23)
  Please read the Trouble-Shooting section of the Samba3-HOWTO
[2006/07/13 11:08:44, 0] lib/fault.c:fault_report(44)
  
  From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
[2006/07/13 11:08:44, 0] lib/fault.c:fault_report(45)
  ===============================================================
[2006/07/13 11:08:44, 0] lib/util.c:smb_panic(1592)
  PANIC (pid 17610): internal error
[2006/07/13 11:08:44, 0] lib/util.c:log_stack_trace(1699)
  BACKTRACE: 12 stack frames:
   #0 ./smbd(log_stack_trace+0x26) [0xb7f10959]
   #1 ./smbd(smb_panic+0x76) [0xb7f107e4]
   #2 ./smbd [0xb7efebb0]
   #3 ./smbd [0xb7efebbe]
   #4 /lib/tls/libc.so.6 [0xb7bd38e8]
   #5 ./smbd(uid_to_sid+0x125) [0xb7eecddc]
   #6 ./smbd(get_root_nt_token+0xae) [0xb7f4b440]
   #7 ./smbd(svcctl_init_keys+0x34) [0xb7e49bc3]
   #8 ./smbd(init_registry+0xcd) [0xb7f7ae5d]
   #9 ./smbd(main+0x647) [0xb7f88591]
   #10 /lib/tls/libc.so.6(__libc_start_main+0xd3) [0xb7bc0e23]
   #11 ./smbd [0xb7d95f79]
[2006/07/13 11:08:44, 0] lib/fault.c:dump_core(173)
  dumping core in /usr/local/samba/var/cores/smbd



-- 
Paul Griffith     |York University, Dept. of Computer Science & Engineering
CSE Technical Team|4700 Keele Street, Toronto, Ontario, Canada M3J 1P3
paulg at cs.yorku.ca |CSE1003A|Phone: 416-736-2100 x70258|Fax: 416-736-5872


More information about the samba mailing list