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

API Descriptor for Active Directory - Not clear to me how we can get an identifier assigned to the AD Authentication module - Get a 400 error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 14.0.0
    • Fix Version/s: None
    • Component/s: API descriptor
    • Labels:
    • Rank:
      1|hzt1h3:

      Description

      Environment: Safari Browser
      OpenAM 14.0.0-SNAPSHOT Build 5bc2f25f66 (2017-March-01 00:32)

      From looking at the page, I was assuming that there would be some way of assigning an ID to the authentication module but it is not obvious how this would be done to me.

      PUT /realm-config/authentication/modules/activedirectory
      ________________________________________________________

      CURL
      ____

      curl -X PUT --header 'Content-Type: application/json' --header 'Accept: application/json' -d '

      { \ "primaryLdapServer": [ \ "10.1.10.77:636" \ ], \ "secondaryLdapServer": [], \ "userSearchStartDN": [ \ "dc=example,dc=com" \ ], \ "userBindDN": "cn=Administrator,cn=users,DC=EXAMPLE,DC=COM", \ "userBindPassword": "Meet123", \ "userProfileRetrievalAttribute": "cn", \ "userSearchAttributes": [ \ "cn" \ ], \ "userSearchFilter": null, \ "searchScope": "SUBTREE", \ "openam-auth-ldap-connection-mode": "LDAPS", \ "returnUserDN": true, \ "profileAttributeMappings": [], \ "trustAllServerCertificates": false, \ "connectionHeartbeatInterval": 1, \ "connectionHeartbeatTimeUnit": "MINUTES", \ "operationTimeout": 0, \ "authenticationLevel": 0 \ }

      ' 'https://ed-am2.test.forgerock.com:8443/openam/json/realm-config/authentication/modules/activedirectory'

      REQUEST URL
      ___________

      https://ed-am2.test.forgerock.com:8443/openam/json/realm-config/authentication/modules/activedirectory

      Response Body
      _____________

      { "code": 400, "reason": "Bad Request", "message": "The resource collection cannot be updated" }

      Response Code
      _____________

      400

      Response Headers
      ________________

      {
        "date": "Thu, 02 Mar 2017 15:04:14 GMT",
        "content-type": "application/json;charset=UTF-8",
        "server": "Apache-Coyote/1.1",
        "connection": "close",
        "x-frame-options": "SAMEORIGIN",
        "transfer-encoding": "Identity",
        "cache-control": "no-cache",
        "content-api-version": "resource=1.0"
      }
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            edward.barker edwardb
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: