LPRng print queue monitor user access HOWTO for sme server

 

Author: Ray Mitchell - mitchellcpa_AT_yahoo.com.au

Release supported: sme 6.x

Release date: 24 November 2005

Version: 1.0

 

Problem:

You have installed the saco-mitel-lprng-monitor or smeserver-lprng-monitor rpm, and need to allow user access to administer the printer queues. Presently the rpm is configured to allow admin access only, via the server manager, user manager or web URL.

 

Solution:

Follow this HowTo to make an adjustment to the custom template to manually add users who are allowed to access the print queue manager.

 

Instructions:

If not yet installed then download and install the latest version from here:

http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/saco/smeserver/beta/lprng-monitor/

ie

smeserver-lprng-monitor-0.0.6-1.noarch.rpm

rpm -Uvh smeserver-lprng-monitor-0.0.6-1.noarch.rpm

 

 

The rpm installs a template into the custom template folder. This is technically incorrect as the template should have been installed to the templates folder. We therefore need to edit the (custom) template that was installed by the rpm, rather than making a separate custom template.

 

cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf

 

Edit the code relating to the two lines that specify "require user" as follows & replace username1 username2 username3 username4 with your required usernames:

pico 90e-smithAccess40LPRng

 

# LPRng

Alias /LPRng /var/www/html/LPRng

<Directory /var/www/html/LPRng>

AllowOverride None

Options +Indexes

order deny,allow

deny from all

allow from all

AuthName "e-smith manager"

AuthType Basic

AuthExternal pwauth

require user admin username1 username2 username3 username4

</Directory>

<Directory /var/www/html/LPRng/admin>

AllowOverride None

Options +Indexes

order deny,allow

deny from all

allow from all

AuthName "e-smith manager"

AuthType Basic

AuthExternal pwauth

require user admin username1 username2 username3 username4

</Directory>

<Directory /var/www/html/LPRng/cgi-bin>

Options ExecCGI

AllowOverride None

order deny,allow

deny from all

allow from all

</Directory>

<Directory /var/www/html/LPRng/admin/cgi-bin>

Options ExecCGI FollowSymLinks

AllowOverride None

order deny,allow

deny from all

allow from all

</Directory>

# LPRng end

 

Note: You can add as many usernames as required but they must be separated by a space

Save the file

Ctrl o

Exit

Ctrl x

then expand the template & reload httpd

/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf

/etc/init.d/httpd-e-smith graceful

 

Now you should be able to browse using a web browser to

https://serverIP/LPRng

or

https://servername/LPRng

or

https://yourdomain/LPRng/

Enter a specified user name and password (rather than admin) and get access to the print queue manager.

You will also be able to get user level access via the user manager contrib.

 

Note: If you remove or upgrade the contrib your custom template changes will be lost.

A new install will totally replace your modified custom template, so you may like to keep a backup copy of the custom template in case you need to restore it after an upgrade of the contrib.

 

For reference the original code is:

# LPRng

Alias /LPRng /var/www/html/LPRng

<Directory /var/www/html/LPRng>

AllowOverride None

Options +Indexes

order deny,allow

deny from all

allow from all

AuthName "e-smith manager"

AuthType Basic

AuthExternal pwauth

require user admin

</Directory>

<Directory /var/www/html/LPRng/admin>

AllowOverride None

Options +Indexes

order deny,allow

deny from all

allow from all

AuthName "e-smith manager"

AuthType Basic

AuthExternal pwauth

require user admin

</Directory>

<Directory /var/www/html/LPRng/cgi-bin>

Options ExecCGI

AllowOverride None

order deny,allow

deny from all

allow from all

</Directory>

<Directory /var/www/html/LPRng/admin/cgi-bin>

Options ExecCGI FollowSymLinks

AllowOverride None

order deny,allow

deny from all

allow from all

</Directory>

# LPRng end