From 09949e09b153d14bffdd765d48394f046a0848ef Mon Sep 17 00:00:00 2001 From: Serge Bazanski Date: Mon, 20 Jan 2025 02:58:07 +0100 Subject: [PATCH] bad bad not good patch it's 3 am and i am tired --- services/auth/source/ldap/source_search.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/auth/source/ldap/source_search.go b/services/auth/source/ldap/source_search.go index 2a61386ae1..aceefe53ad 100644 --- a/services/auth/source/ldap/source_search.go +++ b/services/auth/source/ldap/source_search.go @@ -362,7 +362,7 @@ func (source *Source) SearchEntry(name, passwd string, directBind bool) *SearchR username := sr.Entries[0].GetAttributeValue(source.AttributeUsername) firstname := sr.Entries[0].GetAttributeValue(source.AttributeName) surname := sr.Entries[0].GetAttributeValue(source.AttributeSurname) - mail := sr.Entries[0].GetAttributeValue(source.AttributeMail) + mail := sr.Entries[0].GetAttributeValue(source.AttributeMail) + "@cebula.camp" if isAttributeSSHPublicKeySet { sshPublicKey = sr.Entries[0].GetAttributeValues(source.AttributeSSHPublicKey) @@ -490,7 +490,7 @@ func (source *Source) SearchEntries() ([]*SearchResult, error) { Username: v.GetAttributeValue(source.AttributeUsername), Name: v.GetAttributeValue(source.AttributeName), Surname: v.GetAttributeValue(source.AttributeSurname), - Mail: v.GetAttributeValue(source.AttributeMail), + Mail: v.GetAttributeValue(source.AttributeMail) + "@cebula.camp", IsAdmin: checkAdmin(l, source, v.DN), Groups: usersLdapGroups, } -- 2.44.2