Op zondag 27 april 2003 22:27, schreef Graham Smith:
On Mon, 28 Apr 2003 05:21, Richard Bos wrote:
I made cups working as a server, but I think not in the way it should. At the moment I assign each allowed client to the <Location /> and
, but that actually controls access to the related directories. It is not handy as well as all clients may now change the printer definitions and each client must be assigned individually. What "tag" arranges which clients may access the cups server. I though it was done by the browse allow tag, but that did not work????
<Location /> Encryption IfRequested Satisfy All Order deny,allow Deny From All Allow From 127.0.0.1 Allow From 127.0.0.2 Allow From linux05.domain.com Allow From linux06.domain.com Allow From linux08.domain.com Allow From linux09.domain.com </Location>
The above is allowing Access permissions for each directory served by the scheduler. I do not see a need under general operation for linux0?.domain.com entries to have access.
Me neither, but this was the only way to get the clients to print :( That's why I stated "I got it to work, but not in the expected way"
AuthType Basic AuthClass System Encryption IfRequested Satisfy All Order deny,allow Deny From All Allow From 127.0.0.1 Allow From linux05.domain.com Allow From linux06.domain.com Allow From linux08.domain.com Allow From linux09.domain.com </Location> Why are you allowing linux0?.domain.com to have access to admin functions? Again under general operation these entries should not be necessary unless you have a headless server.
Testing today, revealed that the clients can continue to print if they are removed from this section, pfff that's already better.
# Browse addresses (BrowseAddress) # # Specifies a broadcast address to be used. By # default browsing information is broadcast to all active interfaces. # # Note: HP-UX 10.20 and earlier do not properly handle broadcast unless # you have a Class A, B, C, or D netmask (i.e. no CIDR support). # # ex: x.y.z.255, x.y.255.255 # #BrowseAddress x.y.z.255 #BrowseAddress x.y.255.255 #BrowseAddress x.255.255.255
BrowseAddress 212.10.78.255 BrowseAllow 212.10.78.*
If your IP range is 212.10.78.xxx then this should allow browse access to all computer in this sub-group.
-- Richard Bos Without a home the journey is endless
Hi Richard,
Have you assigned a ServerName. (See line 50 or there abouts)
Yes I have it is: linux06.domain.com
Also in each client have you added the ServerName to /etc/cups/client.conf ?
Yes, I have linux06.domain.com. I have removed the rpm pkg cups from the client.
Please refer to 2. How can I configure Cups for Server/Client operation ? http://susefaq.sourceforge.net/cups.html
I did. It seems I did everything according your procedure. I used LogLevel debug and this is the result if I remove the client from <location /> D [28/Apr/2003:17:43:14 +0200] AcceptClient() 3 from linux09.domain.com:631. D [28/Apr/2003:17:43:14 +0200] AcceptClient() 4 from linux09.domain.com:631. D [28/Apr/2003:17:43:14 +0200] CloseClient() 3 D [28/Apr/2003:17:43:14 +0200] ReadClient() 4 POST /printers/ HTTP/1.1 D [28/Apr/2003:17:43:14 +0200] SendError() 4 code=403 D [28/Apr/2003:17:43:14 +0200] CloseClient() 4 D [28/Apr/2003:17:43:15 +0200] AcceptClient() 4 from linux09.domain.com:631. D [28/Apr/2003:17:43:15 +0200] AcceptClient() 5 from linux09.domain.com:631. D [28/Apr/2003:17:43:15 +0200] CloseClient() 4 I have the printer specified as: DeviceURI lpd://black1.domain.com/lp -- Richard Bos Without a home the journey is endless