mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
150e54c3ae
This fixes an issue where the Microsoft Active Directory Server Policy Hints control was not being used to prevent avoidance of the PSO / FGPP applicable to the user.
19 lines
603 B
Go
19 lines
603 B
Go
package authentication
|
|
|
|
import (
|
|
"github.com/go-ldap/ldap/v3"
|
|
)
|
|
|
|
// ProductionLDAPClientFactory the production implementation of an ldap connection factory.
|
|
type ProductionLDAPClientFactory struct{}
|
|
|
|
// NewProductionLDAPClientFactory create a concrete ldap connection factory.
|
|
func NewProductionLDAPClientFactory() *ProductionLDAPClientFactory {
|
|
return &ProductionLDAPClientFactory{}
|
|
}
|
|
|
|
// DialURL creates a client from an LDAP URL when successful.
|
|
func (f *ProductionLDAPClientFactory) DialURL(addr string, opts ...ldap.DialOpt) (client LDAPClient, err error) {
|
|
return ldap.DialURL(addr, opts...)
|
|
}
|