This page explains how to configure LDAP authentication in Grafana using the Grafana user interface. For more detailed information about configuring LDAP authentication using the configuration file, refer to [LDAP authentication](../ldap/).
Any configuration changes made through the Grafana user interface (UI) will take precedence over settings specified in the Grafana configuration file or through environment variables. If you modify any configuration settings in the UI, they will override any corresponding settings set via environment variables or defined in the configuration file.
1.**Add a group DN mapping**: The name of the key used to extract the ID token.
1.**Add an organization role mapping**: Select the Basic Role mapped to this group.
1.**Add the organization ID membership mapping**: Map the group to an organization ID.
1.**Define Grafana Admin membership**: Enable Grafana Admin privileges to the group.
#### 4. Extra security settings
Additional security settings options for LDAP authentication.
1.**Enable SSL**: This option will enable SSL to connect to the LDAP server.
1.**Start TLS**: Use StartTLS to secure the connection to the LDAP server.
1.**Min TLS version**: Choose the minimum TLS version to use. TLS1.2 or TLS1.3
1.**TLS ciphers**: List the ciphers to use for the connection. For a complete list of ciphers, refer to the [Cipher Go library](https://go.dev/src/crypto/tls/cipher_suites.go).
1.**Encryption key and certificate provision specification**:
This section allows you to specify the key and certificate for the LDAP server. You can provide the key and certificate in two ways: **base-64** encoded or **path to files**.
1.**Base-64 encoded certificate**:
All values used in this section must be base-64 encoded.
1.**Root CA certificate content**: List of root CA certificates.
Path in the file system to the key and certificate files
1.**Root CA certificate path**: Path to the root CA certificate.
1.**Client certificate path**: Path to the client certificate.
1.**Client key path**: Path to the client key.
### 4. Persisting the configuration
Once you have configured the LDAP settings, click **Save** to persist the configuration.
If you want to delete all the changes made through the UI and revert to the configuration file settings, click the three dots menu icon and click **Reset to default values**.