示例#1
0
文件: ldap.go 项目: jwmaag/dex
// Open returns an authentication strategy using LDAP.
func (c *Config) Open(logger logrus.FieldLogger) (connector.Connector, error) {
	conn, err := c.OpenConnector(logger)
	if err != nil {
		return nil, err
	}
	return connector.Connector(conn), nil
}
示例#2
0
文件: ldap.go 项目: ericchiang/dex
// Open returns an authentication strategy using LDAP.
func (c *Config) Open() (connector.Connector, error) {
	conn, err := c.OpenConnector()
	if err != nil {
		return nil, err
	}
	return connector.Connector(conn), nil
}