Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-3018

When adding a user to an LDAP connector directory, "active" flag is ignored

XMLWordPrintable

      Symptoms

      When adding a new user to a directory with an LDAP connector, if you specify the user's active flag to false, it will still be created with active flag true. After adding the user, the flag can be turned off without issue.

      This affects the Crowd Admin Console user interface, and also the REST API.

      Steps to Reproduce

      In the admin console, add a user and set the active flag to "false". After the user is added, the active flag is set to true.

      To replicate in REST:

      curl -i -u test:test --data '{ "name" : "my_username", "first-name" : "My", "last-name" : "Username", "display-name" : "My Username", "email" : "user@example.test", "password" : { "value" : "my_password" }, "active" : false }' http://localhost:8095/crowd/rest/usermanagement/1/user --header 'Content-Type: application/json' --header 'Accept: application/json'
      

      When this command is run, the user is created with the active flag set to "true" despite "false" being the value in the request payload.

      This issue does not affect Crowd internal directories.

      Workaround

      Manually set the flag after the create command, or send a REST command to update the flag.

              Unassigned Unassigned
              dmason David Mason (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: