CUPS as printer client for Microsoft server

Many Microsoft servers started using encryption for their shares. This is also the case for Windows printer shares. In order to print from a Gentoo installation Samba and CUPS will be needed.

Installation
Edit to enable active directory support for CIFS and Samba. The following USE flags will pull in the required encryption needed for newer Windows servers:

Next (re)install and :

Configuration
Setting up printers is fairly simple through the web-interface of CUPS. Point a browser to  (which is the default location for the CUPS interface). Click and choose. There will be a prompt for a username and password of the printer administrator. Now choose and click continue. The connection to the Samba share is crucial to get the printers working. If on a domain a connection URL will need to be entered. An example is

Where the values for,  ,  ,   and   are properly substituted with the appropriate values for each use case. When not on a network with a domain-server leave out the  section of the string.

Troubleshooting
If users cannot print try to connect to the print server using the Samba client:

Where  is a postscript file located in the local current working directory.

If this test is working, then something went bad when setting up CUPS.