api

package
v0.0.0-...-153c760 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	E_INVALID_NAMESPACE = 0x8004100E
	E_ACCESS_DENIED     = 0x80041003

	S_ADS_ERRORSOCCURRED          = 0x00005011
	S_ADS_NOMORE_ROWS             = 0x00005012
	S_ADS_NOMORE_COLUMNS          = 0x00005013
	E_ADS_BAD_PATHNAME            = 0x80005000
	E_ADS_INVALID_DOMAIN_OBJECT   = 0x80005001
	E_ADS_INVALID_USER_OBJECT     = 0x80005002
	E_ADS_INVALID_COMPUTER_OBJECT = 0x80005003
	E_ADS_UNKNOWN_OBJECT          = 0x80005004
	E_ADS_PROPERTY_NOT_SET        = 0x80005005
	E_ADS_PROPERTY_NOT_SUPPORTED  = 0x80005006
	E_ADS_PROPERTY_INVALID        = 0x80005007
	E_ADS_BAD_PARAMETER           = 0x80005008
	E_ADS_OBJECT_UNBOUND          = 0x80005009
	E_ADS_PROPERTY_NOT_MODIFIED   = 0x8000500A
	E_ADS_PROPERTY_MODIFIED       = 0x8000500B
	E_ADS_CANT_CONVERT_DATATYPE   = 0x8000500C
	E_ADS_PROPERTY_NOT_FOUND      = 0x8000500D
	E_ADS_OBJECT_EXISTS           = 0x8000500E
	E_ADS_SCHEMA_VIOLATION        = 0x8000500F
	E_ADS_COLUMN_NOT_SET          = 0x80005010
	E_ADS_INVALID_FILTER          = 0x80005014
)
View Source
const (
	ADS_SECURE_AUTHENTICATION = 0x1
	ADS_USE_ENCRYPTION        = 0x2
	ADS_USE_SSL               = 0x2
	ADS_READONLY_SERVER       = 0x4
	ADS_PROMPT_CREDENTIALS    = 0x8
	ADS_NO_AUTHENTICATION     = 0x10
	ADS_FAST_BIND             = 0x20
	ADS_USE_SIGNING           = 0x40
	ADS_USE_SEALING           = 0x80
	ADS_USE_DELEGATION        = 0x100
	ADS_SERVER_BIND           = 0x200
	ADS_NO_REFERRAL_CHASING   = 0x400
	ADS_AUTH_RESERVED         = 0x80000000
)

Variables

View Source
var (
	ErrInvalidNamespace = errors.New("The provided name or namespace is invalid.")
	ErrAccessDenied     = errors.New("Access denied.")

	ErrQueryFailed           = errors.New("During a query, one or more errors occurred.")
	ErrNoMoreRows            = errors.New("The search operation has reached the last row.")
	ErrNoMoreColumns         = errors.New("The search operation has reached the last column for the current row.")
	ErrBadPathname           = errors.New("An invalid ADSI pathname was passed.")
	ErrInvalidDomainObject   = errors.New("An unknown ADSI domain object was requested.")
	ErrInvalidUserObject     = errors.New("An unknown ADSI user object was requested.")
	ErrInvalidComputerObject = errors.New("An unknown ADSI computer object was requested.")
	ErrUnknownObject         = errors.New("An unknown ADSI object was requested.")
	ErrPropertyNotSet        = errors.New("The specified ADSI property was not set.")
	ErrPropertyNotSupported  = errors.New("The specified ADSI property is not supported.")
	ErrPropertyInvalid       = errors.New("The specified ADSI property is invalid.")
	ErrBadParameter          = errors.New("One or more input parameters are invalid.")
	ErrObjectUnbound         = errors.New("The specified ADSI object is not bound to a remote resource.")
	ErrPropertyNotModified   = errors.New("The specified ADSI object has not been modified.")
	ErrPropertyModified      = errors.New("The specified ADSI object has been modified.")
	ErrCantConvertDatatype   = errors.New("The data type cannot be converted to/from a native DS data type.")
	ErrPropertyNotFound      = errors.New("The property cannot be found in the cache.")
	ErrObjectExists          = errors.New("The ADSI object exists.")
	ErrSchemaViolation       = errors.New("The attempted action violates the directory service schema rules.")
	ErrColumnNotSet          = errors.New("The specified column in the ADSI was not set.")
	ErrInvalidFilter         = errors.New("The specified search filter is invalid.")
)

Functions

This section is empty.

Types

type IADs

type IADs struct {
	ole.IDispatch
}

IADs represents the component object model interface for active directory objects.

func (*IADs) AdsPath

func (v *IADs) AdsPath() (path string, err error)

AdsPath retrieves the fully qualified path of the object.

func (*IADs) Class

func (v *IADs) Class() (class string, err error)

Class retrieves the class of the object.

func (*IADs) GUID

func (v *IADs) GUID() (guid uuid.UUID, err error)

GUID retrieves the GUID of the object as a string.

func (*IADs) Get

func (v *IADs) Get(name string) (prop *ole.VARIANT, err error)

Get retrieves a property with the given name. If the property holds a single item, a VARIANT for that item is returned. If the property holds multiple items, a VARIANT array is returned containing the items, with each value being a VARIANT itself.

func (*IADs) GetEx

func (v *IADs) GetEx(name string) (prop *ole.VARIANT, err error)

GetEx retrieves a property with the given name. The property is returned as a VARIANT array type, with each value being a VARIANT itself. Unlike the Get function, if the property holds a single item, it is returned as a VARIANT array with one member.

func (*IADs) Name

func (v *IADs) Name() (name string, err error)

Name retrieves the name of the object.

func (*IADs) Parent

func (v *IADs) Parent() (path string, err error)

Parent retrieves the fully qualified path of the object's parent.

func (*IADs) Schema

func (v *IADs) Schema() (path string, err error)

Schema retrieves the fully qualified path of the object's schema class object.

func (*IADs) VTable

func (v *IADs) VTable() *IADsVtbl

VTable returns the component object model virtual function table for the object.

type IADsClass

type IADsClass struct {
	IADs
}

IADsClass represents the component object model interface for active directory classes.

func (*IADsClass) VTable

func (v *IADsClass) VTable() *IADsClassVtbl

VTable returns the component object model virtual function table for the class.

type IADsClassVtbl

type IADsClassVtbl struct {
	IADsVtbl
	PrimaryInterface       uintptr
	CLSID                  uintptr
	SetCLSID               uintptr
	OID                    uintptr
	SetOID                 uintptr
	Abstract               uintptr
	SetAbstract            uintptr
	Auxilary               uintptr
	SetAuxilary            uintptr
	MandatoryProperties    uintptr
	SetMandatoryProperties uintptr
	OptionalProperties     uintptr
	SetOptionalProperties  uintptr
	NamingProperties       uintptr
	SetNamingProperties    uintptr
	DerivedFrom            uintptr
	SetDerivedFrom         uintptr
	AuxDerivedFrom         uintptr
	SetAuxDerivedFrom      uintptr
	PossibleSuperiors      uintptr
	SetPossibleSuperiors   uintptr
	Containment            uintptr
	SetContainment         uintptr
	Container              uintptr
	SetContainer           uintptr
	HelpFileName           uintptr
	SetHelpFileName        uintptr
	HelpFileContext        uintptr
	SetHelpFileContext     uintptr
	Qualifiers             uintptr
}

IADsClassVtbl represents the component object model virtual function table for the IADsClass interface.

type IADsCollection

type IADsCollection struct {
	ole.IDispatch
}

IADsCollection represents the component object model interface for active directory collections.

func (*IADsCollection) VTable

func (v *IADsCollection) VTable() *IADsCollectionVtbl

VTable returns the component object model virtual function table for the collection.

type IADsCollectionVtbl

type IADsCollectionVtbl struct {
	ole.IDispatchVtbl
	NewEnum uintptr
	Add     uintptr
	Remove  uintptr
	Object  uintptr
}

