Hi there, we have upgraded our printserver to samba 4.16.2 from 4.15. Since then we can not add new drivers thorugh the windows tools. If we try we get a core dump: Stack trace of thread 128214: #0 0x00007ff4f4560a9f raise (libc.so.6) #1 0x00007ff4f4533e05 abort (libc.so.6) #2 0x00007ff4f93265e9 dump_core (libsmbconf-sernet-samba.so) #3 0x00007ff4f933371f smb_panic_s3 (libsmbconf-sernet-samba.so) #4 0x00007ff4f8c4f658 smb_panic (libsamba-util-sernet-samba.so) #5 0x00007ff4f8c4f6e0 sig_fault (libsamba-util-sernet-samba.so) #6 0x00007ff4f48e9ce0 __restore_rt (libpthread.so.0) #7 0x00007ff4f789e7a9 mangle_is_mangled (libsmbd-base-sernet-samba.so) #8 0x00007ff4f7832403 unix_convert (libsmbd-base-sernet-samba.so) #9 0x0000559d1517bdd1 driver_unix_convert (rpcd_spoolss) #10 0x0000559d1517cd6c move_driver_file_to_download_area (rpcd_spoolss) #11 0x0000559d1517f02a move_driver_to_download_area (rpcd_spoolss) #12 0x0000559d151a6f46 _spoolss_AddPrinterDriverEx (rpcd_spoolss) #13 0x0000559d151ad5cd spoolss__op_dispatch_internal (rpcd_spoolss) #14 0x0000559d151adf16 spoolss__op_dispatch (rpcd_spoolss) #15 0x00007ff4f90d3971 dcesrv_loop_next_packet (libdcerpc-server-core-sernet-samba.so) #16 0x00007ff4f90d3ff3 dcesrv_read_fragment_done (libdcerpc-server-core-sernet-samba.so) #17 0x00007ff4fa1f1aeb _tevent_req_notify_callback (libtevent-sernet-samba.so) #18 0x00007ff4fa1f1b93 tevent_req_finish (libtevent-sernet-samba.so) #19 0x00007ff4fa1f1baf _tevent_req_done (libtevent-sernet-samba.so) #20 0x00007ff4f613f9c0 dcerpc_read_ncacn_packet_done (libdcerpc-binding-sernet-samba.so) #21 0x00007ff4fa1f1aeb _tevent_req_notify_callback (libtevent-sernet-samba.so) #22 0x00007ff4fa1f1b93 tevent_req_finish (libtevent-sernet-samba.so) #23 0x00007ff4fa1f1baf _tevent_req_done (libtevent-sernet-samba.so) #24 0x00007ff4f8eb98b7 tstream_readv_pdu_ask_for_next_vector (libsamba-sockets-sernet-samba.so) #25 0x00007ff4f8eb9a0c tstream_readv_pdu_readv_done (libsamba-sockets-sernet-samba.so) #26 0x00007ff4fa1f1aeb _tevent_req_notify_callback (libtevent-sernet-samba.so) #27 0x00007ff4fa1f1b93 tevent_req_finish (libtevent-sernet-samba.so) #28 0x00007ff4fa1f1baf _tevent_req_done (libtevent-sernet-samba.so) #29 0x00007ff4f8eb894d tstream_readv_done (libsamba-sockets-sernet-samba.so) #30 0x00007ff4fa1f1aeb _tevent_req_notify_callback (libtevent-sernet-samba.so) #31 0x00007ff4fa1f1b93 tevent_req_finish (libtevent-sernet-samba.so) #32 0x00007ff4fa1f1c3e tevent_req_trigger (libtevent-sernet-samba.so) #33 0x00007ff4fa1f1383 tevent_common_invoke_immediate_handler (libtevent-sernet-samba.so) #34 0x00007ff4fa1f13a7 tevent_common_loop_immediate (libtevent-sernet-samba.so) #35 0x00007ff4fa1f7294 epoll_event_loop_once (libtevent-sernet-samba.so) #36 0x00007ff4fa1f518f std_event_loop_once (libtevent-sernet-samba.so) #37 0x00007ff4fa1f0486 _tevent_loop_once (libtevent-sernet-samba.so) #38 0x00007ff4f8837ff0 rpc_worker_main (libRPC-WORKER-sernet-samba.so) #39 0x0000559d1518e3ec main (rpcd_spoolss) #40 0x00007ff4f454ccf3 __libc_start_main (libc.so.6) #41 0x0000559d15172bbe _start (rpcd_spoolss) Also in the Windows Printeradmin console no printers are listed (this used to work with 4.15). Anybody seen this? Should I file a bug? System is a Rocky Linux 8.6 with samba 4.16.2. Here is the SMB.conf [global] netbios name = Printserver server string = Printserver security = ADS realm = HQ.DOMAIN.DE workgroup = DOMAIN-02 max log size = 50000 disable netbios = yes smb ports = 445 server min protocol = SMB2 client min protocol = SMB2 #log level = 4 log level = 1 auth_audit:2 logging =syslog only kerberos method = secrets and keytab dedicated keytab file = /etc/krb5.keytab writeable =YES map acl inherit = yes store dos attributes = yes inherit acls = Yes username map = /etc/samba/smbusers interfaces = lo eth0 bind interfaces only = Yes ##idmap## # Default idmap config used for BUILTIN and local windows accounts/groups idmap config *:backend = tdb idmap config *:range = 1000000-2000000 # idmap config for domain DOMAIN-02 idmap config -02:backend = ad idmap config DOMAIN-02:range = 500-65555 idmap config DOMAIN-02:schema_mode = rfc2307 idmap config DOMAIN-02:unix_nss_info = yes winbind use default domain = Yes winbind offline logon = yes winbind refresh tickets = yes machine password timeout = 604800 #Printing rpc_server:spoolss = external rpc_daemon:spoolssd = fork spoolss: architecture = Windows x64 min domain uid = 500 [printers] path = /var/spool/samba/ printable = yes printing = cups [print$] path = /srv/samba_printer_drivers/ read only = no -- Dr. Christian Naumer Vice President Unit Head Bioprocess Development BRAIN Biotech AG Darmstaedter Str. 34-36 64673 Zwingenberg, Germany T: +49 6251 9331-30 F: +49 6251 9331-11 cn at brain-biotech.com www.brain-biotech.com Follow @BRAINbiotech on Twitter: https://twitter.com/BRAINbiotech Follow @BRAIN Biotech AG on LinkedIn: https://www.linkedin.com/company/brainbiotech Sitz der Gesellschaft: Zwingenberg | Bergstrasse Registergericht AG Darmstadt | HRB 24758 Vorstand: Adriaan Moelker (Vorstandsvorsitzender) | Lukas Linnig Aufsichtsratsvorsitzender: Dr. Georg Kellinghusen
On Thu, 2022-07-07 at 15:55 +0200, Christian Naumer via samba wrote:> Hi there, > we have upgraded our printserver to samba 4.16.2 from 4.15. Since > then > we can not add new drivers thorugh the windows tools. If we try we > get a > core dump:You shouldn't get a core dump.> > > Also in the Windows Printeradmin console no printers are listed > (this > used to work with 4.15). > > Anybody seen this? Should I file a bug? > > System is a Rocky Linux 8.6 with samba 4.16.2. > > Here is the SMB.conf > [global] > netbios name = Printserver > server string = Printserver > security = ADS > realm = HQ.DOMAIN.DE > workgroup = DOMAIN-02 > max log size = 50000 > disable netbios = yes > smb ports = 445 > server min protocol = SMB2 > client min protocol = SMB2 > #log level = 4 > log level = 1 auth_audit:2 > logging =syslog only > kerberos method = secrets and keytab > dedicated keytab file = /etc/krb5.keytab > writeable =YES > map acl inherit = yes > store dos attributes = yes > inherit acls = Yes > username map = /etc/samba/smbusers > interfaces = lo eth0 > bind interfaces only = Yes > ##idmap## > # Default idmap config used for BUILTIN and local windows > accounts/groups > idmap config *:backend = tdb > idmap config *:range = 1000000-2000000 > > # idmap config for domain DOMAIN-02 > idmap config -02:backend = adIs that a cut&paste typo ?> idmap config DOMAIN-02:range = 500-65555 > idmap config DOMAIN-02:schema_mode = rfc2307 > idmap config DOMAIN-02:unix_nss_info = yes > winbind use default domain = Yes > winbind offline logon = yes > winbind refresh tickets = yes > machine password timeout = 604800 > #Printing > rpc_server:spoolss = external > rpc_daemon:spoolssd = fork > spoolss: architecture = Windows x64 > min domain uid = 500That '500' should be '0' Rowland Please do not 'CC' me, just send posts to the mailing list.