Scenario Two: The Multi-User Mac with Popup Authentication

Schools and universities often have Macs available for student use in dedicated computer labs. In these environments the Macs are shared by many users and Scenario One is not appropriate. Larger Mac networks already using LDAP or Active Directory authentication, or planning on doing so, may wish to consider Scenario Three explained in the next section.

Mac popup authentication dialog requesting username and password

Figure 19.8. Mac popup authentication dialog requesting username and password

Scenario Two uses a popup authentication model. This is discussed in detail in the section called “Popup Authentication” and discussed further below:

The end-user's perspective:

  1. The user sees the client tool (PCClient) running.

  2. When the user prints a job, the client pops up a window requesting the user to enter a username and password. See the section called “Popup Authentication”.

  3. The user enters a domain username and password.

  4. If the credentials are valid, the job is charged to the user account.

The explanation:

  1. The print event is performed as a generic user - for example "macuser", "student", etc.

  2. In PaperCut NG, the "macuser" account is set up to use popup authentication by enabling the option Unauthenticated user. See the section called “Popup Authentication” for further details.

  3. The popup requests the user to enter a username and password.

  4. The password is authenticated and printing is charged against the supplied account.

Requirements

  • Printers hosted and shared off a Windows, Mac or Linux server.

  • Mac systems set up to login under a generic account name. (e.g. macuser, student, etc.)

  • The domain contains a user account matching the generic account.

Installation

Domain account set up:

  1. Log onto the print server or the domain controller.

  2. Open Active Directory Users and Computers (or equivalent user management tool) from Start -> Administrative Tools.

  3. Add a new domain user called macuser.

  4. Define a password for macuser and set the password to never expire.

Mac account set up:

  1. Start up the Mac and ensure the system is connected to the network.

  2. From the Apple menu select System Preferences...

  3. Select Accounts.

  4. Create an account called macuser. Ensure the account's short name is macuser.

  5. Set this account as the automatic login account, or alternatively make the password known to all users.

Set up the printers that the user requires access to:

  1. Open the Printer Setup Utility from Applications -> Utilities.

  2. Click the Add button to add a new printer.

    Add a printer

    Figure 19.9. Add a printer

  3. Option-Click More Printers... (Important: Hold the Option key down).

  4. Select Advanced from the top drop-down list.

    Option-click for advanced printer addition types

    Figure 19.10. Option-click for advanced printer addition types

  5. Select a Device of Windows Printing via Samba.

  6. In Device name, enter a friendly and informative printer name.

  7. Enter a Device URL in the form:

        smb://macuser:password@server_name/printer_name
                                

    Where password is the password for the macuser domain account, server_name is the name of the server hosting the printer, and printer_name is the printer's share name.

    Windows printer via SAMBA

    Figure 19.11. Windows printer via SAMBA

  8. Select the Print Model to install and configure drivers.

  9. Click the Add button.

  10. Test print and ensure jobs are listing in the print queue under the macuser identity.

To install the PaperCut NG client software:

  1. Start and Log into the Mac computer. Ensure it's connected to the network.

  2. Open the Finder.

  3. From the Go menu, select Connect to Server...

    Connecting to a Windows server

    Figure 19.12. Connecting to a Windows server

  4. Enter the pcclient share's connection details like:

        smb://server_name/pcclient
                                

    Where server_name is the name of the server hosting the PaperCut NG server software.

    The PCClient share's connection string

    Figure 19.13. The PCClient share's connection string

  5. Enter password information if requested.

  6. Drag the PCClient package over to the local hard disk's global Applications folder. The copy process will commence.

    Command-click and open the package

    Figure 19.14. Command-click and open the package

  7. Command-click on the newly copied PCClient application in the Applications directory. Select Open Package Contents.

  8. Browser to Contents/Resources/.

  9. Double-click on the install-login-hook.command script.

    Double-click to install the login hook

    Figure 19.15. Double-click to install the login hook

  10. Restart the system and verify the client starts on login.

Configure the popup settings:

  1. Log on to PaperCut NG's administration interface as built-in admin user.

  2. Select the macuser account from Users.

  3. On the macuser's details screen, set the account balance to zero.

  4. Ensure the user is set to Restricted.

  5. Check the Unauthenticated option and save the changes.

    Turning on popup authentication at the user level

    Figure 19.16. Turning on popup authentication at the user level

  6. Click the Apply button to save the changes.

Testing:

  1. Log on to a Mac. Verify that the PCClient program starts automatically.

  2. Print to the newly set up printer. On the server's print queue the job appears under the user identity of macuser.

  3. The popup should display on the Mac. Enter a valid domain username and password.

    PaperCut NG client requesting for authentication (Sorry: Windows screen-shot!)

    Figure 19.17. PaperCut NG client requesting for authentication (Sorry: Windows screen-shot!)

  4. The corresponding user should be charged for the job.