Documentation
¶
Index ¶
- Constants
- Variables
- type IADs
- func (v *IADs) AdsPath() (path string, err error)
- func (v *IADs) Class() (class string, err error)
- func (v *IADs) GUID() (guid string, err error)
- func (v *IADs) Get(name string) (prop *ole.VARIANT, err error)
- func (v *IADs) GetEx(name string) (prop *ole.VARIANT, err error)
- func (v *IADs) GetInfoEx(variant *ole.VARIANT) (err error)
- func (v *IADs) Name() (name string, err error)
- func (v *IADs) Parent() (path string, err error)
- func (v *IADs) PutInt(name string, val int) error
- func (v *IADs) PutString(name string, val string) error
- func (v *IADs) Schema() (path string, err error)
- func (v *IADs) SetInfo() error
- func (v *IADs) VTable() *IADsVtbl
- type IADsClass
- type IADsClassVtbl
- type IADsCollection
- type IADsCollectionVtbl
- type IADsComputer
- type IADsComputerOperations
- type IADsComputerOperationsVtbl
- type IADsComputerVtbl
- type IADsContainer
- func (v *IADsContainer) Filter() (variant *ole.VARIANT, err error)
- func (v *IADsContainer) GetObject(class, name string) (obj *ole.IDispatch, err error)
- func (v *IADsContainer) NewEnum() (enum *ole.IUnknown, err error)
- func (v *IADsContainer) SetFilter(variant *ole.VARIANT) (err error)
- func (v *IADsContainer) VTable() *IADsContainerVtbl
- type IADsContainerVtbl
- type IADsDomain
- type IADsDomainVtbl
- type IADsFileService
- type IADsFileServiceOperations
- type IADsFileServiceOperationsVtbl
- type IADsFileServiceVtbl
- type IADsFileShare
- type IADsFileShareVtbl
- type IADsGroup
- type IADsGroupVtbl
- type IADsLargeInteger
- type IADsLargeIntegerVtbl
- type IADsLocality
- type IADsLocalityVtbl
- type IADsMembers
- type IADsMembersVtbl
- type IADsNameTranslate
- type IADsNameTranslateVtbl
- type IADsNamespaces
- type IADsNamespacesVtbl
- type IADsO
- type IADsOU
- type IADsOUVtbl
- type IADsOVtbl
- type IADsOpenDSObject
- type IADsOpenDSObjectVtbl
- type IADsPropertyValue
- type IADsPropertyValueVtbl
- type IADsResource
- type IADsResourceVtbl
- type IADsService
- type IADsServiceOperations
- type IADsServiceOperationsVtbl
- type IADsServiceVtbl
- type IADsSession
- type IADsSessionVtbl
- type IADsUser
- type IADsUserVtbl
- type IADsVtbl
- type IDirectorySearch
- type IDirectorySearchVtbl
Constants ¶
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 )
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 )
const ( ADS_NAME_INITTYPE_DOMAIN uint32 = iota + 1 ADS_NAME_INITTYPE_SERVER ADS_NAME_INITTYPE_GC )
The ADS_NAME_INITTYPE_ENUM enumeration specifies the types of initialization to perform on a NameTranslate object. It is used in the IADsNameTranslate interface.
See https://docs.microsoft.com/en-us/windows/win32/api/iads/ne-iads-ads_name_inittype_enum
const ( ADS_NAME_TYPE_1779 uint32 = iota + 1 ADS_NAME_TYPE_CANONICAL ADS_NAME_TYPE_NT4 ADS_NAME_TYPE_DISPLAY ADS_NAME_TYPE_DOMAIN_SIMPLE ADS_NAME_TYPE_ENTERPRISE_SIMPLE ADS_NAME_TYPE_GUID ADS_NAME_TYPE_UNKNOWN ADS_NAME_TYPE_USER_PRINCIPAL_NAME ADS_NAME_TYPE_CANONICAL_EX ADS_NAME_TYPE_SERVICE_PRINCIPAL_NAME ADS_NAME_TYPE_SID_OR_SID_HISTORY_NAME )
The ADS_NAME_TYPE_ENUM enumeration specifies the formats used for representing distinguished names. It is used by the IADsNameTranslate interface to convert the format of a distinguished name.
See https://docs.microsoft.com/en-us/windows/win32/api/iads/ne-iads-ads_name_type_enum
Variables ¶
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) Get ¶
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 ¶
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) GetInfoEx ¶
GetInfoEx loads the given set of property names into the cache. The given variant must be a safe array of null-terminated unicode strings.
func (*IADs) PutInt ¶
PutInt sets the values of an int attribute in the ADSI attribute cache. The value must be commited with SetInfo to be made persistent.
func (*IADs) PutString ¶
PutString sets the values of a string attribute in the ADSI attribute cache. The value must be commited with SetInfo to be made persistent.
func (*IADs) Schema ¶
Schema retrieves the fully qualified path of the object's schema class 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 ¶
func (v *IADsComputerOperations) VTable() *IADsComputerOperationsVtbl
VTable returns the component object model virtual function table for the computer operations.
type IADsComputerOperationsVtbl ¶
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) GetObject ¶
func (v *IADsContainer) GetObject(class, name string) (obj *ole.IDispatch, err error)
GetObject returns a descendant object with the given class and relative name.
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.
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 ¶
func (v *IADsFileServiceOperations) VTable() *IADsFileServiceOperationsVtbl
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 {
}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 {}
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 ¶
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) Remove ¶
Remove removes the specified user object from this group. The operation does not remove the group object itself even when there is no member remaining in 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 ¶
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 ¶
func (v *IADsLargeInteger) VTable() *IADsLargeIntegerVtbl
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.
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 IADsNameTranslate ¶
type IADsNameTranslate struct {
ole.IDispatch
}
func NewIADsNameTranslate ¶
func NewIADsNameTranslate(server string) (*IADsNameTranslate, error)
NewIADsNameTranslate returns an IADsNameTranslate that manages the given COM interface.
func (*IADsNameTranslate) Get ¶
func (v *IADsNameTranslate) Get(formatType uint32) (adsPath string, err error)
Get retrieves the name of a directory object in the specified format. The distinguished name must have been set in the appropriate format by the Set function.
func (*IADsNameTranslate) Init ¶
func (v *IADsNameTranslate) Init(adsPath string, initType uint32) (err error)
Init initializes a name translate object by binding to a specified directory server, domain, or global catalog, using the credentials of the current user.
func (*IADsNameTranslate) Set ¶
func (v *IADsNameTranslate) Set(adsPath string, setType uint32) (err error)
Set directs the directory service to set up a specified object for name translation.
func (*IADsNameTranslate) VTable ¶
func (v *IADsNameTranslate) VTable() *IADsNameTranslateVtbl
type IADsNameTranslateVtbl ¶
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 ¶
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.
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.
func (*IADsOpenDSObject) VTable ¶
func (v *IADsOpenDSObject) VTable() *IADsOpenDSObjectVtbl
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 ¶
func (v *IADsPropertyValue) VTable() *IADsPropertyValueVtbl
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 ¶
func (v *IADsServiceOperations) VTable() *IADsServiceOperationsVtbl
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) AccountDisabled ¶
AccountDisabled retrieves the disablement status of a user account.
func (*IADsUser) SetAccountDisabled ¶
SetAccountDisabled sets an account as disabled.
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 ¶
func (v *IDirectorySearch) VTable() *IDirectorySearchVtbl
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.
Source Files
¶
- constants.go
- iads.go
- iads_stub.go
- iadsclass.go
- iadsclass_stub.go
- iadscollection.go
- iadscollection_stub.go
- iadscomputer.go
- iadscomputer_stub.go
- iadscomputeroperations.go
- iadscomputeroperations_stub.go
- iadscontainer.go
- iadscontainer_stub.go
- iadsdomain.go
- iadsdomain_stub.go
- iadsfileservice.go
- iadsfileservice_stub.go
- iadsfileserviceoperations.go
- iadsfileserviceoperations_stub.go
- iadsfileshare.go
- iadsfileshare_stub.go
- iadsgroup.go
- iadsgroup_stub.go
- iadslargeinteger.go
- iadslargeinteger_stub.go
- iadslocality.go
- iadslocality_stub.go
- iadsmembers.go
- iadsmembers_stub.go
- iadsnamespaces.go
- iadsnamespaces_stub.go
- iadsnametranslate.go
- iadsnametranslate_stub.go
- iadso.go
- iadso_stub.go
- iadsopendsobject.go
- iadsopendsobject_stub.go
- iadsou.go
- iadsou_stub.go
- iadspropertyvalue.go
- iadspropertyvalue_stub.go
- iadsresource.go
- iadsresource_stub.go
- iadsservice.go
- iadsservice_stub.go
- iadsserviceoperations.go
- iadsserviceoperations_stub.go
- iadssession.go
- iadssession_stub.go
- iadsuser.go
- iadsuser_stub.go
- idirectorysearch.go
- idirectorysearch_stub.go
- utility.go