Did the first test on two different servers both are running debian wheezy and packported samba packages. On the server still running 4.6.2 it worked without problems to add the first available printer driver (Brother-DCP116C). On the other server already running 4.6.3 it faile with the error you and marc described. So I downgraded this server to 4.6.2 but i still get the error. Am 28.04.2017 um 11:20 schrieb Achim Gottinger via samba:> Tried it here it works with 4.6.2 but with 4.6.3 it fails for windows > 7 32 bit as well. > > Am 27.04.2017 um 20:13 schrieb Andre Freire via samba: >> Hi, >> >> I use samba 4 like domain controler, file server and print server. I am >> using 4.4.13 version and all its ok. >> >> I decide test the new version 4.6 and I have a problem with print >> server. I >> can upload 64bits drivers but I cannot upload 32bits drivres. Always >> give >> an error. I try upload driver with Windows 7 64 and 32 bits. >> >> Some one can help me? >> >> King regards. >> André Freire >> Gerente de Tecnologia >> E-mail: carlosandrefreire at gmail.com >> >> *skype: andrefreire.hf <andrefreire at ig.com.br>*Tel: (71)99381-7372 > >
Log if it works api_rpcTNP: rpc command: SPOOLSS_ADDPRINTERDRIVEREX [2017/04/28 12:17:02.416040, 3] ../source3/smbd/vfs.c:113(vfs_init_default) Initialising default vfs hooks [2017/04/28 12:17:02.416064, 3] ../source3/smbd/vfs.c:139(vfs_init_custom) Initialising custom vfs hooks from [/[Default VFS]/] [2017/04/28 12:17:02.416088, 3] ../source3/smbd/vfs.c:139(vfs_init_custom) Initialising custom vfs hooks from [acl_xattr] [2017/04/28 12:17:02.416108, 3] ../source3/smbd/vfs.c:139(vfs_init_custom) Initialising custom vfs hooks from [dfs_samba4] [2017/04/28 12:17:02.416134, 2] ../source3/modules/vfs_acl_xattr.c:201(connect_acl_xattr) connect_acl_xattr: setting 'inherit acls = true' 'dos filemode = true' and 'force unknown acl user = true' for service print$ [2017/04/28 12:17:02.418586, 3] ../source3/lib/util.c:300(unix_clean_name) unix_clean_name [W32X86/UNIDRV.DLL] Log if it fails api_rpcTNP: rpc command: SPOOLSS_ADDPRINTERDRIVEREX [2017/04/28 12:11:49.319442, 3] ../source3/smbd/vfs.c:113(vfs_init_default) Initialising default vfs hooks [2017/04/28 12:11:49.319462, 3] ../source3/smbd/vfs.c:139(vfs_init_custom) Initialising custom vfs hooks from [/[Default VFS]/] [2017/04/28 12:11:49.319483, 3] ../source3/smbd/vfs.c:139(vfs_init_custom) Initialising custom vfs hooks from [acl_xattr] [2017/04/28 12:11:49.319500, 3] ../source3/smbd/vfs.c:139(vfs_init_custom) Initialising custom vfs hooks from [dfs_samba4] [2017/04/28 12:11:49.319524, 2] ../source3/modules/vfs_acl_xattr.c:201(connect_acl_xattr) connect_acl_xattr: setting 'inherit acls = true' 'dos filemode = true' and 'force unknown acl user = true' for service print$ [2017/04/28 12:11:49.321680, 3] ../source3/lib/util.c:300(unix_clean_name) unix_clean_name [W32X86/UNIDRV.DLL] [2017/04/28 12:11:49.321788, 3] ../source3/printing/nt_printing.c:753(get_correct_cversion) get_correct_cversion: vfs_file_exist failed [2017/04/28 12:11:49.321858, 0] ../source3/rpc_server/spoolss/srv_spoolss_nt.c:8604(_spoolss_AddPrinterDriverEx) _spoolss_AddPrinterDriverEx: clean_up_driver_struct failed - WERR_FILE_NOT_FOUND Am 28.04.2017 um 11:48 schrieb Achim Gottinger via samba:> Did the first test on two different servers both are running debian > wheezy and packported samba packages. > > On the server still running 4.6.2 it worked without problems to add > the first available printer driver (Brother-DCP116C). > On the other server already running 4.6.3 it faile with the error you > and marc described. So I downgraded this server to 4.6.2 but i still > get the error. > > > Am 28.04.2017 um 11:20 schrieb Achim Gottinger via samba: >> Tried it here it works with 4.6.2 but with 4.6.3 it fails for windows >> 7 32 bit as well. >> >> Am 27.04.2017 um 20:13 schrieb Andre Freire via samba: >>> Hi, >>> >>> I use samba 4 like domain controler, file server and print server. I am >>> using 4.4.13 version and all its ok. >>> >>> I decide test the new version 4.6 and I have a problem with print >>> server. I >>> can upload 64bits drivers but I cannot upload 32bits drivres. Always >>> give >>> an error. I try upload driver with Windows 7 64 and 32 bits. >>> >>> Some one can help me? >>> >>> King regards. >>> André Freire >>> Gerente de Tecnologia >>> E-mail: carlosandrefreire at gmail.com >>> >>> *skype: andrefreire.hf <andrefreire at ig.com.br>*Tel: (71)99381-7372 >> >> > >
I changed the get_correct_cversion function to return always 3 for W32X86 arch like it does for x64. This fixes the issue for windows 7 32Bit and the brother driver. Guess this may break printing for windows 2000/xp sometimes? Am 28.04.2017 um 12:28 schrieb Achim Gottinger via samba:> Log if it works > > api_rpcTNP: rpc command: SPOOLSS_ADDPRINTERDRIVEREX > [2017/04/28 12:17:02.416040, 3] > ../source3/smbd/vfs.c:113(vfs_init_default) > Initialising default vfs hooks > [2017/04/28 12:17:02.416064, 3] > ../source3/smbd/vfs.c:139(vfs_init_custom) > Initialising custom vfs hooks from [/[Default VFS]/] > [2017/04/28 12:17:02.416088, 3] > ../source3/smbd/vfs.c:139(vfs_init_custom) > Initialising custom vfs hooks from [acl_xattr] > [2017/04/28 12:17:02.416108, 3] > ../source3/smbd/vfs.c:139(vfs_init_custom) > Initialising custom vfs hooks from [dfs_samba4] > [2017/04/28 12:17:02.416134, 2] > ../source3/modules/vfs_acl_xattr.c:201(connect_acl_xattr) > connect_acl_xattr: setting 'inherit acls = true' 'dos filemode = > true' and 'force unknown acl user = true' for service print$ > [2017/04/28 12:17:02.418586, 3] > ../source3/lib/util.c:300(unix_clean_name) > unix_clean_name [W32X86/UNIDRV.DLL] > > Log if it fails > > api_rpcTNP: rpc command: SPOOLSS_ADDPRINTERDRIVEREX > [2017/04/28 12:11:49.319442, 3] > ../source3/smbd/vfs.c:113(vfs_init_default) > Initialising default vfs hooks > [2017/04/28 12:11:49.319462, 3] > ../source3/smbd/vfs.c:139(vfs_init_custom) > Initialising custom vfs hooks from [/[Default VFS]/] > [2017/04/28 12:11:49.319483, 3] > ../source3/smbd/vfs.c:139(vfs_init_custom) > Initialising custom vfs hooks from [acl_xattr] > [2017/04/28 12:11:49.319500, 3] > ../source3/smbd/vfs.c:139(vfs_init_custom) > Initialising custom vfs hooks from [dfs_samba4] > [2017/04/28 12:11:49.319524, 2] > ../source3/modules/vfs_acl_xattr.c:201(connect_acl_xattr) > connect_acl_xattr: setting 'inherit acls = true' 'dos filemode = > true' and 'force unknown acl user = true' for service print$ > [2017/04/28 12:11:49.321680, 3] > ../source3/lib/util.c:300(unix_clean_name) > unix_clean_name [W32X86/UNIDRV.DLL] > [2017/04/28 12:11:49.321788, 3] > ../source3/printing/nt_printing.c:753(get_correct_cversion) > get_correct_cversion: vfs_file_exist failed > [2017/04/28 12:11:49.321858, 0] > ../source3/rpc_server/spoolss/srv_spoolss_nt.c:8604(_spoolss_AddPrinterDriverEx) > _spoolss_AddPrinterDriverEx: clean_up_driver_struct failed - > WERR_FILE_NOT_FOUND > > > > Am 28.04.2017 um 11:48 schrieb Achim Gottinger via samba: >> Did the first test on two different servers both are running debian >> wheezy and packported samba packages. >> >> On the server still running 4.6.2 it worked without problems to add >> the first available printer driver (Brother-DCP116C). >> On the other server already running 4.6.3 it faile with the error you >> and marc described. So I downgraded this server to 4.6.2 but i still >> get the error. >> >> >> Am 28.04.2017 um 11:20 schrieb Achim Gottinger via samba: >>> Tried it here it works with 4.6.2 but with 4.6.3 it fails for >>> windows 7 32 bit as well. >>> >>> Am 27.04.2017 um 20:13 schrieb Andre Freire via samba: >>>> Hi, >>>> >>>> I use samba 4 like domain controler, file server and print server. >>>> I am >>>> using 4.4.13 version and all its ok. >>>> >>>> I decide test the new version 4.6 and I have a problem with print >>>> server. I >>>> can upload 64bits drivers but I cannot upload 32bits drivres. >>>> Always give >>>> an error. I try upload driver with Windows 7 64 and 32 bits. >>>> >>>> Some one can help me? >>>> >>>> King regards. >>>> André Freire >>>> Gerente de Tecnologia >>>> E-mail: carlosandrefreire at gmail.com >>>> >>>> *skype: andrefreire.hf <andrefreire at ig.com.br>*Tel: (71)99381-7372 >>> >>> >> >> > >