diff --git a/internal/outpost/ldap/utils.go b/internal/outpost/ldap/utils.go index a2167a5eec..d6086f4156 100644 --- a/internal/outpost/ldap/utils.go +++ b/internal/outpost/ldap/utils.go @@ -39,6 +39,9 @@ func ldapResolveTypeSingle(in interface{}) *string { func AKAttrsToLDAP(attrs interface{}) []*ldap.EntryAttribute { attrList := []*ldap.EntryAttribute{} + if attrs == nil { + return attrList + } a := attrs.(*map[string]interface{}) for attrKey, attrValue := range *a { entry := &ldap.EntryAttribute{Name: attrKey}