Repository: lldap/lldap (language: rust)

Issue:
[BUG] Authelia example has deprecated keys
**Describe the bug**
Configuration keys deprecated in 4.38.0 of Authelia generate noise in logging. Currenly these settings are auto-mapped to new value but expected to break in 5.0.0

Keys to change:
| old name | new name |
| --- | --- |
| authentication_backend.ldap.group_name_attribute | authentication_backend.ldap.attributes.group_name |
| authentication_backend.ldap.username_attribute | authentication_backend.ldap.attributes.username |
| authentication_backend.ldap.url | authentication_backend.ldap.address |
| authentication_backend.ldap.display_name_attribute | authentication_backend.ldap.attributes.display_name |
 

**To Reproduce**
Steps to reproduce the behavior:
1. Use the provided Authelia example when starting Authelia
2. Check logging

**Expected behavior**
A clear and concise description of what you expected to happen.

**Logs**
`msg="Configuration: configuration key '[OLD_KEY_NAME]' is deprecated in 4.38.0 and has been replaced by '[NEW_KEY]': you are not required to make any changes as this has been automatically mapped for you, but to stop this warning being logged you will need to adjust your configuration, and this configuration key and auto-mapping is likely to be removed in 5.0.0"`


Discussion / hints:
Thanks! Could you make a PR to update the example?

Fix patch:
diff --git a/example_configs/authelia_config.yml b/example_configs/authelia_config.yml
index d7fa1c79..3eeeec4b 100644
--- a/example_configs/authelia_config.yml
+++ b/example_configs/authelia_config.yml
@@ -15,7 +15,7 @@ authentication_backend:
     implementation: custom
     # Pattern is ldap://HOSTNAME-OR-IP:PORT
     # Normal ldap port is 389, standard in LLDAP is 3890
-    url: ldap://lldap:3890
+    address: ldap://lldap:3890
     # The dial timeout for LDAP.
     timeout: 5s
     # Use StartTLS with the LDAP connection, TLS not supported right now
@@ -25,7 +25,6 @@ authentication_backend:
     #  minimum_version: TLS1.2
     # Set base dn, like dc=google,dc.com
     base_dn: dc=example,dc=com
-    username_attribute: uid
     # You need to set this to ou=people, because all users are stored in this ou!
     additional_users_dn: ou=people
     # To allow sign in both with username and email, one can use a filter like
@@ -36,11 +35,14 @@ authentication_backend:
     # The groups are not displayed in the UI, but this filter works.
     groups_filter: "(member={dn})"
     # The attribute holding the name of the group.
-    group_name_attribute: cn
-    # Email attribute
-    mail_attribute: mail
-    # The attribute holding the display name of the user. This will be used to greet an authenticated user.
-    display_name_attribute: displayName
+    attributes:
+      display_name: displayName
+      username: uid
+      group_name: cn
+      mail: mail
+      # distinguished_name: distinguishedName
+      # member_of: memberOf
+
     # The username and password of the bind user.
     # "bind_user" should be the username you created for authentication with the "lldap_strict_readonly" permission. It is not recommended to use an actual admin account here.
     # If you are configuring Authelia to change user passwords, then the account used here needs the "lldap_password_manager" permission instead.


Test patch: