Git Product home page Git Product logo

Comments (8)

michaelrsweet avatar michaelrsweet commented on August 15, 2024

CUPS.org User: mike

I'm guessing that ServerName is set to something other than the hostname or the IP address of the system? If so, the default authentication WILL NOT WORK for any printing, since the URI that is advertised is not accessible and this is a configuration problem, not a CUPS bug.

from cups.

michaelrsweet avatar michaelrsweet commented on August 15, 2024

CUPS.org User: till.kamppeter

is the IP of my box, and I can print the test page, the problem is, that I get to a URL and when I continue from there I cannot do any admin access any more.

from cups.

michaelrsweet avatar michaelrsweet commented on August 15, 2024

CUPS.org User: mike

Is the IP address the same as the one logged in the access_log file?

from cups.

michaelrsweet avatar michaelrsweet commented on August 15, 2024

CUPS.org User: till.kamppeter

Below is the stuff written into access_log when going at first to

http://localhost:631/printers/lpdtest

and then clicking "Print Test Page" which lead to

http://192.168.100.184:631/printers/lpdtest?op=print-test-page

On the printer page all accesses go to localhost, on the driver page all except the "POST" go to 192.168.100.184.


localhost - root [23/Apr/2003:23:42:20 +0200] "GET /printers/ HTTP/1.1" 200 0
localhost - - [23/Apr/2003:23:42:20 +0200] "POST / HTTP/1.1" 200 77
localhost - root [23/Apr/2003:23:42:20 +0200] "GET /cups.css HTTP/1.1" 200 87
localhost - - [23/Apr/2003:23:42:20 +0200] "POST / HTTP/1.1" 200 105
localhost - root [23/Apr/2003:23:42:20 +0200] "GET /images/printer-idle.gif HTTP/1.1" 200 706
localhost - root [23/Apr/2003:23:42:20 +0200] "GET /images/print-test-page.gif HTTP/1.1" 200 288
localhost - root [23/Apr/2003:23:42:20 +0200] "GET /images/stop-printer.gif HTTP/1.1" 200 252
localhost - root [23/Apr/2003:23:42:20 +0200] "GET /printers/ HTTP/1.1" 200 26024
localhost - root [23/Apr/2003:23:42:21 +0200] "GET /images/reject-jobs.gif HTTP/1.1" 200 252
localhost - root [23/Apr/2003:23:42:21 +0200] "GET /images/modify-printer.gif HTTP/1.1" 200 277
localhost - root [23/Apr/2003:23:42:21 +0200] "GET /images/config-printer.gif HTTP/1.1" 200 296
localhost - root [23/Apr/2003:23:42:21 +0200] "GET /images/delete-printer.gif HTTP/1.1" 200 267
localhost - root [23/Apr/2003:23:43:01 +0200] "GET /printers/lpdtest HTTP/1.1" 200 0
localhost - - [23/Apr/2003:23:43:02 +0200] "POST / HTTP/1.1" 200 77
localhost - - [23/Apr/2003:23:43:02 +0200] "POST / HTTP/1.1" 200 153
localhost - - [23/Apr/2003:23:43:02 +0200] "POST / HTTP/1.1" 200 125
localhost - root [23/Apr/2003:23:43:02 +0200] "GET /cups.css HTTP/1.1" 200 87
localhost - root [23/Apr/2003:23:43:01 +0200] "GET /printers/lpdtest HTTP/1.1" 200 3321
localhost - root [23/Apr/2003:23:43:02 +0200] "GET /images/show-completed.gif HTTP/1.1" 200 337
192.168.100.184 - - [23/Apr/2003:23:43:29 +0200] "GET /printers/lpdtest?op=print-test-page HTTP/1.1" 200 0
192.168.100.184 - - [23/Apr/2003:23:43:29 +0200] "GET /cups.css HTTP/1.1" 200 87
192.168.100.184 - - [23/Apr/2003:23:43:29 +0200] "GET /images/navbar.gif HTTP/1.1" 200 2869
localhost - - [23/Apr/2003:23:43:29 +0200] "POST /printers/lpdtest HTTP/1.1" 200 953226

192.168.100.184 - - [23/Apr/2003:23:43:29 +0200] "GET /printers/lpdtest?op=print-test-page HTTP/1.1" 200 1560

from cups.

michaelrsweet avatar michaelrsweet commented on August 15, 2024

CUPS.org User: till.kamppeter

The same problem also occurs on

http://localhost:631/printers/

When I click on a local printer (queue name or printer icon on the left) to get to the printer´s page I get also

http://[Server]:631/printers/[queue]

instead of the expected

http://localhost:631/printers/[queue]

when I have "ServerName [Server]" in my /etc/cups/cupsd.conf. So if I want to go to a printer´s page for administration, I cannot access the admin stuff any more as I am not on localhost any more.

from cups.

michaelrsweet avatar michaelrsweet commented on August 15, 2024

CUPS.org User: mike

Does the problem occur if you set HostNameLookups to "on"?

from cups.

michaelrsweet avatar michaelrsweet commented on August 15, 2024

CUPS.org User: till.kamppeter

Yes, when I set "HostNameLookups On", it works as expected. Local printers in the printer list have "http://localhost:631/..." links and also the "Print Test Page" links are pointing to "http://localhost:631/...". Now I am wondering why without "HostNameLookups On" I get the network interface IP and not "127.0.0.1".

from cups.

michaelrsweet avatar michaelrsweet commented on August 15, 2024

CUPS.org User: mike

Because the local IP != localhost (it isn't the loopback interface)

If you want to use a servername that isn't the value of gethostname, then you need to enable hostname lookups.

from cups.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.