Skip to content
Snippets Groups Projects
Verified Commit 268cd49c authored by Heiko Reese's avatar Heiko Reese :dizzy_face:
Browse files

fix: miss HARICA user certs in returned type

parent bddd3caf
No related branches found
No related tags found
No related merge requests found
Pipeline #420959 failed
......@@ -508,7 +508,7 @@ func CertToSearchable(c *x509.Certificate) SearchableCert {
token[strings.ToLower(localpart)] = true
for _, namepart := range strings.Split(localpart, ".") {
_, unwanted := nameFiller[namepart]
if unwanted == false {
if !unwanted {
token[strings.ToLower(namepart)] = true
}
}
......@@ -531,9 +531,11 @@ func CertToSearchable(c *x509.Certificate) SearchableCert {
cert.Type = Extern
case CertificateStats.FilterIsNutzer(c):
cert.Type = Benutzer
case CertificateStats.And(CertificateStats.Or(SectigoPersonalFilter, IsUserHarica), NoCommonNameFilter)(c):
case IsUserHarica(c):
cert.Type = Benutzer
case CertificateStats.And(SectigoPersonalFilter, NoCommonNameFilter)(c):
cert.Type = Gruppe
case CertificateStats.And(CertificateStats.Or(SectigoPersonalFilter, IsUserHarica), CertificateStats.Not(NoCommonNameFilter))(c):
case CertificateStats.And(SectigoPersonalFilter, CertificateStats.Not(NoCommonNameFilter))(c):
cert.Type = Benutzer
default:
cert.Type = Server
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment