ldap

package
v0.0.0-...-fe7d464 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AttributeTypeString = "string"
	AttributeTypeUUID   = "uuid"
)

Variables

View Source
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

View Source
var AttributeAssociatedDomain = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "associatedDomain",
})

Associated Domain is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.1

View Source
var AttributeAssociatedName = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "associatedName",
})

Associated Name is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.2

View Source
var AttributeBuildingName = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "buildingName",
})

Building Name is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.3

View Source
var AttributeBusinesCategory = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "businessCategory",
})

Business category is from https://datatracker.ietf.org/doc/html/rfc4519#section-2.1

View Source
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

View Source
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

View Source
var AttributeCo = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "co",
})

Co is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.4

View Source
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

View Source
var AttributeCommonName = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "cn",
})

Common name is from https://datatracker.ietf.org/doc/html/rfc4519#section-2.3

View Source
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

View Source
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

View Source
var AttributeCountryName = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "c",
})

Country name is from https://datatracker.ietf.org/doc/html/rfc4519#section-2.2

View Source
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

View Source
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

View Source
var AttributeDN = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "distinguishedName",
})

DN is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.7

View Source
var AttributeDNQualifier = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "dnQualifier",
})

DN Qualifier is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.8

View Source
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

View Source
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

View Source
var AttributeDescription = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "description",
})

Description is from https://datatracker.ietf.org/doc/html/rfc4519#section-2.5

View Source
var AttributeDestinationIndicator = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "destinationIndicator",
})

DestinationIndicator is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.6

View Source
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

View Source
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

View Source
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

View Source
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

View Source
var AttributeDocumentAuthor = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "documentAuthor",
})

Document Author is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.5

View Source
var AttributeDocumentIdentifier = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "documentIdentifier",
})

Document Identifier is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.6

View Source
var AttributeDocumentLocation = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "documentLocation",
})

Document Location is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.7

View Source
var AttributeDocumentPublisher = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "documentPublisher",
})

Document Publisher is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.8

View Source
var AttributeDocumentTitle = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "documentTitle",
})

Document Title is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.9

View Source
var AttributeDocumentVersion = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "documentVersion",
})

Document Version is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.10

View Source
var AttributeDomainComponent = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "dc",
})

Domain component is from https://datatracker.ietf.org/doc/html/rfc4519#section-2.4

View Source
var AttributeDrink = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "drink",
})

Drink is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.11

View Source
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

View Source
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

View Source
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

View Source
var AttributeFacsimileTelephoneNumber = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "facsimileTelephoneNumber",
})

Facsimile Telephone Number is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.10

View Source
var AttributeGenerationQualifier = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "generationQualifier",
})

Generation Qualifier is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.11

View Source
var AttributeGivenName = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "givenName",
})

Given name is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.12

View Source
var AttributeHomePhone = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "homePhone",
})

Home Phone is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.12

View Source
var AttributeHomePostalAddress = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "homePostalAddress",
})

Home Postal Address is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.13

View Source
var AttributeHost = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "host",
})

Host is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.14

View Source
var AttributeHouseIdentifier = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "houseIdentifier",
})

House identifier is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.13

View Source
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

View Source
var AttributeInfo = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "info",
})

Info is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.15

View Source
var AttributeInitials = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "initials",
})

Initials is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.14

View Source
var AttributeInternationalISDNNumber = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "internationalISDNNumber",
})

International ISDN Number is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.15

View Source
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

View Source
var AttributeLocalityName = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "l",
})

Locality name is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.16

View Source
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

View Source
var AttributeMail = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "mail",
})

Mail is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.16

View Source
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

View Source
var AttributeManager = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "manager",
})

Manager is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.17

View Source
var AttributeMember = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "member",
})

Member is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.17

View Source
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

View Source
var AttributeMobile = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "mobile",
})

Mobile is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.18

View Source
var AttributeName = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "name",
})

Name is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.18

View Source
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

View Source
var AttributeOrganizationName = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "o",
})

Organization name is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.19

View Source
var AttributeOrganizationUnitName = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "ou",
})

Organization Unit Name is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.20

View Source
var AttributeOrganizationalStatus = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "organizationalStatus",
})

Organizational Status is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.19

View Source
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

View Source
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

View Source
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

View Source
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

View Source
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

View Source
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

View Source
var AttributeOwner = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "owner",
})

