From 1e0cf3c068ee8522af9a4d2753c5bf2607827f3d Mon Sep 17 00:00:00 2001 From: Eric Chiang Date: Fri, 9 Dec 2016 13:22:19 -0800 Subject: [PATCH] connector/ldap: default email_verified to true --- connector/ldap/ldap.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/connector/ldap/ldap.go b/connector/ldap/ldap.go index 50688c35..d39175c3 100644 --- a/connector/ldap/ldap.go +++ b/connector/ldap/ldap.go @@ -278,6 +278,9 @@ func (c *ldapConnector) identityFromEntry(user ldap.Entry) (ident connector.Iden if ident.Email = getAttr(user, c.UserSearch.EmailAttr); ident.Email == "" { missing = append(missing, c.UserSearch.EmailAttr) } + // TODO(ericchiang): Let this value be set from an attribute. + ident.EmailVerified = true + if c.UserSearch.NameAttr != "" { if ident.Username = getAttr(user, c.UserSearch.NameAttr); ident.Username == "" { missing = append(missing, c.UserSearch.NameAttr)