Package: sane-utils
Version: 1.0.15-7
Severity: important

I am using saned on a network.
My test use one server (obiwan) with saned daemon and one client
(d2r2) with scanimage application. Xinet, services, IP traffic,
all is ok.

My network is on 192.168.0.0/16 so the file saned.conf on
server is as follow.
Please note also that host obiwan use ip aliasing


----server config ----- [EMAIL PROTECTED]:~] -> dpkg -l |grep sane ii libsane 1.0.15-7 API library for scanners ii sane 1.0.13-2 scanner graphical frontends ii sane-utils 1.0.15-7 API library for scanners -- utilities [EMAIL PROTECTED]:~] -> cat /etc/sane.d/saned.conf 192.168.0.0/16

-----client config ------
[EMAIL PROTECTED]:~]
-> dpkg -l |grep sane
ii libsane 1.0.15-7 API library for scanners
ii sane 1.0.13-2 scanner graphical frontends
ii sane-utils 1.0.15-7 API library for scanners -- utilities
ii xsane 0.97-3 GTK+-based X11 frontend for SANE (Scanner Ac
ii xsane-common 0.97-3 GTK+-based X11 frontend for SANE (Scanner Ac
[EMAIL PROTECTED]:~]
-> cat /etc/sane.d/saned.conf
192.168.0.0/16



TEST 1: KO (because no scanner detected)
-----------------------------------------
server obiwan
[EMAIL PROTECTED]:~]
-> saned -d123
[saned] main: starting debug mode (level 123)
[saned] main: trying to get port for service `sane-port' (getaddrinfo)
[saned] main: [0] socket () using IPv6
[saned] main: [0] socket failed: Address family not supported by protocol
[saned] main: [1] socket () using IPv4
[saned] main: [1] setsockopt ()
[saned] main: [1] bind () to port 6566
[saned] main: [1] listen ()
[saned] main: waiting for control connection
[saned] saned (AF-indep+IPv6) from sane-backends 1.0.15 ready
[saned] check_host: access by remote host: 192.168.1.1
[saned] check_host: remote host is not IN_LOOPBACK nor IN6_LOOPBACK
[saned] check_host: local hostname: obiwan
[saned] check_host: local hostname(s) (from DNS): obiwan.belinda
[saned] check_host: local hostname(s) (from DNS): obiwan.belinda
[saned] check_host: local hostname(s) (from DNS): obiwan.belinda
[saned] check_host: remote host doesn't have same addr as local
[saned] check_host: opening config file: /etc/hosts.equiv
[saned] check_host: config file line: `+ vador'
[saned] check_host: getaddrinfo for `+ vador' failed: Name or service not known
[saned] check_host: entry isn't an IP address and can't be found in DNS
[saned] check_host: config file line: `+ luke'
[saned] check_host: getaddrinfo for `+ luke' failed: Name or service not known
[saned] check_host: entry isn't an IP address and can't be found in DNS
[saned] check_host: config file line: `+ syspeo'
[saned] check_host: getaddrinfo for `+ syspeo' failed: Name or service not known
[saned] check_host: entry isn't an IP address and can't be found in DNS
[saned] check_host: config file line: `+ padawan'
[saned] check_host: getaddrinfo for `+ padawan' failed: Name or service not known
[saned] check_host: entry isn't an IP address and can't be found in DNS
[saned] check_host: opening config file: saned.conf
[saned] check_host: config file line: `192.168.0.0/16'
[saned] check_host: subnet with base IP = 192.168.0.0, CIDR netmask = 16
[saned] check_host: access granted from IP address 192.168.1.1 (in subnet 192.168.0.0/16)
[saned] init: access granted
[saned] init: access granted to [EMAIL PROTECTED]
[saned] process_request: waiting for request
[saned] process_request: got request 1
[saned] process_request: waiting for request
[saned] process_request: got request 10
[saned] quit: exiting
--------------------------------------
and on client side....



[EMAIL PROTECTED]:~]
-> scanimage -f "scanner number <%i> device <%d> is a <%t> model <%m> produced by <%v>\n"
[sanei_debug] Setting debug level of net to 1.
[net] sane_init: SANE net backend version 1.0.13 (AF-indep+IPv6) from sane-backends 1.0.15
[net] add_device: adding backend /dev/scanner
[net] add_device: error while getting address of host /dev/scanner: Name or service not known
[net] add_device: adding backend srvscanner
[net] sane_exit: exiting



TEST 2: OK (because scanner detected) -------------------------------------

This is the same test, but saned is run via sudo in order to have root
access
[EMAIL PROTECTED]:~]
-> sudo saned -d123
[saned] main: starting debug mode (level 123)
[saned] main: trying to get port for service `sane-port' (getaddrinfo)
[saned] main: [0] socket () using IPv6
[saned] main: [0] socket failed: Address family not supported by protocol
[saned] main: [1] socket () using IPv4
[saned] main: [1] setsockopt ()
[saned] main: [1] bind () to port 6566
[saned] main: [1] listen ()
[saned] main: waiting for control connection
[saned] saned (AF-indep+IPv6) from sane-backends 1.0.15 ready
[saned] check_host: access by remote host: 192.168.1.1
[saned] check_host: remote host is not IN_LOOPBACK nor IN6_LOOPBACK
[saned] check_host: local hostname: obiwan
[saned] check_host: local hostname(s) (from DNS): obiwan.belinda
[saned] check_host: local hostname(s) (from DNS): obiwan.belinda
[saned] check_host: local hostname(s) (from DNS): obiwan.belinda
[saned] check_host: remote host doesn't have same addr as local
[saned] check_host: opening config file: /etc/hosts.equiv
[saned] check_host: config file line: `+ vador'
[saned] check_host: getaddrinfo for `+ vador' failed: Name or service not known
[saned] check_host: entry isn't an IP address and can't be found in DNS
[saned] check_host: config file line: `+ luke'
[saned] check_host: getaddrinfo for `+ luke' failed: Name or service not known
[saned] check_host: entry isn't an IP address and can't be found in DNS
[saned] check_host: config file line: `+ syspeo'
[saned] check_host: getaddrinfo for `+ syspeo' failed: Name or service not known
[saned] check_host: entry isn't an IP address and can't be found in DNS
[saned] check_host: config file line: `+ padawan'
[saned] check_host: getaddrinfo for `+ padawan' failed: Name or service not known
[saned] check_host: entry isn't an IP address and can't be found in DNS
[saned] check_host: opening config file: saned.conf
[saned] check_host: config file line: `192.168.0.0/16'
[saned] check_host: subnet with base IP = 192.168.0.0, CIDR netmask = 16
[saned] check_host: access granted from IP address 192.168.1.1 (in subnet 192.168.0.0/16)
[saned] init: access granted
[saned] init: access granted to [EMAIL PROTECTED]
[saned] process_request: waiting for request
[saned] process_request: got request 1
[saned] process_request: waiting for request
[saned] process_request: got request 10
[saned] quit: exiting


and on client side.....

[EMAIL PROTECTED]:~]
-> scanimage -f "scanner number <%i> device <%d> is a <%t> model <%m> produced by <%v>\n"
[sanei_debug] Setting debug level of net to 1.
[net] sane_init: SANE net backend version 1.0.13 (AF-indep+IPv6) from sane-backends 1.0.15
[net] add_device: adding backend /dev/scanner
[net] add_device: error while getting address of host /dev/scanner: Name or service not known
[net] add_device: adding backend srvscanner
[net] sane_exit: exiting
scanner number <0> device <net:srvscanner:hp:/dev/scanner> is a <flatbed scanner> model <C5110A> produced by <Hewlett-Packard>[EMAIL PROTECTED]:~]



As you can see, the answer is now correct, because i have a such scanner on obiwan host.

The 2 sequences are the same, and i have made a ethereal on tcp
connection. There is only one difference in last tcp transaction  from
obiwan to client d2r2 before closing the connection, this is of course
about the string on scanner identification.

It seems the problem is on server side.

The problem is important, because it is not possible to run saned via
xinetd without root access.

Best Regards

--
--------------------------------------
 -- Jean-Marc LACROIX                 --
  -- mailto : [EMAIL PROTECTED] --
    ---------------------------------------


-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Reply via email to