Mac OSX “Hold for authentication” when trying to print

Fix steps:

  1. Print any document and the job is hold in queue with message “Hold for authentication”
  2. Open a terminal window and run the following commands
    $ lpstat -s

    Output likes the following:
    device for <printer name>: smb://<server>/<shared name>

    device for Canon_iR_ADV_4245: smb://my-windows-printer-server/Canon_iR_ADV_4245
    $ sudo lpadmin -p <printer name> -o auth-info-required=<Your username>,<Your password>