Ticket #90 (closed Defect: Fixed)

Opened 3 years ago

Last modified 2 years ago

subnet in trusted_peers does not work

Reported by: jh Owned by: admin
Priority: Minor Milestone: OpenXCAP 1.2.0
Component: Authentication and authorization Version: trunk
Severity: Non-critical Keywords:
Cc: jh@tutpro.com

Description

according to example in config.ini.sample, trusted_peers can include a subnet specification:

; e.g. trusted_peers = 10.0.0.0/24, 192.168.0.1

if i try that like this:

trusted_peers = 192.98.101.0/24

and use xcapclient to get a document, openxcap server responds with 401. if i instead list a single host from the subnet, the same get works fine.

openxcap server does accept the trusted_peers definition with subnet:

May 11 17:18:16 localhost openxcap[3545]: Trusted peers: 192.98.101.0/24

-- juha

Change History

comment:1 Changed 3 years ago by jh

  • Cc jh@tutpro.com added

comment:2 Changed 3 years ago by admin

  • Owner changed from support@ag-projects.com to admin
  • Status changed from new to accepted
  • Component changed from XCAP server to Authentication

comment:3 Changed 3 years ago by adigeo

  • Milestone set to OpenXCAP 1.1.1

comment:4 Changed 2 years ago by sanjeev

Is this resolved? I am using 1.1.2 version and this issue still seems to persist.

comment:5 Changed 2 years ago by ibc

I confirm this bug. For a demo I tryed to set trusted_peers = 0.0.0.0/32 to allow any IP and it didn't work at all.

comment:6 Changed 2 years ago by saul

  • Status changed from accepted to closed
  • Resolution set to Fixed

Fixed and updated readme. It allows IPs, subnets and 'any' or 'none' options now.

Note: See TracTickets for help on using tickets.