IADsCollectionVtbl represents the component object model virtual function table for the IADsCollection interface.

type IADsComputer

type IADsComputer struct {
	IADs
}

IADsComputer represents the component object model interface for active directory computers.

func (*IADsComputer) ComputerID

func (v *IADsComputer) ComputerID() (id string, err error)

ComputerID retrieves the globally unique identifier of the computer.

func (*IADsComputer) OperatingSystem

func (v *IADsComputer) OperatingSystem() (os string, err error)

OperatingSystem retrieves the operating system of the computer.

func (*IADsComputer) Site

func (v *IADsComputer) Site() (site string, err error)

Site retrieves the site of the computer.

func (*IADsComputer) VTable

func (v *IADsComputer) VTable() *IADsComputerVtbl

VTable returns the component object model virtual function table for the computer.

type IADsComputerOperations

type IADsComputerOperations struct {
	IADs
}

IADsComputerOperations represents the component object model interface for active directory computer operations.

func (*IADsComputerOperations) VTable

VTable returns the component object model virtual function table for the computer operations.

type IADsComputerOperationsVtbl

type IADsComputerOperationsVtbl struct {
	IADsVtbl
	Status   uintptr
	Shutdown uintptr
}

IADsComputerOperationsVtbl represents the component object model virtual function table for the IADsComputerOperations interface.

type IADsComputerVtbl

type IADsComputerVtbl struct {
	IADsVtbl
	ComputerID                uintptr
	Site                      uintptr
	Description               uintptr
	SetDescription            uintptr
	Location                  uintptr
	SetLocation               uintptr
	PrimaryUser               uintptr
	SetPrimaryUser            uintptr
	Owner                     uintptr
	SetOwner                  uintptr
	Division                  uintptr
	SetDivision               uintptr
	Department                uintptr
	SetDepartment             uintptr
	Role                      uintptr
	SetRole                   uintptr
	OperatingSystem           uintptr
	SetOperatingSystem        uintptr
	OperatingSystemVersion    uintptr
	SetOperatingSystemVersion uintptr
	Model                     uintptr
	SetModel                  uintptr
	Processor                 uintptr
	SetProcessor              uintptr
	ProcessorCount            uintptr
	SetProcessorCount         uintptr
	MemorySize                uintptr
	SetMemorySize             uintptr
	StorageCapacity           uintptr
	SetStorageCapacity        uintptr
	NetAddresses              uintptr
	SetNetAddresses           uintptr
}

IADsComputerVtbl represents the component object model virtual function table for the IADsComputer interface.

type IADsContainer

type IADsContainer struct {
	ole.IDispatch
}

IADsContainer represents the component object model interface for active directory containers.

func NewIADsContainer

func NewIADsContainer(server string, clsid uuid.UUID) (*IADsContainer, error)

NewIADsContainer returns a new instance of the IADsContainer component object model interface.

func (*IADsContainer) Filter

func (v *IADsContainer) Filter() (variant *ole.VARIANT, err error)

Filter retrieves the filter for the container.

func (*IADsContainer) NewEnum

func (v *IADsContainer) NewEnum() (enum *ole.IUnknown, err error)

NewEnum retrieves an enumerator interface that provides access to the objects within the container.

See https://msdn.microsoft.com/library/aa705990

func (*IADsContainer) SetFilter

func (v *IADsContainer) SetFilter(variant *ole.VARIANT) (err error)

SetFilter sets the filter for the container.

func (*IADsContainer) VTable

func (v *IADsContainer) VTable() *IADsContainerVtbl

VTable returns the component object model virtual function table for the container.

type IADsContainerVtbl

type IADsContainerVtbl struct {
	ole.IDispatchVtbl
	Count     uintptr
	NewEnum   uintptr
	Filter    uintptr
	SetFilter uintptr
	Hints     uintptr
	SetHints  uintptr
	GetObject uintptr
	Create    uintptr
	Delete    uintptr
	CopyHere  uintptr
	MoveHere  uintptr
}

