func NewLDAPIdentity(stsEndpoint, ldapUsername, ldapPassword string) (*Credentials, error) {
	return New(&LDAPIdentity{
		stsEndpoint:  stsEndpoint,
		ldapUsername: ldapUsername,
		ldapPassword: ldapPassword,
	}), nil
}
NewLDAPIdentity returns new credentials object that uses LDAP
Identity.
package credentials
import (
	"encoding/xml"
	"errors"
	"net/http"
	"net/url"
	"time"
)
type AssumeRoleWithLDAPResponse struct {
	XMLName          xml.Name           `xml:"https://sts.amazonaws.com/doc/2011-06-15/ AssumeRoleWithLDAPIdentityResponse" json:"-"`
	Result           LDAPIdentityResult `xml:"AssumeRoleWithLDAPIdentityResult"`
	ResponseMetadata struct {
		RequestID string `xml:"RequestId,omitempty"`
	} `xml:"ResponseMetadata,omitempty"`
}
type LDAPIdentityResult struct {
	Credentials struct {
		AccessKey    string    `xml:"AccessKeyId" json:"accessKey,omitempty"`
		SecretKey    string    `xml:"SecretAccessKey" json:"secretKey,omitempty"`
		Expiration   time.Time `xml:"Expiration" json:"expiration,omitempty"`
		SessionToken string    `xml:"SessionToken" json:"sessionToken,omitempty"`
	} `xml:",omitempty"`
	SubjectFromToken string `xml:",omitempty"`
}
type LDAPIdentity struct {
	Expiry
	stsEndpoint string
	ldapUsername, ldapPassword string
}