Exemple #1
0
// 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
}
Exemple #2
0
// 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
}