IADsContainerVtbl represents the component object model virtual function table for the IADsContainer interface.

type IADsDomain

type IADsDomain struct {
	IADs
}

IADsDomain represents the component object model interface for active directory domains.

func (*IADsDomain) VTable

func (v *IADsDomain) VTable() *IADsDomainVtbl

VTable returns the component object model virtual function table for the domain.

type IADsDomainVtbl

type IADsDomainVtbl struct {
	IADsVtbl
	IsWorkgroup                   uintptr
	MinPasswordLength             uintptr
	SetMinPasswordLength          uintptr
	MinPasswordAge                uintptr
	SetMinPasswordAge             uintptr
	MaxPasswordAge                uintptr
	SetMaxPasswordAge             uintptr
	MaxBadPasswordsAllowed        uintptr
	SetMaxBadPasswordsAllowed     uintptr
	PasswordHistoryLength         uintptr
	SetPasswordHistoryLength      uintptr
	PasswordAttributes            uintptr
	SetPasswordAttributes         uintptr
	AutoUnlockInterval            uintptr
	SetAutoUnlockInterval         uintptr
	LockoutObservationInterval    uintptr
	SetLockoutObservationInterval uintptr
}

IADsDomainVtbl represents the component object model virtual function table for the IADsDomain interface.

type IADsFileService

type IADsFileService struct {
	IADsService
}

IADsFileService represents the component object model interface for active directory file services.

func (*IADsFileService) VTable

func (v *IADsFileService) VTable() *IADsFileServiceVtbl

VTable returns the component object model virtual function table for the file service.

type IADsFileServiceOperations

type IADsFileServiceOperations struct {
	IADsServiceOperations
}

IADsFileServiceOperations represents the component object model interface for active directory file service operations.

func (*IADsFileServiceOperations) VTable

VTable returns the component object model virtual function table for the file service operations.

type IADsFileServiceOperationsVtbl

type IADsFileServiceOperationsVtbl struct {
	IADsServiceOperationsVtbl
	Sessions  uintptr
	Resources uintptr
}

IADsFileServiceOperationsVtbl represents the component object model virtual function table for the IADsFileServiceOperations interface.

type IADsFileServiceVtbl

type IADsFileServiceVtbl struct {
	IADsServiceVtbl
	Description     uintptr
	SetDescription  uintptr
	MaxUserCount    uintptr
	SetMaxUserCount uintptr
}

IADsFileServiceVtbl represents the component object model virtual function table for the IADsFileService interface.

type IADsFileShare

type IADsFileShare struct {
	IADs
}

IADsFileShare represents the component object model interface for active directory file shares.

func (*IADsFileShare) VTable

func (v *IADsFileShare) VTable() *IADsFileShareVtbl

VTable returns the component object model virtual function table for the file share.

type IADsFileShareVtbl

type IADsFileShareVtbl struct {
	IADsVtbl
	CurrentUserCount uintptr
	Description      uintptr
	SetDescription   uintptr
	HostComputer     uintptr
	SetHostComputer  uintptr
	Path             uintptr
	SetPath          uintptr
	MaxUserCount     uintptr
	SetMaxUserCount  uintptr
}

IADsFileShareVtbl represents the component object model virtual function table for the IADsFileShare interface.

type IADsGroup

type IADsGroup struct {
	IADs
}

IADsGroup represents the component object model interface for active directory groups.

func (*IADsGroup) Description

func (v *IADsGroup) Description() (desc string, err error)

Description retrieves the description of the group.

func (*IADsGroup) Members

func (v *IADsGroup) Members() (members *IADsMembers, err error)

Members retrieves an IADsMembers interface that provides access to the membership of the group.

func (*IADsGroup) VTable

func (v *IADsGroup) VTable() *IADsGroupVtbl

VTable returns the component object model virtual function table for the group.

type IADsGroupVtbl

