Documentation ¶
Index ¶
Constants ¶
View Source
const ( BindDN = "cn=test,dc=test" UserBaseDN = "ou=People,dc=test" UserFilter = "(objectClass=posixAccount)" UserFilterStatus = "(&(objectClass=posixAccount)(status=ACTIVE))" UserUIDAttr = "uidNumber" )
Variables ¶
View Source
var LocalhostCert = []byte(`-----BEGIN CERTIFICATE-----
MIIDkTCCAnmgAwIBAgIJAJHZ3TQ2IhkGMA0GCSqGSIb3DQEBCwUAMF8xCzAJBgNV
BAYTAlVTMQ0wCwYDVQQIDARPaGlvMREwDwYDVQQHDAhDb2x1bWJ1czEMMAoGA1UE
CgwDT1NDMQwwCgYDVQQLDANPU0MxEjAQBgNVBAMMCTEyNy4wLjAuMTAeFw0yMTAz
MDIxNzExNTJaFw0zMTAyMjgxNzExNTJaMF8xCzAJBgNVBAYTAlVTMQ0wCwYDVQQI
DARPaGlvMREwDwYDVQQHDAhDb2x1bWJ1czEMMAoGA1UECgwDT1NDMQwwCgYDVQQL
DANPU0MxEjAQBgNVBAMMCTEyNy4wLjAuMTCCASIwDQYJKoZIhvcNAQEBBQADggEP
ADCCAQoCggEBAMUNixh26lbTyMfNj4qz+28eUUeSEMfCsvp+nVqoab5gJ2N33NiR
EBhg6SU0Gw3TFbpEzg0UP9Fd9JJOEP0u1qOYawdisj9OZBS4AKEIo5Fuqko8Kzsi
0htfNabY9YdZPhtA1g0YTP3kpWKZ8HW+pe5xUlKfayFlw6WOiArEKQZGUhPlMl3w
QAB8M5PvraemboZFkDgcSQakbjHZZZbhRDrkzpIAWXzMdxJ35Au+143uv9N3FtQs
cBPoujdSpPVRBDXcA0+Uqxj2PX+Etszhy8Nuiph0NG2+qzV+aOf4/wcDtdcdDKnA
W7Zi6zsrlUoMGfcvSYvbndXDmzytNCH9z1cCAwEAAaNQME4wHQYDVR0OBBYEFDHH
/NPJu9pZqKYNc1zXcBT1b1zRMB8GA1UdIwQYMBaAFDHH/NPJu9pZqKYNc1zXcBT1
b1zRMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAGYVsS+NOUruCV6T
6oK4iVqtBrpNCcnC4noyfOxS4Um+pBcCfusKIxuMjsrMy6GRGAwVvnwNq3n3BsCz
oVxA1242eJBM8clNW2KdHeql5x2ivioh39kVpjQLEiI9B8X0ECw2IujnCa2+XsP4
zJs8So9zqMpHHYv+7cGUSJ/33W/4xdxTJdP49Xh5I6KzCuKoa0JIIBJl9aoK+Kl/
dOfo0E/1rKwr6cniTwEoUU8K/Am5kCUHdi5U8uyizR8zKnAhV7bIR680GSFFgfzK
BVpYVeZfEpeyRqC34OqBBWYNfxw3AqvA1s1WPYduxyl3sRwucB2hVhF00QHvSIvl
UkZmZZc=
-----END CERTIFICATE-----
`)
LocalhostCert is a PEM-encoded TLS cert with SAN DNS names "127.0.0.1" and "[::1]", expiring at the last second of 2049 (the end of ASN.1 time).
Functions ¶
func CreateSubUIDFixture ¶
func GetFixture ¶
func LdapServer ¶
func TestConfig ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.