Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LDAPHostFail = "fail.com"
LDAPHostFail - when the LDAP host is set to this, Connect() will fail
View Source
var MockLDAPFields = []string{"uid", "gecos"}
MockLDAPFields is for field mapping tests in ValidateLogin
Functions ¶
func EchoSetup ¶
func EchoSetup(method, path, reader string) (c echo.Context, rec *httptest.ResponseRecorder)
EchoSetup gives an echo Context and resp recorder to work with in test functions
Types ¶
type MockLDAP ¶
type MockLDAP ldap.LDAPClient
MockLDAP lets us test LDAP code without an actual connection to a server
func (MockLDAP) Authenticate ¶
Authenticate mocks the method of the same name from LDAPClient
func (MockLDAP) Close ¶
func (l MockLDAP) Close()
Close mocks the method of the same name from LDAPClient
Click to show internal directories.
Click to hide internal directories.