type IADsGroupVtbl struct {
	IADsVtbl
	Description    uintptr
	SetDescription uintptr
	Members        uintptr
	IsMember       uintptr
	Add            uintptr
	Remove         uintptr
}

IADsGroupVtbl represents the component object model virtual function table for the IADsGroup interface.

type IADsLargeInteger

type IADsLargeInteger struct {
	ole.IDispatch
}

IADsLargeInteger represents the component object model interface for large integers.

func (*IADsLargeInteger) HighPart

func (v *IADsLargeInteger) HighPart() (upper int32, err error)

HighPart retrieves the upper 32 bits of the 64 bit value.

func (*IADsLargeInteger) LowPart

func (v *IADsLargeInteger) LowPart() (lower int32, err error)

LowPart retrieves the lower 32 bits of the 64 bit value.

func (*IADsLargeInteger) VTable

VTable returns the component object model virtual function table for the large integer.

func (*IADsLargeInteger) Value

func (v *IADsLargeInteger) Value() (value int64, err error)

Value retrieves the 64 bit value.

type IADsLargeIntegerVtbl

type IADsLargeIntegerVtbl struct {
	ole.IDispatchVtbl
	HighPart    uintptr
	SetHighPart uintptr
	LowPart     uintptr
	SetLowPart  uintptr
}

IADsLargeIntegerVtbl represents the component object model virtual function table for the IADsLargeInteger interface.

type IADsLocality

type IADsLocality struct {
	IADs
}

IADsLocality represents the component object model interface for active directory localities.

func (*IADsLocality) VTable

func (v *IADsLocality) VTable() *IADsLocalityVtbl

VTable returns the component object model virtual function table for the locality.

type IADsLocalityVtbl

type IADsLocalityVtbl struct {
	IADsVtbl
	Description      uintptr
	SetDescription   uintptr
	LocalityName     uintptr
	SetLocalityName  uintptr
	PostalAddress    uintptr
	SetPostalAddress uintptr
	SeeAlso          uintptr
	SetSeeAlso       uintptr
}

IADsLocalityVtbl represents the component object model virtual function table for the IADsLocality interface.

type IADsMembers

type IADsMembers struct {
	ole.IDispatch
}

IADsMembers represents the component object model interface for group membership.

func (*IADsMembers) Filter

func (v *IADsMembers) Filter() (variant *ole.VARIANT, err error)

Filter retrieves the filter for the membership.

func (*IADsMembers) NewEnum

func (v *IADsMembers) NewEnum() (enum *ole.IUnknown, err error)

NewEnum retrieves an enumerator interface that provides access to the objects within the membership.

See https://msdn.microsoft.com/library/aa706042

func (*IADsMembers) SetFilter

func (v *IADsMembers) SetFilter(variant *ole.VARIANT) (err error)

SetFilter sets the filter for the membership.

func (*IADsMembers) VTable

func (v *IADsMembers) VTable() *IADsMembersVtbl

VTable returns the component object model virtual function table for the group membership.

type IADsMembersVtbl

type IADsMembersVtbl struct {
	ole.IDispatchVtbl
	Count     uintptr
	NewEnum   uintptr
	Filter    uintptr
	SetFilter uintptr
}

IADsMembersVtbl represents the component object model virtual function table for the IADsMembers interface.

type IADsNamespaces

type IADsNamespaces struct {
	IADs
}

IADsNamespaces represents the component object model interface for the active directory namespace registry.

func (*IADsNamespaces) VTable

func (v *IADsNamespaces) VTable() *IADsNamespacesVtbl

VTable returns the component object model virtual function table for the namespace registry.

type IADsNamespacesVtbl

type IADsNamespacesVtbl struct {
	IADsVtbl
	GetDefaultContainer uintptr
	SetDefaultContainer uintptr
}

IADsNamespacesVtbl represents the component object model virtual function table for the IADsNamespaces interface.

type IADsO

type IADsO struct {
	IADs
}

IADsO represents the component object model interface for active directory organizations.

func (*IADsO) VTable

