outpost/ldap: add sAMAccountName on groups for compatibility

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-08-15 15:59:24 +02:00
parent 669b5db8e5
commit 54b7ef42f5
1 changed files with 4 additions and 0 deletions

View File

@ -182,6 +182,10 @@ func (pi *ProviderInstance) GroupEntry(g LDAPGroup) *ldap.Entry {
Name: "uid",
Values: []string{g.uid},
},
{
Name: "sAMAccountName",
Values: []string{g.cn},
},
{
Name: "gidNumber",
Values: []string{g.gidNumber},