Saturday, July 17, 2010

Share Remote printer using cups

Ive just spent a bit of time configuring cups for a remote printer, which is running attached to a laptop that runs RedHat Linux.

On the sytem that has direct access to the printer:
  1. Open a command prompt
  2. su to root
  3. navigate to /etc/cups
  4. vi cupsd.conf
You need to determine what network you are attached too. My local router uses a 10.0.0.0 network id. However, yours may be using a 192.168.1.0 or something else.

  1. Open a new command prompt
  2. su to root
  3. run ifconfig
You will now see a list of ip addresses. Choose the one for your wifi connection, typically:

wlan0 Link encap:Ethernet HWaddr 00:26:C6:C4:07:5E
inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0

In the command window with the cupsd.conf make the following changes. The line 10.0.0.* means that all machines on the network can print and access admin. Change as you desire.


# Allow shared printing...
Order allow,deny
Allow from 10.0.0.*



# Encryption Required
# Restrict access to the admin pages...
Order allow,deny
Allow from 10.0.0.*

Thursday, July 15, 2010

Siteminder TAI integration with websphere


When integrating websphere with siteminder tai, use the assertbyuserid=true in your siteminder policy server configuration.  This will pass the userid and not the full user DN. When accessing request.getRemoteUser the short name is returned.