func (v *IADsO) VTable() *IADsOVtbl

VTable returns the component object model virtual function table for the organization.

type IADsOU

type IADsOU struct {
	IADs
}

IADsOU represents the component object model interface for active directory organizational units.

func (*IADsOU) VTable

func (v *IADsOU) VTable() *IADsOUVtbl

VTable returns the component object model virtual function table for the organizational unit.

type IADsOUVtbl

type IADsOUVtbl struct {
	IADsVtbl
	Description         uintptr
	SetDescription      uintptr
	LocalityName        uintptr
	SetLocalityName     uintptr
	PostalAddress       uintptr
	SetPostalAddress    uintptr
	TelephoneNumber     uintptr
	SetTelephoneNumber  uintptr
	FaxNumber           uintptr
	SetFaxNumber        uintptr
	SeeAlso             uintptr
	SetSeeAlso          uintptr
	BusinessCategory    uintptr
	SetBusinessCategory uintptr
}

IADsOUVtbl represents the component object model virtual function table for the IADsOU interface.

type IADsOVtbl

type IADsOVtbl struct {
	IADsVtbl
	Description        uintptr
	SetDescription     uintptr
	LocalityName       uintptr
	SetLocalityName    uintptr
	PostalAddress      uintptr
	SetPostalAddress   uintptr
	TelephoneNumber    uintptr
	SetTelephoneNumber uintptr
	FaxNumber          uintptr
	SetFaxNumber       uintptr
	SeeAlso            uintptr
	SetSeeAlso         uintptr
}

IADsOVtbl represents the component object model virtual function table for the IADsO interface.

type IADsOpenDSObject

type IADsOpenDSObject struct {
	ole.IDispatch
}

IADsOpenDSObject represents the component object model interface for directory services.

func NewIADsOpenDSObject

func NewIADsOpenDSObject(server string, clsid uuid.UUID) (ds *IADsOpenDSObject, err error)

NewIADsOpenDSObject returns a new instance of the IADsOpenDSObject component object model interface.

func (*IADsOpenDSObject) OpenDSObject

func (v *IADsOpenDSObject) OpenDSObject(path, user, password string, flags uint32) (obj *ole.IDispatch, err error)

OpenDSObject retrieves a directory services object for the given path.

See: https://msdn.microsoft.com/library/aa706065

func (*IADsOpenDSObject) VTable

VTable returns the component object model virtual function table for the directory service.

type IADsOpenDSObjectVtbl

type IADsOpenDSObjectVtbl struct {
	ole.IDispatchVtbl
	OpenDSObject uintptr
}

IADsOpenDSObjectVtbl represents the component object model virtual function table for the IADsOpenDSObject interface.

type IADsPropertyValue

type IADsPropertyValue struct {
	ole.IDispatch
}

IADsPropertyValue represents the component object model interface for property values.

func (*IADsPropertyValue) VTable

VTable returns the component object model virtual function table for the property value.

type IADsPropertyValueVtbl

type IADsPropertyValueVtbl struct {
	ole.IDispatchVtbl
	Clear                 uintptr
	Type                  uintptr
	SetType               uintptr
	DistinguishedName     uintptr
	SetDistinguishedName  uintptr
	CaseExactString       uintptr
	SetCaseExactString    uintptr
	IgnoreCaseString      uintptr
	SetIgnoreCaseString   uintptr
	PrintableString       uintptr
	SetPrintableString    uintptr
	NumericString         uintptr
	SetNumericString      uintptr
	Boolean               uintptr
	SetBoolean            uintptr
	Integer               uintptr
	SetInteger            uintptr
	OctetString           uintptr
	SetOctetString        uintptr
	SecurityDescriptor    uintptr
	SetSecurityDescriptor uintptr
	LargeInteger          uintptr
	SetLargeInteger       uintptr
	UTCTime               uintptr
	SetUTCTime            uintptr
}

IADsPropertyValueVtbl represents the component object model virtual function table for the IADsPropertyValue interface.

type IADsResource

