Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin users cannot view the users and roles when user store type is set to read_only_ldap #4045

Open
DedunuKarunarathne opened this issue Feb 21, 2025 · 0 comments
Labels

Comments

@DedunuKarunarathne
Copy link
Contributor

Description

With and LDAP user store, admin users cannot view the users and roles when user store type is set to read_only_ldap.

ERROR {AuthorizationHandler} - User admin cannot be authorized

Steps to Reproduce

  1. Configure LDAP user store [1] with the following config.
[user_store]
connection_url = "ldap://localhost:10389"  
connection_name = "uid=admin,ou=system"
connection_password = "admin"  
user_search_base = "ou=Users,dc=wso2,dc=org"
type = "read_only_ldap"
  1. Try to view the users with management API as an admin user.
curl --location 'https://localhost:9164/management/users' \
--header 'accept: application/json' \
--header 'Authorization: Bearer token'

[1] https://mi.docs.wso2.com/en/latest/install-and-setup/setup/user-stores/setting-up-a-userstore-in-mi/#configuring-an-ldap-user-store

Version

4.2.0

Environment Details (with versions)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant