Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-4821

IP dnsName and ipRange properties will not evaluate

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 12.0.0
    • Fix Version/s: 12.0.0
    • Component/s: policy
    • Environment:
      OpenAM 12.0.0-SNAPSHOT Build 11255 (2014-October-30 02:38)
    • Rank:
      1|hzlzy7:
    • Sprint:
      Sprint 69 - Team Newton, Sprint 70 - Team Newton, Sprint 71 - Team Newton

      Description

      curl --header "iPlanetDirectoryPro: AQIC5wM2LY4SfcwitmwrcVY5MtbUIH961YfYpP-WT_1GKOA.*AAJTSQACMDEAAlNLABQtOTA0MjQyODE5MzU4MjQ3MDk0OA..*" "http://amrwalktest.internal.forgerock.com:18080/openam/json/policies/?_queryFilter=true&_prettyPrint=true"
      {
          "name" : "ipPolicy",
          "active" : true,
          "description" : "",
          "applicationName" : "iPlanetAMWebAgentService",
          "actionValues" : {
            "POST" : false,
            "GET" : true
          },
          "resources" : [ "http://example.com:80/ip.html" ],
          "subject" : {
            "type" : "AuthenticatedUsers"
          },
          "condition" : {
            "type" : "IP",
            "ipVersion" : "IPv4",
            "endIp" : "192.168.0.50",
            "startIp" : "192.168.0.0",
            "dnsName" : [ "amrwalktest.internal.forgerock.com" ],
            "ipRange" : [ "192.168.1.0", "192.168.1.50" ]
          },
          "lastModifiedBy" : "id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org",
          "lastModified" : "2014-10-30T10:41:46Z",
          "createdBy" : "id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org",
          "creationDate" : "2014-10-30T09:53:34Z"
        }
      

      evaluate iprange:

      curl  -X POST -H "iPlanetDirectoryPro: AQIC5wM2LY4SfcwitmwrcVY5MtbUIH961YfYpP-WT_1GKOA.*AAJTSQACMDEAAlNLABQtOTA0MjQyODE5MzU4MjQ3MDk0OA..*" -H "Content-Type: application/json" --data '{"resources": [ "http://example.com:80/ip.html"], "application": "iPlanetAMWebAgentService", "environment": {"requestIp": ["192.168.1.0"]} }' "http://amrwalktest.internal.forgerock.com:18080/openam/json/policies/?_action=evaluate&_prettyPrint=true"
      [ {
        "advices" : {
        },
        "resource" : "http://example.com:80/ip.html",
        "actions" : {
        },
        "attributes" : {
        }
      } ]
      

      evaluate dnsName:

      curl  -X POST -H "iPlanetDirectoryPro: AQIC5wM2LY4SfcwitmwrcVY5MtbUIH961YfYpP-WT_1GKOA.*AAJTSQACMDEAAlNLABQtOTA0MjQyODE5MzU4MjQ3MDk0OA..*" -H "Content-Type: application/json" --data '{"resources": [ "http://example.com:80/ip.html"], "application": "iPlanetAMWebAgentService", "environment": {"requestDnsName": ["amrwalktest.internal.forgerock.com"]} }' "http://amrwalktest.internal.forgerock.com:18080/openam/json/policies/?_action=evaluate&_prettyPrint=true"
      [ {
        "advices" : {
        },
        "resource" : "http://example.com:80/ip.html",
        "actions" : {
        },
        "attributes" : {
        }
      } ]
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              craig.mcdonnell Craig McDonnell
              Reporter:
              amrwalk Alex Walker [X] (Inactive)
              QA Assignee:
              Alex Walker [X] Alex Walker [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: