MCPcopy
hub / github.com/minio/minio-go / NewLDAPIdentity

Function NewLDAPIdentity

pkg/credentials/sts_ldap_identity.go:86–96  ·  view source on GitHub ↗

NewLDAPIdentity returns new credentials object that uses LDAP Identity.

(stsEndpoint, ldapUsername, ldapPassword string, optFuncs ...LDAPIdentityOpt)

Source from the content-addressed store, hash-verified

84// NewLDAPIdentity returns new credentials object that uses LDAP
85// Identity.
86func NewLDAPIdentity(stsEndpoint, ldapUsername, ldapPassword string, optFuncs ...LDAPIdentityOpt) (*Credentials, error) {
87 l := LDAPIdentity{
88 STSEndpoint: stsEndpoint,
89 LDAPUsername: ldapUsername,
90 LDAPPassword: ldapPassword,
91 }
92 for _, optFunc := range optFuncs {
93 optFunc(&l)
94 }
95 return New(&l), nil
96}
97
98// LDAPIdentityOpt is a function type used to configured the LDAPIdentity
99// instance.

Callers

nothing calls this directly

Calls 1

NewFunction · 0.70

Tested by

no test coverage detected