From 1f821521c6edd6e2eb720fa420740546b714630a Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 9 Aug 2021 21:00:02 +0200 Subject: [PATCH] outposts/ldap: add sAMAccountName field for compatibility Signed-off-by: Jens Langhammer --- internal/outpost/ldap/instance_search.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/outpost/ldap/instance_search.go b/internal/outpost/ldap/instance_search.go index 657ecce67..31c588a79 100644 --- a/internal/outpost/ldap/instance_search.go +++ b/internal/outpost/ldap/instance_search.go @@ -122,6 +122,10 @@ func (pi *ProviderInstance) UserEntry(u api.User) *ldap.Entry { Name: "cn", Values: []string{u.Username}, }, + { + Name: "sAMAccountName", + Values: []string{u.Username}, + }, { Name: "uid", Values: []string{u.Uid},