type IADsResource struct {
	IADs
}

IADsResource represents the component object model interface for active directory resources.

func (*IADsResource) VTable

func (v *IADsResource) VTable() *IADsResourceVtbl

VTable returns the component object model virtual function table for the resource.

type IADsResourceVtbl

type IADsResourceVtbl struct {
	IADsVtbl
	User      uintptr
	UserPath  uintptr
	Path      uintptr
	LockCount uintptr
}

IADsResourceVtbl represents the component object model virtual function table for the IADsResource interface.

type IADsService

type IADsService struct {
	IADs
}

IADsService represents the component object model interface for active directory services.

func (*IADsService) VTable

func (v *IADsService) VTable() *IADsServiceVtbl

VTable returns the component object model virtual function table for the service.

type IADsServiceOperations

type IADsServiceOperations struct {
	IADs
}

IADsServiceOperations represents the component object model interface for active directory service operations.

func (*IADsServiceOperations) VTable

VTable returns the component object model virtual function table for the service operations.

type IADsServiceOperationsVtbl

type IADsServiceOperationsVtbl struct {
	IADsVtbl
	Status      uintptr
	Start       uintptr
	Stop        uintptr
	Pause       uintptr
	Continue    uintptr
	SetPassword uintptr
}

IADsServiceOperationsVtbl represents the component object model virtual function table for the IADsServiceOperations interface.

type IADsServiceVtbl

type IADsServiceVtbl struct {
	IADsVtbl
	HostComputer          uintptr
	SetHostComputer       uintptr
	DisplayName           uintptr
	SetDisplayName        uintptr
	Version               uintptr
	SetVersion            uintptr
	ServiceType           uintptr
	SetServiceType        uintptr
	StartType             uintptr
	SetStartType          uintptr
	Path                  uintptr
	SetPath               uintptr
	StartupParameters     uintptr
	SetStartupParameters  uintptr
	ErrorControl          uintptr
	SetErrorControl       uintptr
	LoadOrderGroup        uintptr
	SetLoadOrderGroup     uintptr
	ServiceAccountName    uintptr
	SetServiceAccountName uintptr
	ServiceAccountPath    uintptr
	SetServiceAccountPath uintptr
	Dependencies          uintptr
	SetDependencies       uintptr
}

IADsServiceVtbl represents the component object model virtual function table for the IADsService interface.

type IADsSession

type IADsSession struct {
	IADs
}

IADsSession represents the component object model interface for active directory sessions.

func (*IADsSession) VTable

func (v *IADsSession) VTable() *IADsSessionVtbl

VTable returns the component object model virtual function table for the session.

type IADsSessionVtbl

type IADsSessionVtbl struct {
	IADsVtbl
	User         uintptr
	UserPath     uintptr
	Computer     uintptr
	ComputerPath uintptr
	ConnectTime  uintptr
	IdleTime     uintptr
}

IADsSessionVtbl represents the component object model virtual function table for the IADsSession interface.

type IADsUser

type IADsUser struct {
	IADs
}

IADsUser represents the component object model interface for active directory users.

func (*IADsUser) VTable

func (v *IADsUser) VTable() *IADsUserVtbl

VTable returns the component object model virtual function table for the user.

type IADsUserVtbl