Owner is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.21

View Source
var AttributePager = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "pager",
})

Pager is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.20

View Source
var AttributePersonalTitle = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "personalTitle",
})

Personal Title is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.21

View Source
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

View Source
var AttributePostOfficeBox = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "postOfficeBox",
})

Post Office Box is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.25

View Source
var AttributePostalAddress = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "postalAddress",
})

Psotal address is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.23

View Source
var AttributePostalCode = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "postalCode",
})

Postal code is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.24

View Source
var AttributePreferredDeliveryMethod = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "preferredDeliveryMethod",
})

Preferred Delivery Method is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.26

View Source
var AttributeRegisteredAddress = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "registeredAddress",
})

Registered Address is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.27

View Source
var AttributeRoleOccupant = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "roleOccupant",
})

Role Occupant is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.28

View Source
var AttributeRoomNumber = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "roomNumber",
})

Room Number is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.22

View Source
var AttributeSecretary = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "secretary",
})

Secretary is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.23

View Source
var AttributeSerialNumber = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "serialNumber",
})

Serial Number is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.31

View Source
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

View Source
var AttributeStreetAddress = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "street",
})

Street address is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.34

View Source
var AttributeSurname = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "sn",
})

Surname is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.32

View Source
var AttributeTelephoneNumber = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "telephoneNumber",
})

Telephone number is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.35

View Source
var AttributeTeletexTerminalIdentifier = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "teletexTerminalIdentifier",
})

Teletex terminal identifier is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.36

View Source
var AttributeTelexNumber = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "telexNumber",
})

Telex number is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.37

View Source
var AttributeTitle = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "title",
})

Title is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.38

View Source
var AttributeUID = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "uid",
})

User ID is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.39

View Source
var AttributeUIDNumber = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "uidNumber",
})

uid number is from https://learn.microsoft.com/en-us/windows/win32/adschema/a-uidnumber

View Source
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

View Source
var AttributeUniqueIdentifier = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "uniqueIdentifier",
})

Unique Identifier is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.24

View Source
var AttributeUniqueMember = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "uniqueMember",
})

Unique Member is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.40

View Source
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

View Source
var AttributeUserClass = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "userClass",
})

User Class is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.25

View Source
var AttributeUserPassword = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "userPassword",
})

User Password is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.41

View Source
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

View Source
var AttributeX121Address = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "x121Address",
})

X121 Address is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.42

View Source
var AttributeX500UniqueIdentifier = DefaultAttributeRegistry.registerKnownAttribute(Attribute{
	Type: AttributeTypeString,
	Name: "x500UniqueIdentifier",
})

x500 unique identifier is from https://datatracker.ietf.org/doc/html/rfc4524#section-2.43

View Source
var DefaultAttributeRegistry = &AttributeRegistry{}
View Source
var DependencySet = wire.NewSet(
	wire.Struct(new(ClientFactory), "*"),
)

Functions

func EncodeAttributeName

func EncodeAttributeName(name string) string

func EncodeAttributeValue

func EncodeAttributeValue(value string) string

Types

type Attribute

type Attribute struct {
	Type AttributeType
	Name string
}

type AttributeDecoder

type AttributeDecoder interface {
	DecodeToStringRepresentable(bytes []byte) (string, error)
}

type AttributeNameAndValue

type AttributeNameAndValue struct {
	Name  string
	Value string
}

func (AttributeNameAndValue) String

func (a AttributeNameAndValue) String() string

type AttributeRegistry

type AttributeRegistry struct {
	// contains filtered or unexported fields
}

func (*AttributeRegistry) Get

func (r *AttributeRegistry) Get(attributeName string) (Attribute, bool)

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 (*Client) AuthenticateUser

func (c *Client) AuthenticateUser(username string, password string) (*Entry, error)

func (*Client) TestConnection

func (c *Client) TestConnection(username string) error

type ClientFactory

type ClientFactory struct {
	Config       *config.LDAPConfig
	SecretConfig *config.LDAPServerUserCredentials
}

func (*ClientFactory) MakeClient

func (f *ClientFactory) MakeClient(serverConfig *config.LDAPServerConfig) *Client

type Entry

type Entry struct {
	*ldap.Entry
}

func (*Entry) ToJSON

func (e *Entry) ToJSON() map[string]interface{}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL