(f form.Authentication)
| 79 | } |
| 80 | |
| 81 | func parseLDAPConfig(f form.Authentication) *ldap.Config { |
| 82 | return &ldap.Config{ |
| 83 | Host: f.Host, |
| 84 | Port: f.Port, |
| 85 | SecurityProtocol: ldap.SecurityProtocol(f.SecurityProtocol), |
| 86 | SkipVerify: f.SkipVerify, |
| 87 | BindDN: f.BindDN, |
| 88 | UserDN: f.UserDN, |
| 89 | BindPassword: f.BindPassword, |
| 90 | UserBase: f.UserBase, |
| 91 | AttributeUsername: f.AttributeUsername, |
| 92 | AttributeName: f.AttributeName, |
| 93 | AttributeSurname: f.AttributeSurname, |
| 94 | AttributeMail: f.AttributeMail, |
| 95 | AttributesInBind: f.AttributesInBind, |
| 96 | Filter: f.Filter, |
| 97 | GroupEnabled: f.GroupEnabled, |
| 98 | GroupDN: f.GroupDN, |
| 99 | GroupFilter: f.GroupFilter, |
| 100 | GroupMemberUID: f.GroupMemberUID, |
| 101 | UserUID: f.UserUID, |
| 102 | AdminFilter: f.AdminFilter, |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | func parseSMTPConfig(f form.Authentication) *smtp.Config { |
| 107 | return &smtp.Config{ |
no test coverage detected