outposts/ldap: add sAMAccountName field for compatibility

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-08-09 21:00:02 +02:00
parent d18e829d80
commit 80df444067
1 changed files with 4 additions and 0 deletions

View File

@ -122,6 +122,10 @@ func (pi *ProviderInstance) UserEntry(u api.User) *ldap.Entry {
Name: "cn", Name: "cn",
Values: []string{u.Username}, Values: []string{u.Username},
}, },
{
Name: "sAMAccountName",
Values: []string{u.Username},
},
{ {
Name: "uid", Name: "uid",
Values: []string{u.Uid}, Values: []string{u.Uid},