Bug 34068 - Clarify the need of 32bit drivers
Clarify the need of 32bit drivers
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Samba4
UCS 3.1
Other Linux
: P5 normal (vote)
: UCS 4.0-0-errata
Assigned To: Arvid Requate
Stefan Gohmann
:
: 34387 (view as bug list)
Depends on: 34018
Blocks: 37476
  Show dependency treegraph
 
Reported: 2014-02-07 06:03 CET by Stefan Gohmann
Modified: 2015-03-09 23:24 CET (History)
7 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2014-02-07 06:03:50 CET
We should check whether the is AD default. If not we should fix samba.

+++ This bug was initially created as a clone of Bug #34018 +++

The driver assignment was improved at bug #30597 quite nicely.

One last point should be clarified:
"If you are using an environment in which 64-bit installations are used in addition to 32-bit versions of Windows, you will need both versions of the drivers."

Could be confusing if you ONLY have 64bit machines - you ALWAYS need 32bit versions - otherwise the driver will not be shown in the drivers list.
Comment 1 Ingo Steuwer univentionstaff 2014-11-05 11:07:10 CET
requested by 2014110521000226 (one partner who had trouble with printer drivers at two customers)

The documentation is often overlooked, and most windows clients are 64bit. So the current unexpected behaviour hits many admins.
Comment 2 Arvid Requate univentionstaff 2014-11-05 11:16:57 CET
Samba 4.2 has a new parameter for this, feedback welcome:

============================================================================
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

Example: spoolss: architecture = Windows x64
============================================================================

If trying this in local.conf please note that not al parts of samba smb.conf parsing consider a second [global] section. In most cases it currently still works though.
Comment 3 Ingo Steuwer univentionstaff 2014-11-05 14:26:35 CET
(In reply to Arvid Requate from comment #2)
> Samba 4.2 has a new parameter for this, feedback welcome:
[..] 
> Default: spoolss: architecture = Windows NT x86
> 
> Example: spoolss: architecture = Windows x64
[..]

Maybe we should make it configurable and use the local UCR architecture as default?

We should compare this with the behaviour of a Windows Server also.
Comment 4 Arvid Requate univentionstaff 2014-11-12 12:33:38 CET
A short followup just to clarify the purpose of the new samba option:

With the classic old point-and-print serverside driver upload+distribution model the uploading Windows client seems to ask the server about his architecture and require upload of a driver matching that -- even if the client has a different architecture. Ths Administrator has to take care to *additionally* upload the driver in for the client architecture.

The new option allows to adjust the spoolss/print server architecure, which simplifies matters in domains with predominant x64 client architecure.


> Maybe we should make it configurable and use the local UCR architecture
> as default?

Maybe, but this alone could also lead to strange behaviour in a situation where UCS slave1 is x386 and UCS slave2 is x64. In that case one probably would like to deploy a domain wide default, e.g. via UDM/UCR policy. But generally, yes, we should do something in this direction.


> We should compare this with the behaviour of a Windows Server also.

It may be a client matter: The Printer Administration MMC snapin explicitly shows information messages telling that 32-bit drivers are strictly required. We should check if the messages change once the server architecture has been adjusted.
Comment 5 Stefan Gohmann univentionstaff 2014-12-08 16:56:12 CET
Tickets about this: 2014110521000226 + 2014112721000202

I think first of all we should re-check the AD behavior. Maybe there is something missing in Samba. If not, we  should change the default to amd64 because new UCS 4 installations are always 64bit.
Comment 6 Arvid Requate univentionstaff 2015-01-07 19:13:01 CET
On native windows hosts serving a printer share this is not an issue, as the system always requires a printer driver for the local system architecture to be installed during printer share creation. So an x64 print server always has the x64 drivers downloadable for clients.

I now adjusted the smb.conf UCR template to check the architecture of the local UCS server and set the parameter "spoolss: archicture" to "Windows x64" if it's found to be a 64 bit system. This value may be overridden manually via UCR samba/spoolss/architecture.

Advisory: 2014-12-15-univention-samba4.yaml
Comment 7 Janis Meybohm univentionstaff 2015-01-08 09:44:07 CET
(In reply to Arvid Requate from comment #6)
> On native windows hosts serving a printer share this is not an issue, as the
> system always requires a printer driver for the local system architecture to
> be installed during printer share creation. So an x64 print server always
> has the x64 drivers downloadable for clients.
> 
> I now adjusted the smb.conf UCR template to check the architecture of the
> local UCS server and set the parameter "spoolss: archicture" to "Windows
> x64" if it's found to be a 64 bit system. This value may be overridden
> manually via UCR samba/spoolss/architecture.
> 
> Advisory: 2014-12-15-univention-samba4.yaml

Does that mean that "spoolss: archicture" would change during the update?
That would lead to disappearing printer drivers (from the users point of view) when only 32bit driver is installed on the server.
IMHO systems should stay 32bit on updates, new installations should be 64bit if UCS is 64bit.
Comment 8 Arvid Requate univentionstaff 2015-01-08 11:43:43 CET
> IMHO systems should stay 32bit on updates

Ok, adjusted: on updates the UCR variable gets set to the old value.

Test: 53_samba-common/37_spoolss_architecture
Comment 9 Philipp Hahn univentionstaff 2015-01-09 11:17:39 CET
r57215 | Bug #34068: 53_samba-common/37_spoolss_architecture
 FIXED SyntaxError: invalid syntax
  File "37_spoolss_architecture", line 23
    if not os.path.exists(path_testparm)
Comment 10 Arvid Requate univentionstaff 2015-01-12 10:08:17 CET
> r57215 | Bug #34068: 53_samba-common/37_spoolss_architecture

Thanks, must have been one of those days..
Comment 11 Stefan Gohmann univentionstaff 2015-01-23 10:26:37 CET
YAML: OK

Tests: OK

Code review: OK
Comment 12 Janek Walkenhorst univentionstaff 2015-01-29 11:42:18 CET
<http://errata.univention.de/ucs/4.0/59.html>
Comment 13 Arvid Requate univentionstaff 2015-03-09 23:22:27 CET
*** Bug 34387 has been marked as a duplicate of this bug. ***