mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-17 02:12:55 +02:00
Revert property mapping
This commit is contained in:
@@ -8,15 +8,6 @@ data:
|
|||||||
metadata:
|
metadata:
|
||||||
name: LDAP Provider
|
name: LDAP Provider
|
||||||
entries:
|
entries:
|
||||||
- model: authentik_providers_ldap.ldapprovidermapping
|
|
||||||
id: ldap-mail-aliases-mapping
|
|
||||||
state: present
|
|
||||||
identifiers:
|
|
||||||
name: "Mail Aliases"
|
|
||||||
attrs:
|
|
||||||
name: "Mail Aliases"
|
|
||||||
expression: |
|
|
||||||
return {"mailAlternativeAddress": list(request.user.attributes.get("mailAliases", []))}
|
|
||||||
- model: authentik_providers_ldap.ldapprovider
|
- model: authentik_providers_ldap.ldapprovider
|
||||||
id: ldap-provider
|
id: ldap-provider
|
||||||
state: present
|
state: present
|
||||||
@@ -30,8 +21,6 @@ data:
|
|||||||
bind_mode: cached
|
bind_mode: cached
|
||||||
search_mode: cached
|
search_mode: cached
|
||||||
mfa_support: false
|
mfa_support: false
|
||||||
extra_property_mappings:
|
|
||||||
- !KeyOf ldap-mail-aliases-mapping
|
|
||||||
- model: authentik_core.application
|
- model: authentik_core.application
|
||||||
id: ldap-app
|
id: ldap-app
|
||||||
state: present
|
state: present
|
||||||
|
|||||||
@@ -165,15 +165,15 @@
|
|||||||
bind.auth.method = "lookup";
|
bind.auth.method = "lookup";
|
||||||
|
|
||||||
filter = {
|
filter = {
|
||||||
name = "(&(objectClass=user)(|(cn=?)(mail=?)(mailAlternativeAddress=?)))";
|
name = "(&(objectClass=user)(|(cn=?)(mail=?)(mailAliases=?)))";
|
||||||
email = "(&(objectClass=user)(|(mail=?)(mailAlternativeAddress=?)))";
|
email = "(&(objectClass=user)(|(mail=?)(mailAliases=?)))";
|
||||||
};
|
};
|
||||||
|
|
||||||
attributes = {
|
attributes = {
|
||||||
name = "cn";
|
name = "cn";
|
||||||
class = "objectClass";
|
class = "objectClass";
|
||||||
email = "mail";
|
email = "mail";
|
||||||
email-alias = "mailAlternativeAddress";
|
email-alias = "mailAliases";
|
||||||
groups = "memberOf";
|
groups = "memberOf";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user