There seems to be a problem with permissions or I am misunderstanding
something. We wish to allow access to a number of IP addresses.  The
lpd.perms file looks like:

--------------------------------------------------
ACCEPT IP=128.231.2.3
ACCEPT IP=128.231.77.156

DEFAULT REJECT
--------------------------------------------------

The first IP has an entry in DNS and can print perfectly. The second
does not have an entry in the DNS and cannot print, etc..

I ran "lpd -F '-Ddatabase=2'" and tried to print from both machines (the
full debugging is attached). The first successed but the second showed

.....RECV  test: Match_ipaddr_value: host <NULL>

The host value is NULL instead of a host hex value and the second ACCEPT
line failed to match. 

Any ideas?

                        Anthony.

-- 
Anthony R Iano-Fletcher        [EMAIL PROTECTED]
                               http://cbel.cit.nih.gov/~arif
                               CBEL, CIT, NIH, Bethesda, MD, USA.
                               Phone: (+1) 301 402 1741.
2003-03-13-09:27:49 [6445] lpd  Clear_config: freeing everything
2003-03-13-09:27:53.185 sirius [6449] SERVER  *** perm_check Perms_check - checking ***
2003-03-13-09:27:53.186 sirius [6449] SERVER    user '<NULL>', rmtuser '<NULL>', 
printer '<NULL>', service 'X', lpc '<NULL>'
2003-03-13-09:27:53.186 sirius [6449] SERVER  ***   host (0xff352acc) ***
2003-03-13-09:27:53.186 sirius [6449] SERVER    info name count 1
2003-03-13-09:27:53.186 sirius [6449] SERVER      [0] 'helix.nih.gov'
2003-03-13-09:27:53.186 sirius [6449] SERVER    address type 2, length 4 count 1
2003-03-13-09:27:53.186 sirius [6449] SERVER      [0] 0x80e70203
2003-03-13-09:27:53.187 sirius [6449] SERVER  ***   remotehost (0xff352acc) ***
2003-03-13-09:27:53.187 sirius [6449] SERVER    info name count 1
2003-03-13-09:27:53.187 sirius [6449] SERVER      [0] 'helix.nih.gov'
2003-03-13-09:27:53.187 sirius [6449] SERVER    address type 2, length 4 count 1
2003-03-13-09:27:53.187 sirius [6449] SERVER      [0] 0x80e70203
2003-03-13-09:27:53.187 sirius [6449] SERVER    port 38833, unix_socket 0
2003-03-13-09:27:53.187 sirius [6449] SERVER   authtype '<NULL>', authfrom '<NULL>', 
authuser '<NULL>', authca '<NULL>'
2003-03-13-09:27:53.188 sirius [6449] SERVER  Dump_line_list: Perms_check - 
permissions - 0xff352724, count 3, max 102, list 0x2d3d8
2003-03-13-09:27:53.188 sirius [6449] SERVER    [ 0] 0x27388 ='ACCEPT IP=128.231.2.3'
2003-03-13-09:27:53.188 sirius [6449] SERVER    [ 1] 0x29340 ='ACCEPT 
IP=128.231.77.156'
2003-03-13-09:27:53.188 sirius [6449] SERVER    [ 2] 0x2fbc8 ='DEFAULT REJECT'
2003-03-13-09:27:53.188 sirius [6449] SERVER  Perms_check: last_default_perm 'ACCEPT', 
Default_perm 'ACCEPT'
2003-03-13-09:27:53.189 sirius [6449] SERVER  Perms_check: 'ACCEPT IP=128.231.2.3' - 
match 0, result 'ACCEPT' default now 'ACCEPT'
2003-03-13-09:27:53.189 sirius [6449] SERVER  Perms_check: final result 1 'ACCEPT'
2003-03-13-09:27:53.217 sirius [6449] RECV  (INFO) test: Receive_job: read from 
helix.nih.gov- status 0 read 23 bytes '^B90 cfA690helix.nih.gov'
2003-03-13-09:27:53.262 sirius [6449] RECV  (INFO) test: Receive_job: read from 
helix.nih.gov- status 0 read 23 bytes '^C29 dfA690helix.nih.gov'
2003-03-13-09:27:53.396 sirius [6449] RECV  (INFO) test: Receive_job: read from 
helix.nih.gov- status 0 read 0 bytes ''
2003-03-13-09:27:53.397 sirius [6449] RECV  test: *** perm_check Perms_check - 
checking ***
2003-03-13-09:27:53.397 sirius [6449] RECV  test:   user 'arif', rmtuser 'arif', 
printer 'test', service 'R', lpc '<NULL>'
2003-03-13-09:27:53.397 sirius [6449] RECV  test: ***   host (0xff352a70) ***
2003-03-13-09:27:53.397 sirius [6449] RECV  test:   info name count 1
2003-03-13-09:27:53.397 sirius [6449] RECV  test:     [0] 'helix.nih.gov'
2003-03-13-09:27:53.397 sirius [6449] RECV  test:   address type 2, length 4 count 1
2003-03-13-09:27:53.397 sirius [6449] RECV  test:     [0] 0x80e70203
2003-03-13-09:27:53.398 sirius [6449] RECV  test: ***   remotehost (0xff352acc) ***
2003-03-13-09:27:53.398 sirius [6449] RECV  test:   info name count 1
2003-03-13-09:27:53.398 sirius [6449] RECV  test:     [0] 'helix.nih.gov'
2003-03-13-09:27:53.398 sirius [6449] RECV  test:   address type 2, length 4 count 1
2003-03-13-09:27:53.398 sirius [6449] RECV  test:     [0] 0x80e70203
2003-03-13-09:27:53.398 sirius [6449] RECV  test:   port 38833, unix_socket 0
2003-03-13-09:27:53.399 sirius [6449] RECV  test:  authtype '<NULL>', authfrom 
'<NULL>', authuser '<NULL>', authca '<NULL>'
2003-03-13-09:27:53.399 sirius [6449] RECV  test: Dump_line_list: Perms_check - 
permissions - 0xff352724, count 3, max 102, list 0x2d3d8
2003-03-13-09:27:53.399 sirius [6449] RECV  test:   [ 0] 0x27388 ='ACCEPT 
IP=128.231.2.3'
2003-03-13-09:27:53.399 sirius [6449] RECV  test:   [ 1] 0x29340 ='ACCEPT 
IP=128.231.77.156'
2003-03-13-09:27:53.399 sirius [6449] RECV  test:   [ 2] 0x2fbc8 ='DEFAULT REJECT'
2003-03-13-09:27:53.399 sirius [6449] RECV  test: Perms_check: last_default_perm 
'ACCEPT', Default_perm 'ACCEPT'
2003-03-13-09:27:53.400 sirius [6449] RECV  test: Match_ipaddr_value: host 
helix.nih.gov
2003-03-13-09:27:53.400 sirius [6449] RECV  test: *** Match_ipaddr_value - host  
(0xff352a70) ***
2003-03-13-09:27:53.400 sirius [6449] RECV  test:   info name count 1
2003-03-13-09:27:53.400 sirius [6449] RECV  test:     [0] 'helix.nih.gov'
2003-03-13-09:27:53.400 sirius [6449] RECV  test:   address type 2, length 4 count 1
2003-03-13-09:27:53.400 sirius [6449] RECV  test:     [0] 0x80e70203
2003-03-13-09:27:53.401 sirius [6449] RECV  test: Perms_check: 'ACCEPT IP=128.231.2.3' 
- match 0, result 'ACCEPT' default now 'ACCEPT'
2003-03-13-09:27:53.401 sirius [6449] RECV  test: Perms_check: final result 1 'ACCEPT'
2003-03-13-09:27:53.420 sirius [6449] RECV  (INFO) test: Check_for_missing files: 
SUCCESS 'cfA690helix.nih.gov'
2003-03-13-09:29:02.428 sirius [6464] SERVER  *** perm_check Perms_check - checking ***
2003-03-13-09:29:02.428 sirius [6464] SERVER    user '<NULL>', rmtuser '<NULL>', 
printer '<NULL>', service 'X', lpc '<NULL>'
2003-03-13-09:29:02.428 sirius [6464] SERVER  ***   host (0xff352acc) ***
2003-03-13-09:29:02.429 sirius [6464] SERVER    info name count 1
2003-03-13-09:29:02.429 sirius [6464] SERVER      [0] '128.231.77.156'
2003-03-13-09:29:02.429 sirius [6464] SERVER    address type 2, length 4 count 1
2003-03-13-09:29:02.429 sirius [6464] SERVER      [0] 0x80e74d9c
2003-03-13-09:29:02.429 sirius [6464] SERVER  ***   remotehost (0xff352acc) ***
2003-03-13-09:29:02.429 sirius [6464] SERVER    info name count 1
2003-03-13-09:29:02.429 sirius [6464] SERVER      [0] '128.231.77.156'
2003-03-13-09:29:02.430 sirius [6464] SERVER    address type 2, length 4 count 1
2003-03-13-09:29:02.430 sirius [6464] SERVER      [0] 0x80e74d9c
2003-03-13-09:29:02.430 sirius [6464] SERVER    port 721, unix_socket 0
2003-03-13-09:29:02.430 sirius [6464] SERVER   authtype '<NULL>', authfrom '<NULL>', 
authuser '<NULL>', authca '<NULL>'
2003-03-13-09:29:02.430 sirius [6464] SERVER  Dump_line_list: Perms_check - 
permissions - 0xff352724, count 3, max 102, list 0x2d3d8
2003-03-13-09:29:02.430 sirius [6464] SERVER    [ 0] 0x27388 ='ACCEPT IP=128.231.2.3'
2003-03-13-09:29:02.430 sirius [6464] SERVER    [ 1] 0x29340 ='ACCEPT 
IP=128.231.77.156'
2003-03-13-09:29:02.431 sirius [6464] SERVER    [ 2] 0x2fbc8 ='DEFAULT REJECT'
2003-03-13-09:29:02.431 sirius [6464] SERVER  Perms_check: last_default_perm 'ACCEPT', 
Default_perm 'ACCEPT'
2003-03-13-09:29:02.431 sirius [6464] SERVER  Perms_check: 'ACCEPT IP=128.231.2.3' - 
match 0, result 'ACCEPT' default now 'ACCEPT'
2003-03-13-09:29:02.431 sirius [6464] SERVER  Perms_check: final result 1 'ACCEPT'
2003-03-13-09:29:02.439 sirius [6464] RECV  (INFO) test: Receive_job: read from 
128.231.77.156- status 0 read 22 bytes '^B71 cfA022CITDCBBIMAS1'
2003-03-13-09:29:02.444 sirius [6464] RECV  (INFO) test: Receive_job: read from 
128.231.77.156- status 0 read 22 bytes '^C69 dfA022CITDCBBIMAS1'
2003-03-13-09:29:02.446 sirius [6464] RECV  (INFO) test: Receive_job: read from 
128.231.77.156- status 0 read 0 bytes ''
2003-03-13-09:29:02.452 sirius [6464] RECV  test: *** perm_check Perms_check - 
checking ***
2003-03-13-09:29:02.453 sirius [6464] RECV  test:   user 'bimasuser', rmtuser 
'bimasuser', printer 'test', service 'R', lpc '<NULL>'
2003-03-13-09:29:02.453 sirius [6464] RECV  test: ***   host (0x0) ***
2003-03-13-09:29:02.453 sirius [6464] RECV  test: ***   remotehost (0xff352acc) ***
2003-03-13-09:29:02.453 sirius [6464] RECV  test:   info name count 1
2003-03-13-09:29:02.453 sirius [6464] RECV  test:     [0] '128.231.77.156'
2003-03-13-09:29:02.454 sirius [6464] RECV  test:   address type 2, length 4 count 1
2003-03-13-09:29:02.454 sirius [6464] RECV  test:     [0] 0x80e74d9c
2003-03-13-09:29:02.454 sirius [6464] RECV  test:   port 721, unix_socket 0
2003-03-13-09:29:02.454 sirius [6464] RECV  test:  authtype '<NULL>', authfrom 
'<NULL>', authuser '<NULL>', authca '<NULL>'
2003-03-13-09:29:02.455 sirius [6464] RECV  test: Dump_line_list: Perms_check - 
permissions - 0xff352724, count 3, max 102, list 0x2d3d8
2003-03-13-09:29:02.455 sirius [6464] RECV  test:   [ 0] 0x27388 ='ACCEPT 
IP=128.231.2.3'
2003-03-13-09:29:02.455 sirius [6464] RECV  test:   [ 1] 0x29340 ='ACCEPT 
IP=128.231.77.156'
2003-03-13-09:29:02.455 sirius [6464] RECV  test:   [ 2] 0x2fbc8 ='DEFAULT REJECT'
2003-03-13-09:29:02.456 sirius [6464] RECV  test: Perms_check: last_default_perm 
'ACCEPT', Default_perm 'ACCEPT'
2003-03-13-09:29:02.456 sirius [6464] RECV  test: Match_ipaddr_value: host <NULL>
2003-03-13-09:29:02.456 sirius [6464] RECV  test: *** Match_ipaddr_value - host  (0x0) 
***
2003-03-13-09:29:02.456 sirius [6464] RECV  test: Perms_check: 'ACCEPT IP=128.231.2.3' 
- match 1, result 'NOMATCHFOUND' default now 'ACCEPT'
2003-03-13-09:29:02.457 sirius [6464] RECV  test: Match_ipaddr_value: host <NULL>
2003-03-13-09:29:02.457 sirius [6464] RECV  test: *** Match_ipaddr_value - host  (0x0) 
***
2003-03-13-09:29:02.457 sirius [6464] RECV  test: Perms_check: 'ACCEPT 
IP=128.231.77.156' - match 1, result 'NOMATCHFOUND' default now 'ACCEPT'
2003-03-13-09:29:02.457 sirius [6464] RECV  test: Perms_check: 'DEFAULT REJECT' - 
match 1, result 'NOMATCHFOUND' default now 'REJECT'
2003-03-13-09:29:02.457 sirius [6464] RECV  test: Perms_check: final result -1 'REJECT'
2003-03-13-09:29:02.458 sirius [6464] RECV  (INFO) test: Check_for_missing files: FAIL 
'cfA022CITDCBBIMAS1' test: no permission to print

Reply via email to