type IADsUserVtbl struct {
	IADsVtbl
	BadLoginAddress           uintptr
	BadLoginCount             uintptr
	LastLogin                 uintptr
	LastLogoff                uintptr
	LastFailedLogin           uintptr
	PasswordLastChanged       uintptr
	Description               uintptr
	SetDescription            uintptr
	Division                  uintptr
	SetDivision               uintptr
	Department                uintptr
	SetDepartment             uintptr
	EmployeeID                uintptr
	SetEmployeeID             uintptr
	FullName                  uintptr
	SetFullName               uintptr
	FirstName                 uintptr
	SetFirstName              uintptr
	LastName                  uintptr
	SetLastName               uintptr
	OtherName                 uintptr
	SetOtherName              uintptr
	NamePrefix                uintptr
	SetNamePrefix             uintptr
	NameSuffix                uintptr
	SetNameSuffix             uintptr
	Title                     uintptr
	SetTitle                  uintptr
	Manager                   uintptr
	SetManager                uintptr
	TelephoneHome             uintptr
	SetTelephoneHome          uintptr
	TelephoneMobile           uintptr
	SetTelephoneMobile        uintptr
	TelephoneNumber           uintptr
	SetTelephoneNumber        uintptr
	TelephonePager            uintptr
	SetTelephonePager         uintptr
	FaxNumber                 uintptr
	SetFaxNumber              uintptr
	OfficeLocations           uintptr
	SetOfficeLocations        uintptr
	PostalAddresses           uintptr
	SetPostalAddresses        uintptr
	PostalCodes               uintptr
	SetPostalCodes            uintptr
	SeeAlso                   uintptr
	SetSeeAlso                uintptr
	AccountDisabled           uintptr
	SetAccountDisabled        uintptr
	AccountExpirationDate     uintptr
	SetAccountExpirationDate  uintptr
	GraceLoginsAllowed        uintptr
	SetGraceLoginsAllowed     uintptr
	GraceLoginsRemaining      uintptr
	SetGraceLoginsRemaining   uintptr
	IsAccountLocked           uintptr
	SetIsAccountLocked        uintptr
	LoginHours                uintptr
	SetLoginHours             uintptr
	LoginWorkstations         uintptr
	SetLoginWorkstations      uintptr
	MaxLogins                 uintptr
	SetMaxLogins              uintptr
	MaxStorage                uintptr
	SetMaxStorage             uintptr
	PasswordExpirationDate    uintptr
	SetPasswordExpirationDate uintptr
	PasswordMinimumLength     uintptr
	SetPasswordMinimumLength  uintptr
	PasswordRequired          uintptr
	SetPasswordRequired       uintptr
	RequireUniquePassword     uintptr
	SetRequireUniquePassword  uintptr
	EmailAddress              uintptr
	SetEmailAddress           uintptr
	HomeDirectory             uintptr
	SetHomeDirectory          uintptr
	Languages                 uintptr
	SetLanguages              uintptr
	Profile                   uintptr
	SetProfile                uintptr
	LoginScript               uintptr
	SetLoginScript            uintptr
	Picture                   uintptr
	SetPicture                uintptr
	HomePage                  uintptr
	SetHomePage               uintptr
	Groups                    uintptr
	SetPassword               uintptr
	ChangePassword            uintptr
}

IADsUserVtbl represents the component object model virtual function table for the IADsUser interface.

type IADsVtbl

type IADsVtbl struct {
	ole.IDispatchVtbl
	Name      uintptr
	Class     uintptr
	GUID      uintptr
	AdsPath   uintptr
	Parent    uintptr
	Schema    uintptr
	GetInfo   uintptr
	SetInfo   uintptr
	Get       uintptr
	Put       uintptr
	GetEx     uintptr
	PutEx     uintptr
	GetInfoEx uintptr
}

IADsVtbl represents the component object model virtual function table for the IADs interface.

type IDirectorySearch

type IDirectorySearch struct {
	ole.IDispatch
}

IDirectorySearch represents the component object model interface for conducting directory searches.

func (*IDirectorySearch) VTable

VTable returns the component object model virtual function table for the property value.

type IDirectorySearchVtbl

type IDirectorySearchVtbl struct {
	ole.IDispatchVtbl
	SetSearchPreferences uintptr
	ExecuteSearch        uintptr
	AbandonSearch        uintptr
	GetFirstRow          uintptr
	GetNextRow           uintptr
	GetPreviousRow       uintptr
	GetNextColumnName    uintptr
	GetColumn            uintptr
	FreeColumn           uintptr
	CloseSearchHandle    uintptr
}

IDirectorySearchVtbl represents the component object model virtual function table for the IDirectorySearch interface.

Jump to

Keyboard shortcuts

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