Commit b5cacff5 authored by ale's avatar ale

Run go fmt

parent acbe64f7
......@@ -134,11 +134,11 @@ func newUser(entry *ldap.Entry) (*as.RawUser, error) {
uidNumber, _ := strconv.Atoi(entry.GetAttributeValue(uidNumberLDAPAttr)) // nolint
user := &as.RawUser{
User: as.User{
Name: entry.GetAttributeValue("uid"),
Lang: entry.GetAttributeValue(preferredLanguageLDAPAttr),
UID: uidNumber,
Status: entry.GetAttributeValue("status"),
Shard: entry.GetAttributeValue("host"),
Name: entry.GetAttributeValue("uid"),
Lang: entry.GetAttributeValue(preferredLanguageLDAPAttr),
UID: uidNumber,
Status: entry.GetAttributeValue("status"),
Shard: entry.GetAttributeValue("host"),
LastPasswordChangeStamp: decodeShadowTimestamp(entry.GetAttributeValue(passwordLastChangeLDAPAttr)),
AccountRecoveryHint: entry.GetAttributeValue(recoveryHintLDAPAttr),
U2FRegistrations: decodeU2FRegistrations(entry.GetAttributeValues(u2fRegistrationsLDAPAttr)),
......@@ -271,10 +271,9 @@ func newMailingListResourceFinder(baseDN string) userResourceFinder {
}
func newNewsletterResourceFinder(baseDN string) userResourceFinder {
return &ldapUserResourceFinder{&mailingListResourceFinder{joinDN("ou=Newsletters", baseDN)}}
return &ldapUserResourceFinder{&mailingListResourceFinder{joinDN("ou=Newsletters", baseDN)}}
}
// Find resources for a user using a generic LDAP query.
type ldapUserResourceFinder struct {
ldapQuery
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment