Documentation
¶
Index ¶
- Constants
- Variables
- func EncodeAttributeName(name string) string
- func EncodeAttributeValue(value string) string
- type Attribute
- type AttributeDecoder
- type AttributeNameAndValue
- type AttributeRegistry
- type AttributeType
- type Client
- type ClientFactory
- type Entry
- type StringAttributeDecoder
- type UUIDAttributeDecoder
Constants ¶
const ( AttributeTypeString = "string" AttributeTypeUUID = "uuid" )
Variables ¶
var AttributeAccountExpires = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "accountExpires", })
AccountExpires is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/acdfe32c-ce53-4073-b9b4-40d1130038dc
var AttributeAssociatedDomain = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "associatedDomain", })
Associated Domain is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.1
var AttributeAssociatedName = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "associatedName", })
Associated Name is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.2
var AttributeBuildingName = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "buildingName", })
Building Name is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.3
var AttributeBusinesCategory = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "businessCategory", })
Business category is from https://datatracker.ietf.org/doc/html/rfc4519#section-2.1
var AttributeCanonicalName = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "canonicalName", })
CanonicalName is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/f613bea0-118a-4807-a4ca-c42c423e2002
var AttributeCarLicense = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "carLicense", })
CarLicense is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/6d5cad6a-5310-438c-9155-8d6973ccb366
var AttributeCo = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "co", })
Co is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.4
var AttributeComment = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "comment", })
Comment is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/37fa0713-39bf-41ff-98ab-2154a0282c84
var AttributeCommonName = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "cn", })
Common name is from https://datatracker.ietf.org/doc/html/rfc4519#section-2.3
var AttributeCompany = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "company", })
Company is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/4d3da9d9-8224-4701-ae24-2ed7423b3777
var AttributeCountryCode = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "countryCode", })
CountryCode is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/76cb42fe-2ac6-4a62-9960-eeae986d96a6
var AttributeCountryName = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "c", })
Country name is from https://datatracker.ietf.org/doc/html/rfc4519#section-2.2
var AttributeCreateTimeStamp = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "createTimeStamp", })
CreateTimeStamp is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/0449fad6-968e-4bbb-bb94-e37c93b88cf9
var AttributeDMDLocation = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "dMDLocation", })
DMDLocation is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/1cccbbb3-dde1-44a5-9c81-66336efed81c
var AttributeDN = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "distinguishedName", })
DN is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.7
var AttributeDNQualifier = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "dnQualifier", })
DN Qualifier is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.8
var AttributeDepartment = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "department", })
Department is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/8d5d010b-033c-47dc-a413-284e1644c90d
var AttributeDepartmentNumber = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "departmentNumber", })
DepartmentNumber is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/b7822883-221f-4c6b-890f-e41f0034cf12
var AttributeDescription = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "description", })
Description is from https://datatracker.ietf.org/doc/html/rfc4519#section-2.5
var AttributeDestinationIndicator = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "destinationIndicator", })
DestinationIndicator is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.6
var AttributeDisplayName = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "displayName", })
DisplayName is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/18d4b197-e223-4119-a55d-396c2fd835d6
var AttributeDisplayNamePrintable = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "displayNamePrintable", })
DisplayNamePrintable is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/393efbf0-c841-4a71-9fdb-1a80d1c565c9
var AttributeDistinguishedName = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "distinguishedName", })
DistinguishedName is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/d66f4eca-f8bb-4cc5-86dc-040aa0ca14ef
var AttributeDmdName = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "dmdName", })
DmdName is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/fa4959ab-7969-4920-9cc9-6cdc6aba6219
var AttributeDocumentAuthor = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "documentAuthor", })
Document Author is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.5
var AttributeDocumentIdentifier = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "documentIdentifier", })
Document Identifier is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.6
var AttributeDocumentLocation = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "documentLocation", })
Document Location is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.7
var AttributeDocumentPublisher = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "documentPublisher", })
Document Publisher is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.8
var AttributeDocumentTitle = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "documentTitle", })
Document Title is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.9
var AttributeDocumentVersion = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "documentVersion", })
Document Version is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.10
var AttributeDomainComponent = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "dc", })
Domain component is from https://datatracker.ietf.org/doc/html/rfc4519#section-2.4
var AttributeDrink = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "drink", })
Drink is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.11
var AttributeEmployeeID = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "employeeID", })
EmployeeID is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/aca05145-3f3a-48c2-936e-cb64a97d9ae0
var AttributeEmployeeNumber = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "employeeNumber", })
EmployeeNumber is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/0afba1a7-ff6b-4878-97d0-f099de319dfb
var AttributeEmployeeType = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "employeeType", })
EmployeeType is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/ad00635d-41bf-4551-b0be-def20125669c
var AttributeFacsimileTelephoneNumber = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "facsimileTelephoneNumber", })
Facsimile Telephone Number is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.10
var AttributeGenerationQualifier = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "generationQualifier", })
Generation Qualifier is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.11
var AttributeGivenName = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "givenName", })
Given name is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.12
var AttributeHomePhone = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "homePhone", })
Home Phone is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.12
var AttributeHomePostalAddress = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "homePostalAddress", })
Home Postal Address is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.13
var AttributeHost = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "host", })
Host is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.14
var AttributeHouseIdentifier = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "houseIdentifier", })
House identifier is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.13
var AttributeIconPath = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "iconPath", })
IconPath is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/3595b632-6b75-48f8-b13b-f610c8bd6f15
var AttributeInfo = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "info", })
Info is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.15
var AttributeInitials = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "initials", })
Initials is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.14
var AttributeInternationalISDNNumber = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "internationalISDNNumber", })
International ISDN Number is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.15
var AttributeIsDeleted = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "isDeleted", })
IsDeleted is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/8dc0ccda-5cf1-4686-8813-fc48ae2de17f
var AttributeLocalityName = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "l", })
Locality name is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.16
var AttributeLocation = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "location", })
Location is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/f9e6a136-9746-4bc0-ab8c-1d237f668046
var AttributeMail = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "mail", })
Mail is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.16
var AttributeMailAddress = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "mailAddress", })
MailAddress is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/691e1b43-6e61-4331-9e80-d779ebdcb589
var AttributeManager = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "manager", })
Manager is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.17
var AttributeMember = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "member", })
Member is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.17
var AttributeMiddleName = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "middleName", })
MiddleName is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/17876454-d2fa-43b5-8df4-df94721fb37f
var AttributeMobile = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "mobile", })
Mobile is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.18
var AttributeName = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "name", })
Name is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.18
var AttributeObjectGUID = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeUUID, Name: "objectGUID", })
ObjectGUID is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/f5f15ec2-427e-4ebe-bb64-2493cf1d032f
var AttributeOrganizationName = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "o", })
Organization name is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.19
var AttributeOrganizationUnitName = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "ou", })
Organization Unit Name is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.20
var AttributeOrganizationalStatus = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "organizationalStatus", })
Organizational Status is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.19
var AttributeOtherFacsimileTelephoneNumber = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "otherFacsimileTelephoneNumber", })
OtherFacsimileTelephoneNumber is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/f0653a90-9b8d-4e3d-ac31-23fbc853ea95
var AttributeOtherHomePhone = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "otherHomePhone", })
OtherHomePhone is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/967f8d3a-03f9-4682-8dc0-9961b40b7039
var AttributeOtherIpPhone = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "otherIpPhone", })
OtherIpPhone is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/bc5c8347-2d50-4b8e-a876-667abf60ec27
var AttributeOtherMobile = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "otherMobile", })
OtherMobile is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/fd93fc9d-ec3f-4dce-a490-dfdc78013ade
var AttributeOtherPager = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "otherPager", })
OtherPager is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/add2c35a-f829-4936-a0f7-60b0aff688fd
var AttributeOtherTelephone = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "otherTelephone", })
OtherTelephone is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/4cace7cb-8584-49e3-b7a9-1df5cf8470f3
var AttributeOwner = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "owner", })
Owner is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.21
var AttributePager = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "pager", })
Pager is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.20
var AttributePersonalTitle = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "personalTitle", })
Personal Title is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.21
var AttributePhysicalDeliveryOfficeName = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "physicalDeliveryOfficeName", })
Physical Delivery Office Name is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.22
var AttributePostOfficeBox = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "postOfficeBox", })
Post Office Box is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.25
var AttributePostalAddress = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "postalAddress", })
Psotal address is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.23
var AttributePostalCode = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "postalCode", })
Postal code is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.24
var AttributePreferredDeliveryMethod = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "preferredDeliveryMethod", })
Preferred Delivery Method is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.26
var AttributeRegisteredAddress = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "registeredAddress", })
Registered Address is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.27
var AttributeRoleOccupant = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "roleOccupant", })
Role Occupant is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.28
var AttributeRoomNumber = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "roomNumber", })
Room Number is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.22
var AttributeSecretary = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "secretary", })
Secretary is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.23
var AttributeSerialNumber = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "serialNumber", })
Serial Number is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.31
var AttributeStateORProvinceName = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "st", })
State or Province name is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.33
var AttributeStreetAddress = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "street", })
Street address is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.34
var AttributeSurname = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "sn", })
Surname is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.32
var AttributeTelephoneNumber = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "telephoneNumber", })
Telephone number is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.35
var AttributeTeletexTerminalIdentifier = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "teletexTerminalIdentifier", })
Teletex terminal identifier is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.36
var AttributeTelexNumber = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "telexNumber", })
Telex number is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.37
var AttributeTitle = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "title", })
Title is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.38
var AttributeUID = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "uid", })
User ID is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.39
var AttributeUIDNumber = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "uidNumber", })
uid number is from https://learn.microsoft.com/en-us/windows/win32/adschema/a-uidnumber
var AttributeUPNSuffixes = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "uPNSuffixes", })
UPNSuffixes is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/1f92e6cc-2cb0-45f0-8fbe-83df09cbd8c3
var AttributeUniqueIdentifier = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "uniqueIdentifier", })
Unique Identifier is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.24
var AttributeUniqueMember = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "uniqueMember", })
Unique Member is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.40
var AttributeUrl = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "url", })
Url is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/82a50d8a-e2b2-4291-a6b6-dcbb9586364d
var AttributeUserClass = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "userClass", })
User Class is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.25
var AttributeUserPassword = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "userPassword", })
User Password is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.41
var AttributeUserPrincipalName = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "userPrincipalName", })
UserPrincipalName is from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adls/63f5e067-d1b3-4e6e-9e53-a92953b6005b
var AttributeX121Address = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "x121Address", })
X121 Address is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.42
var AttributeX500UniqueIdentifier = DefaultAttributeRegistry.registerKnownAttribute(Attribute{ Type: AttributeTypeString, Name: "x500UniqueIdentifier", })
x500 unique identifier is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.43
var DefaultAttributeRegistry = &AttributeRegistry{}
var DependencySet = wire.NewSet( wire.Struct(new(ClientFactory), "*"), )
Functions ¶
func EncodeAttributeName ¶
func EncodeAttributeValue ¶
Types ¶
type Attribute ¶
type Attribute struct { Type AttributeType Name string }
type AttributeDecoder ¶
type AttributeNameAndValue ¶
func (AttributeNameAndValue) String ¶
func (a AttributeNameAndValue) String() string
type AttributeRegistry ¶
type AttributeRegistry struct {
// contains filtered or unexported fields
}
type AttributeType ¶
type AttributeType string
func (AttributeType) Decoder ¶
func (t AttributeType) Decoder() AttributeDecoder
type Client ¶
type Client struct { Config *config.LDAPServerConfig SecretConfig *config.LDAPServerUserCredentialsItem }
func NewClient ¶
func NewClient(config *config.LDAPServerConfig, secret *config.LDAPServerUserCredentialsItem) *Client
func (*Client) AuthenticateUser ¶
func (*Client) TestConnection ¶
type ClientFactory ¶
type ClientFactory struct { Config *config.LDAPConfig SecretConfig *config.LDAPServerUserCredentials }
func (*ClientFactory) MakeClient ¶
func (f *ClientFactory) MakeClient(serverConfig *config.LDAPServerConfig) *Client
type StringAttributeDecoder ¶
type StringAttributeDecoder struct{}
func (StringAttributeDecoder) DecodeToStringRepresentable ¶
func (StringAttributeDecoder) DecodeToStringRepresentable(bytes []byte) (string, error)
type UUIDAttributeDecoder ¶
type UUIDAttributeDecoder struct{}
func (UUIDAttributeDecoder) DecodeToStringRepresentable ¶
func (UUIDAttributeDecoder) DecodeToStringRepresentable(bytes []byte) (string, error)