2

In our SonarQube instance we have recently enabled LDAP authentication. Prior to LDAP integration the users were manually created. It so happened some of the users were created using the same LDAP user ID and custom password.

Now when LDAP is integrated we want all users use the LDAP ID/pass instead of previously manually created ID/password. SonarQube login works with manually created password rather than LDAP password. So how do remove the manually created users and only activate the LDAP users?

PS: I dont see the option to delete but only to de-activate

enter image description here

Jeel
  • 2,227
  • 5
  • 23
  • 38

2 Answers2

3

As replied by Jeroen Heier in comments, removing users from Administration > Security > Users will allow you to reuse the login of the removed user with an LDAP account.

If it's not the case, please describe what you're doing.

  • 3
    I dont see the option of delete but I see de-activate. Refer to update picture above in my question. – Jeel Jan 30 '18 at 17:37
  • any suggestions? – Jeel Jan 31 '18 at 08:30
  • 1
    Deletion is not possible, only de-activation is possible but still you can safely use the login of a disable user in LDAP – Julien L. - SonarSource Team Jan 31 '18 at 09:04
  • The user is still available in the "users" table. I want to delete a user permanently, as if it had never existed. It was a test user, deleting records from a DB really shouldn't be so hard. (Update: I deleted it with a delete query with direct db access. I think it is **BAAAD**) – peterh Nov 16 '18 at 23:57
  • Btw, did you ever thought on to do something with that mess of unparametrized generics in your code? – peterh Nov 17 '18 at 00:00
  • 1
    Don't worry, SQ is f*g good! In its functionality. I understand that in the case of a mainly opensource software it can't be perfect in every sense. Of course I won't ever criticize you until I didn't committed some patch to your pretty work! :-) – peterh Nov 17 '18 at 00:04
  • 1
    Nice to see this question again, as I want to delete a user again :-) Please do something, not being able to delete a user seems to me a real problem. – peterh Apr 12 '19 at 10:02
  • 1
    There's a JIRA ticket to allow deleting a user : https://jira.sonarsource.com/browse/SONAR-7243. Do not hesitate to vote for it ! – Julien L. - SonarSource Team Apr 15 '19 at 08:05
0

While I'm concerned with the deletion of an account... why can't you re-activate a user if you de-activated them through the UI. This is incredibly painful if a user was accidentally deactivated.

kirkpabk
  • 428
  • 4
  • 7