Piviul
2020-Oct-30 11:26 UTC
[Samba] problems accessing samba shared printers from win32 clients
Marco Gaiarin via samba ha scritto il 30/10/20 alle 10:02:> Mandi! Piviul via samba > In chel di` si favelave... > >> Someone can help me to troubleshoot the problem? > > If i remember well, if the driver architecture is 64 bit as: > > spoolss: architecture = Windows x64I don't think you remember correctly ;). From man smb.conf I read> spoolss: architecture (G) > > Windows spoolss print clients only allow association of server-side drivers with printers when the driver > architecture matches the advertised print server architecture. Samba's spoolss print server architecture can be > changed using this parameter. > > Default: spoolss: architecture = Windows NT x86> > (but i suppose that in recent samba version is the default...) you have > to load first the 64bit driver, and only after that the 32bit.Any way I have installed a new samba server and a new printer on the server. From a 64bit client I have installed the 64 and 32 bit drivers and all seems to works correctly: on the server I can find the drivers installed in <path option in print$>/x64/3 for the 64bit version and <path option in print$>/W32X86/3 for the 32 bit version. If I double click on the shared printers from a 64bit client I get the error: "A policy is in effect on your computer which prevents you from connecting to this printer queue". If I double click on the shared printer from a 32 bit client the printer seems to be installed correctly but when I go to the printer properties I get the message that the printer driver is not installed and if I want install a new one. On the logs I can find:> [2020/10/30 11:23:17.823375, 0] ../source3/smbd/trans2.c:3447(smbd_do_qfsinfo) > smbd_do_qfsinfo: not an allowed info level (0x102) on IPC$.If I choose to install a new driver and I choose the same 32bit version of the driver the system says that it is not possible to install the driver. :? Piviul
Marco Gaiarin
2020-Oct-30 16:40 UTC
[Samba] problems accessing samba shared printers from win32 clients
Mandi! Piviul via samba In chel di` si favelave...> If I double click on the shared printers from a 64bit client I get the > error: "A policy is in effect on your computer which prevents you from > connecting to this printer queue".You have to set a GPO, 'Restrizioni di selezione e stampa' in italian. https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc753269(v=ws.11) https://support.microsoft.com/it-it/help/234270/how-to-use-group-policy-settings-to-control-printers-in-active-directo> If I double click on the shared printer from a 32 bit client the printer > seems to be installed correctly but when I go to the printer properties I > get the message that the printer driver is not installed and if I want > install a new one. On the logs I can find: > > [2020/10/30 11:23:17.823375, 0] ../source3/smbd/trans2.c:3447(smbd_do_qfsinfo) > > smbd_do_qfsinfo: not an allowed info level (0x102) on IPC$. > If I choose to install a new driver and I choose the same 32bit version of > the driver the system says that it is not possible to install the driver. > :?Could be a driver bugs. Try to: a) retry some time subsequently; some driver need that you try 2-5 times to load correctly the driver (but seems that samba load the driver without error, indeed) b) change driver (also, driver revision could help) c) if the driver come with some CAB file, unpack it in source driver folder before uploading; this is sometime needed for language specific file (so, unpack italian only cab). d) last resort, but sometime works, load the driver/printer in a windows machine, the 'copy' the driver via rpcclient: https://www.samba.org/samba/docs/old/Samba3-HOWTO/classicalprinting.html#inst-rpc -- dott. Marco Gaiarin GNUPG Key ID: 240A3D66 Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/ Polo FVG - Via della Bont?, 7 - 33078 - San Vito al Tagliamento (PN) marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797 Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA! http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000 (cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
Piviul
2020-Nov-01 05:38 UTC
[Samba] problems accessing samba shared printers from win32 clients
Il 30/10/20 17:40, Marco Gaiarin via samba ha scritto:> Mandi! Piviul via samba > In chel di` si favelave... > >> If I double click on the shared printers from a 64bit client I get the >> error: "A policy is in effect on your computer which prevents you from >> connecting to this printer queue". > You have to set a GPO, 'Restrizioni di selezione e stampa' in italian. > https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc753269(v=ws.11) > https://support.microsoft.com/it-it/help/234270/how-to-use-group-policy-settings-to-control-printers-in-active-directoooops, you are right, I have forgot to add this new server to the list of allowed point and print server. Any way even adding this policy change only the error shown. Now the error is: "The printer driver is not compatible with a policy enabled on your computer that blocks NT 4.0 drive"... Looking for a solution of this problem I found that removing C:\windows\system32\spool\drivers\x64 the printer is installed successfully! I'm not sure but seems that troubles on win64 OS has been solved.> [...] > Could be a driver bugs. Try to: > > a) retry some time subsequently; some driver need that you try 2-5 > times to load correctly the driver (but seems that samba load the > driver without error, indeed) > > b) change driver (also, driver revision could help) > > c) if the driver come with some CAB file, unpack it in source driver > folder before uploading; this is sometime needed for language > specific file (so, unpack italian only cab). > > d) last resort, but sometime works, load the driver/printer in a > windows machine, the 'copy' the driver via rpcclient: > https://www.samba.org/samba/docs/old/Samba3-HOWTO/classicalprinting.html#inst-rpcNow the drive on the samba server seems to be installed correctly. Win7 64bit (and I hope Win10 64bit too, I haven't try it yet) and Win7 32bit clients can install the shared printer double clicking on it and all seems to works flawlessy now. Remain a problem on WinXP 32bit clients: if a WXP32 client double click on the shared printer all seems to works and the printer is installed flawlessly but when I try to print something to the printer I get an error and if I go to the properties of the printer windows says that the driver is not installed. That's happen only after upgrading the samba domain to AD. The driver is the same that was working perfectly before the domain upgrading... why XP says that the print driver is not installed? There is another very strange behavior that I think it is be tied to. If I go in winxp 32bit to the properties of the shared printer installed and I say "no" when ask to install the driver and then in advanced tab I select to install a new driver and I follow the procedure selecting the same 32bit driver the dialog show a summary saying: "HP Universal Printing PS, x64, Windows XP". But winxp is 32bit and I have select a 32bit driver: why says x64?!? ...I'm very confused :( Piviul
Possibly Parallel Threads
- problems accessing samba shared printers from win32 clients
- problems accessing samba shared printers from win32 clients
- problems accessing samba shared printers from win32 clients
- problems accessing samba shared printers from win32 clients
- accessing foreign AD users to NT domain