Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problems with remote-any server setting #2650

Closed
michaelrsweet opened this Issue Jan 3, 2008 · 3 comments

Comments

Projects
None yet
1 participant
@michaelrsweet
Copy link
Collaborator

commented Jan 3, 2008

Version: 1.3.4
CUPS.org User: twaugh.redhat

The remote-any server setting behaves oddly, and appears not to 'stick'.

Start with the cupsd.conf attached, and make a backup copy:;;;

cp /etc/cups/cupsd.conf{,.orig}

Now see what the settings are:

cupsctl

SystemGroup=sys root
DefaultAuthType=Basic
PreserveJobFiles=Yes
_debug_logging=0
_remote_admin=0
_remote_any=0
_remote_printers=1
_share_printers=1
_user_cancel_any=0

This is all expected.

  1. Trying to change remote-any on its own has no effect.

cupsctl --remote-any

cupsctl | grep remote_any

_remote_any=0

diff -U0 /etc/cups/cupsd.conf{.orig,}

--- /etc/cups/cupsd.conf.orig 2008-01-03 16:41:11.000000000 +0000
+++ /etc/cups/cupsd.conf 2008-01-03 16:42:15.000000000 +0000
@@ -3 +2,0 @@
-# Allow remote access
@@ -6 +4,0 @@
-# Enable printer sharing and shared printers.
@@ -13 +10,0 @@

  • Allow shared printing...

  1. When used in conjunction with share-printers, effect is made 'cupsctl' still shows '0' for that option.

cupsctl --share-printers --remote-any

cupsctl | grep remote_any

_remote_any=0

diff -U0 /etc/cups/cupsd.conf{.orig,}

--- /etc/cups/cupsd.conf.orig 2008-01-03 16:41:11.000000000 +0000
+++ /etc/cups/cupsd.conf 2008-01-03 16:44:49.000000000 +0000
@@ -15 +15 @@

Disabling this setting now brings the file back to its original state when used in conjunction with share-printers:

cupsctl --share-printers --no-remote-any

diff -U0 /etc/cups/cupsd.conf{.orig,}

Original bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=421411

@michaelrsweet

This comment has been minimized.

Copy link
Collaborator Author

commented Jan 7, 2008

CUPS.org User: mike

Fixed in Subversion repository.

@michaelrsweet

This comment has been minimized.

Copy link
Collaborator Author

commented Jan 7, 2008

"cupsd.conf":

LogLevel info
SystemGroup sys root

Allow remote access

Port 631
Listen /var/run/cups/cups.sock

Enable printer sharing and shared printers.

Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseAddress @Local
DefaultAuthType Basic

Allow shared printing...

Order allow,deny
Allow @Local

<Location /admin>
Encryption Required
Order allow,deny
Allow localhost

<Location /admin/conf>
AuthType Default
Require user @System
Order allow,deny
Allow localhost



Require user @owner @System
Order deny,allow


AuthType Default
Require user @System
Order deny,allow


AuthType Default
Require user @System
Order deny,allow


Require user @owner @System
Order deny,allow


Order deny,allow


PreserveJobFiles Yes

@michaelrsweet

This comment has been minimized.

Copy link
Collaborator Author

commented Jan 7, 2008

"str2650.patch":

Index: adminutil.c

--- adminutil.c (revision 7178)
+++ adminutil.c (working copy)
@@ -1057,7 +1057,7 @@
in_admin_location = 0;
in_location = 0;
}

  •  else if (!strcasecmp(line, "Allow") && in_admin_location &&
    
  •  else if (!strcasecmp(line, "Allow") &&
            strcasecmp(value, "localhost") && strcasecmp(value, "127.0.0.1")
    
    #ifdef AF_LOCAL
    && value != '/'
    @@ -1067,9 +1067,9 @@
    #endif /
    AF_INET6 */
    )
    {

- remote_admin = 1;

  • if (!strcasecmp(value, "all"))
  •    if (in_admin_location)
    
  • remote_admin = 1;
    
  •    else if (!strcasecmp(value, "all"))
    
    remote_any = 1;
    }
    else if (line[0] != '<' && !in_location && !in_policy)

@michaelrsweet michaelrsweet added this to the Stable milestone Mar 17, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.