Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-8089

rest2ldap gateway returns string instead of boolean

    XMLWordPrintable

    Details

    • Bug
    • Status: Dev backlog
    • Major
    • Resolution: Unresolved
    • 6.5.3
    • None
    • rest

      Description

      rest2ldap gateway returns a string value instead of boolean.

      For example, 'stGoGroupActive' attribute holds a boolean value as shown below.

      #ldapsearch -h localhost --bindDN "cn=Directory Manager" -w password -p 1389 -b dc=example,dc=com uid=user.100 stGoGroupActive
      dn: uid=user.100,ou=People,dc=example,dc=com
      stGoGroupActive: true 

      However, the rest2ldap gateway returns this as a string:

      $ curl --request GET --user user.100:password http://localhost:8080/rest2ldap/api/users/user.100?_prettyPrint=true
      {
        "_id" : "user.100",
        "_rev" : "000000002e33e49f",
        "_schema" : "frapi:opendj:rest2ldap:user:1.0",
        "_meta" : {
          "lastModified" : "2021-06-17T15:15:09Z"
        },
        "userName" : "user.100@example.com",
        "displayName" : [ "Aggy Ahad" ],
        "name" : {
          "givenName" : "Aggy",
          "familyName" : "Ahad"
        },
        "description" : "This is the description for Aggy Ahad.",
        "stGoGroupActive" : "true",
        "contactInformation" : {
          "telephoneNumber" : "+1 360 654 0292",
          "emailAddress" : "user.100@example.com"
        } 

      Please note that the embedded rest endpoint returns the correct format.

      I have tested using the DS 6.5.3 gateway downloaded from backstage.

      This seems similar to OPENDJ-7029 but affects the rest2ldap gateway

        Attachments

          Issue Links

            Activity

              People

              Unassigned Unassigned
              akhil.kommadath Akhil Kommadath
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: