https://github.com/nithe14/keycloak-custom-ldap-enabled-mapper
Very basic custom Keycloak LDAP mapper that allows you to specify a custom value for the LDAP attribute that enables a Keycloak user.
https://github.com/nithe14/keycloak-custom-ldap-enabled-mapper
keycloak keycloak-mapper keycloak-user-federation keycloak-user-management ldap
Last synced: about 2 months ago
JSON representation
Very basic custom Keycloak LDAP mapper that allows you to specify a custom value for the LDAP attribute that enables a Keycloak user.
- Host: GitHub
- URL: https://github.com/nithe14/keycloak-custom-ldap-enabled-mapper
- Owner: Nithe14
- License: apache-2.0
- Created: 2024-09-02T12:29:10.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-10-07T09:28:57.000Z (8 months ago)
- Last Synced: 2025-10-21T14:54:07.337Z (7 months ago)
- Topics: keycloak, keycloak-mapper, keycloak-user-federation, keycloak-user-management, ldap
- Language: Java
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Keycloak LDAP Custom Enabled Value Mapper
Very basic custom Keycloak LDAP mapper that allows you to specify a custom value for the LDAP attribute that enables a Keycloak user. The built-in User Attribute LDAP mapper allows you to map an enabled value, but the LDAP attribute value must be either true or false. With this custom mapper, you can specify any value you prefer. Note that the value will be parsed as a string and is case-insensitive.
## Installation
Download a release (*.jar file) that works with your Keycloak version from the list of release. Copy to the `provider/` path and restart your Keycloak.
## Configuration
Create a new mapper for your user federation, select ldap-custom-enabled-value-mapper.
Set the name of your LDAP attribute under `LDAP attribute` and specify the custom LDAP attribute value that will enable the user under `Enabled value`. When the user's LDAP attribute value matches the `Enabled value`, the user will be enabled. If it does not match, the user will remain disabled.
Example:
