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

Function NewLDAPIdentityWithSessionPolicy

pkg/credentials/sts_ldap_identity.go:128–135  ·  view source on GitHub ↗

NewLDAPIdentityWithSessionPolicy returns new credentials object that uses LDAP Identity with a specified session policy. The `policy` parameter must be a JSON string specifying the policy document. Deprecated: Use the `LDAPIdentityPolicyOpt` with `NewLDAPIdentity` instead.

(stsEndpoint, ldapUsername, ldapPassword, policy string)

Source from the content-addressed store, hash-verified

126//
127// Deprecated: Use the `LDAPIdentityPolicyOpt` with `NewLDAPIdentity` instead.
128func NewLDAPIdentityWithSessionPolicy(stsEndpoint, ldapUsername, ldapPassword, policy string) (*Credentials, error) {
129 return New(&LDAPIdentity{
130 STSEndpoint: stsEndpoint,
131 LDAPUsername: ldapUsername,
132 LDAPPassword: ldapPassword,
133 Policy: policy,
134 }), nil
135}
136
137// RetrieveWithCredContext gets the credential by calling the MinIO STS API for
138// LDAP on the configured stsEndpoint.

Callers

nothing calls this directly

Calls 1

NewFunction · 0.70

Tested by

no test coverage detected