Generated from Manticore v1.1.5 • 201 packages. View on pkg.go.dev

functions

import "github.com/TheManticoreProject/Manticore/network/dcerpc/interfaces/12345778-1234-abcd-ef00-0123456789ac/1.0/functions"

Package functions implements the method stubs of the samr interface (12345778-1234-abcd-ef00-0123456789ac v1.0, [MS-SAMR]). Each opnum lives in its own NN_MethodName.go file; this file holds the small shapes and helpers shared across more than one method.

Index

func SamrAccountIsDelegatedManagedServiceAccount

func SamrAccountIsDelegatedManagedServiceAccount(rpc ndr.Invoker, serverHandle structures.SAMPR_HANDLE, accountName dtyp.RPC_UNICODE_STRING) (bool, bool, error)

SamrAccountIsDelegatedManagedServiceAccount calls SamrAccountIsDelegatedManagedServiceAccount (opnum 77), reporting whether the named account is a delegated managed service account and whether the caller is authorized for it ([MS-SAMR] 3.1.5.13.6).

func SamrAddMemberToAlias

func SamrAddMemberToAlias(rpc ndr.Invoker, aliasHandle structures.SAMPR_HANDLE, memberId dtyp.RPC_SID) error

SamrAddMemberToAlias calls SamrAddMemberToAlias (opnum 31), adding a member to an alias ([MS-SAMR] 3.1.5.4.2).

func SamrAddMemberToGroup

func SamrAddMemberToGroup(rpc ndr.Invoker, groupHandle structures.SAMPR_HANDLE, memberId uint32, attributes uint32) error

SamrAddMemberToGroup calls SamrAddMemberToGroup (opnum 22), adding a user as a member of a group ([MS-SAMR] 3.1.5.8.1).

func SamrAddMultipleMembersToAlias

func SamrAddMultipleMembersToAlias(rpc ndr.Invoker, aliasHandle structures.SAMPR_HANDLE, membersBuffer structures.SAMPR_PSID_ARRAY) error

SamrAddMultipleMembersToAlias calls SamrAddMultipleMembersToAlias (opnum 52), adding multiple members to an alias in a single call ([MS-SAMR] 3.1.5.4.3).

func SamrChangePasswordUser

func SamrChangePasswordUser(rpc ndr.Invoker, userHandle structures.SAMPR_HANDLE, lmPresent uint8, oldLmEncryptedWithNewLm *structures.ENCRYPTED_LM_OWF_PASSWORD, newLmEncryptedWithOldLm *structures.ENCRYPTED_LM_OWF_PASSWORD, ntPresent uint8, oldNtEncryptedWithNewNt *structures.ENCRYPTED_NT_OWF_PASSWORD, newNtEncryptedWithOldNt *structures.ENCRYPTED_NT_OWF_PASSWORD, ntCrossEncryptionPresent uint8, newNtEncryptedWithNewLm *structures.ENCRYPTED_NT_OWF_PASSWORD, lmCrossEncryptionPresent uint8, newLmEncryptedWithNewNt *structures.ENCRYPTED_LM_OWF_PASSWORD) error

SamrChangePasswordUser calls SamrChangePasswordUser (opnum 38), changing a user’s password given the old and new LM/NT OWFs cross-encrypted with one another ([MS-SAMR] 3.1.5.10.2).

func SamrCloseHandle

func SamrCloseHandle(rpc ndr.Invoker, handle structures.SAMPR_HANDLE) (structures.SAMPR_HANDLE, error)

SamrCloseHandle calls SamrCloseHandle (opnum 1), releasing server resources for the supplied handle and returning the (now zeroed) handle ([MS-SAMR] 3.1.5.13.1).

func SamrConnect

func SamrConnect(rpc ndr.Invoker, serverName string, desiredAccess uint32) (structures.SAMPR_HANDLE, error)

SamrConnect calls SamrConnect (opnum 0), obtaining a handle to a server object ([MS-SAMR] 3.1.5.1.4).

func SamrConnect2

func SamrConnect2(rpc ndr.Invoker, serverName string, desiredAccess uint32) (structures.SAMPR_HANDLE, error)

SamrConnect2 calls SamrConnect2 (opnum 57), obtaining a handle to a server object ([MS-SAMR] 3.1.5.1.3).

func SamrConnect4

func SamrConnect4(rpc ndr.Invoker, serverName string, clientRevision uint32, desiredAccess uint32) (structures.SAMPR_HANDLE, error)

SamrConnect4 calls SamrConnect4 (opnum 62), obtaining a handle to a server object and advertising the client revision ([MS-SAMR] 3.1.5.1.2).

func SamrConnect5

func SamrConnect5(rpc ndr.Invoker, serverName string, desiredAccess uint32) (structures.SAMPR_HANDLE, uint32, *structures.SAMPR_REVISION_INFO, error)

SamrConnect5 calls SamrConnect5 (opnum 64), obtaining a handle to a server object while negotiating a revision ([MS-SAMR] 3.1.5.1.1). This convenience signature requests input version 1 with a V1 revision info ({Revision: 3}).

func SamrCreateAliasInDomain

func SamrCreateAliasInDomain(rpc ndr.Invoker, domainHandle structures.SAMPR_HANDLE, accountName string, desiredAccess uint32) (structures.SAMPR_HANDLE, uint32, error)

SamrCreateAliasInDomain calls SamrCreateAliasInDomain (opnum 14), creating an alias in the domain and returning a handle to it plus its RID ([MS-SAMR] 3.1.5.4.1).

func SamrCreateGroupInDomain

func SamrCreateGroupInDomain(rpc ndr.Invoker, domainHandle structures.SAMPR_HANDLE, name string, desiredAccess uint32) (structures.SAMPR_HANDLE, uint32, error)

SamrCreateGroupInDomain calls SamrCreateGroupInDomain (opnum 10), creating a group object in the given domain ([MS-SAMR] 3.1.5.4.1).

func SamrCreateUser2InDomain

func SamrCreateUser2InDomain(rpc ndr.Invoker, domainHandle structures.SAMPR_HANDLE, name string, accountType uint32, desiredAccess uint32) (structures.SAMPR_HANDLE, uint32, uint32, error)

SamrCreateUser2InDomain calls SamrCreateUser2InDomain (opnum 50), creating a user object of the given account type in the domain ([MS-SAMR] 3.1.5.4.4).

func SamrCreateUserInDomain

func SamrCreateUserInDomain(rpc ndr.Invoker, domainHandle structures.SAMPR_HANDLE, name string, desiredAccess uint32) (structures.SAMPR_HANDLE, uint32, error)

SamrCreateUserInDomain calls SamrCreateUserInDomain (opnum 12), creating a user object in the given domain ([MS-SAMR] 3.1.5.4.4).

func SamrDeleteAlias

func SamrDeleteAlias(rpc ndr.Invoker, aliasHandle structures.SAMPR_HANDLE) (structures.SAMPR_HANDLE, error)

SamrDeleteAlias calls SamrDeleteAlias (opnum 30), removing an alias from the database and returning the (now zeroed) handle ([MS-SAMR] 3.1.5.7.2).

func SamrDeleteGroup

func SamrDeleteGroup(rpc ndr.Invoker, groupHandle structures.SAMPR_HANDLE) (structures.SAMPR_HANDLE, error)

SamrDeleteGroup calls SamrDeleteGroup (opnum 23), removing a group object from the database and returning the (now zeroed) handle ([MS-SAMR] 3.1.5.7.1).

func SamrDeleteUser

func SamrDeleteUser(rpc ndr.Invoker, userHandle structures.SAMPR_HANDLE) (structures.SAMPR_HANDLE, error)

SamrDeleteUser calls SamrDeleteUser (opnum 35), removing the user object referenced by the handle and returning the (now zeroed) handle ([MS-SAMR] 3.1.5.7.3).

func SamrEnumerateAliasesInDomain

func SamrEnumerateAliasesInDomain(rpc ndr.Invoker, domainHandle structures.SAMPR_HANDLE, enumerationContext uint32, preferedMaximumLength uint32) (uint32, *structures.SAMPR_ENUMERATION_BUFFER, uint32, error)

SamrEnumerateAliasesInDomain calls SamrEnumerateAliasesInDomain (opnum 15), enumerating the aliases of the domain ([MS-SAMR] 3.1.5.2.4). STATUS_MORE_ENTRIES is a success-style continuation status, not an error.

func SamrEnumerateDomainsInSamServer

func SamrEnumerateDomainsInSamServer(rpc ndr.Invoker, handle structures.SAMPR_HANDLE, enumerationContext uint32, preferedMaximumLength uint32) (uint32, *structures.SAMPR_ENUMERATION_BUFFER, uint32, error)

SamrEnumerateDomainsInSamServer calls SamrEnumerateDomainsInSamServer (opnum 6), listing the domains hosted by the server ([MS-SAMR] 3.1.5.2.1). A return of STATUS_MORE_ENTRIES indicates further entries remain; resume with the returned enumeration context.

func SamrEnumerateGroupsInDomain

func SamrEnumerateGroupsInDomain(rpc ndr.Invoker, domainHandle structures.SAMPR_HANDLE, enumerationContext uint32, preferedMaximumLength uint32) (uint32, *structures.SAMPR_ENUMERATION_BUFFER, uint32, error)

SamrEnumerateGroupsInDomain calls SamrEnumerateGroupsInDomain (opnum 11), enumerating the groups in a domain ([MS-SAMR] 3.1.5.2.1). STATUS_MORE_ENTRIES is treated as success and signals that further calls (with the returned enumeration context) are required.

func SamrEnumerateUsersInDomain

func SamrEnumerateUsersInDomain(rpc ndr.Invoker, domainHandle structures.SAMPR_HANDLE, enumerationContext uint32, userAccountControl uint32, preferedMaximumLength uint32) (uint32, *structures.SAMPR_ENUMERATION_BUFFER, uint32, error)

SamrEnumerateUsersInDomain calls SamrEnumerateUsersInDomain (opnum 13), enumerating the users in a domain filtered by UserAccountControl ([MS-SAMR] 3.1.5.2.5). STATUS_MORE_ENTRIES is treated as success and signals that further calls (with the returned enumeration context) are required.

func SamrGetAliasMembership

func SamrGetAliasMembership(rpc ndr.Invoker, domainHandle structures.SAMPR_HANDLE, sidArray structures.SAMPR_PSID_ARRAY) (structures.SAMPR_ULONG_ARRAY, error)

SamrGetAliasMembership calls SamrGetAliasMembership (opnum 16), returning the RIDs of the aliases in the domain of which any of the given SIDs is a member ([MS-SAMR] 3.1.5.9.2).

func SamrGetDisplayEnumerationIndex

func SamrGetDisplayEnumerationIndex(rpc ndr.Invoker, domainHandle structures.SAMPR_HANDLE, class uint16, prefix string) (uint32, error)

SamrGetDisplayEnumerationIndex calls SamrGetDisplayEnumerationIndex (opnum 41), returning the index of the first account whose name is greater than or equal to the given prefix ([MS-SAMR] 3.1.5.3.3).

func SamrGetDisplayEnumerationIndex2

func SamrGetDisplayEnumerationIndex2(rpc ndr.Invoker, domainHandle structures.SAMPR_HANDLE, class uint16, prefix string) (uint32, error)

SamrGetDisplayEnumerationIndex2 calls SamrGetDisplayEnumerationIndex2 (opnum 49), returning the index of the first account whose name is greater than or equal to the given prefix ([MS-SAMR] 3.1.5.3.2).

func SamrGetDomainPasswordInformation

func SamrGetDomainPasswordInformation(rpc ndr.Invoker) (structures.USER_DOMAIN_PASSWORD_INFORMATION, error)

SamrGetDomainPasswordInformation calls SamrGetDomainPasswordInformation (opnum 56), retrieving select password policy properties of the account domain ([MS-SAMR] 3.1.5.13.3).

func SamrGetGroupsForUser

func SamrGetGroupsForUser(rpc ndr.Invoker, userHandle structures.SAMPR_HANDLE) (*structures.SAMPR_GET_GROUPS_BUFFER, error)

SamrGetGroupsForUser calls SamrGetGroupsForUser (opnum 39), returning the union of all groups the given user is a member of ([MS-SAMR] 3.1.5.9.1).

func SamrGetMembersInAlias

func SamrGetMembersInAlias(rpc ndr.Invoker, aliasHandle structures.SAMPR_HANDLE) (structures.SAMPR_PSID_ARRAY_OUT, error)

SamrGetMembersInAlias calls SamrGetMembersInAlias (opnum 33), retrieving the SIDs of the members of an alias ([MS-SAMR] 3.1.5.5.5).

func SamrGetMembersInGroup

func SamrGetMembersInGroup(rpc ndr.Invoker, groupHandle structures.SAMPR_HANDLE) (*structures.SAMPR_GET_MEMBERS_BUFFER, error)

SamrGetMembersInGroup calls SamrGetMembersInGroup (opnum 25), reading the members of a group ([MS-SAMR] 3.1.5.8.3).

func SamrGetUserDomainPasswordInformation

func SamrGetUserDomainPasswordInformation(rpc ndr.Invoker, userHandle structures.SAMPR_HANDLE) (structures.USER_DOMAIN_PASSWORD_INFORMATION, error)

SamrGetUserDomainPasswordInformation calls SamrGetUserDomainPasswordInformation (opnum 44), returning the password policy of the domain the user belongs to ([MS-SAMR] 3.1.5.13.1).

func SamrLookupDomainInSamServer

func SamrLookupDomainInSamServer(rpc ndr.Invoker, handle structures.SAMPR_HANDLE, name string) (*dtyp.RPC_SID, error)

SamrLookupDomainInSamServer calls SamrLookupDomainInSamServer (opnum 5), resolving a domain name to its SID ([MS-SAMR] 3.1.5.11.1).

func SamrLookupIdsInDomain

func SamrLookupIdsInDomain(rpc ndr.Invoker, domainHandle structures.SAMPR_HANDLE, relativeIds []uint32) (structures.SAMPR_RETURNED_USTRING_ARRAY, structures.SAMPR_ULONG_ARRAY, error)

SamrLookupIdsInDomain calls SamrLookupIdsInDomain (opnum 18), translating RIDs into account names and their SID_NAME_USE classifications ([MS-SAMR] 3.1.5.11.1).

func SamrLookupNamesInDomain

func SamrLookupNamesInDomain(rpc ndr.Invoker, domainHandle structures.SAMPR_HANDLE, names []string) (structures.SAMPR_ULONG_ARRAY, structures.SAMPR_ULONG_ARRAY, error)

SamrLookupNamesInDomain calls SamrLookupNamesInDomain (opnum 17), translating account names into RIDs and their SID_NAME_USE classifications ([MS-SAMR] 3.1.5.11.2).

func SamrOemChangePasswordUser2

func SamrOemChangePasswordUser2(rpc ndr.Invoker, serverName *structures.RPC_STRING, userName structures.RPC_STRING, newPasswordEncryptedWithOldLm *structures.SAMPR_ENCRYPTED_USER_PASSWORD, oldLmOwfPasswordEncryptedWithNewLm *structures.ENCRYPTED_LM_OWF_PASSWORD) error

SamrOemChangePasswordUser2 calls SamrOemChangePasswordUser2 (opnum 54), changing a user’s password using OEM (ANSI) encoded names and LM-based encryption ([MS-SAMR] 3.1.5.10.3).

func SamrOpenAlias

func SamrOpenAlias(rpc ndr.Invoker, domainHandle structures.SAMPR_HANDLE, desiredAccess uint32, aliasId uint32) (structures.SAMPR_HANDLE, error)

SamrOpenAlias calls SamrOpenAlias (opnum 27), obtaining a handle to an existing alias ([MS-SAMR] 3.1.5.1.6).

func SamrOpenDomain

func SamrOpenDomain(rpc ndr.Invoker, serverHandle structures.SAMPR_HANDLE, desiredAccess uint32, domainId dtyp.RPC_SID) (structures.SAMPR_HANDLE, error)

SamrOpenDomain calls SamrOpenDomain (opnum 7), obtaining a handle to a domain object given its SID ([MS-SAMR] 3.1.5.1.5).

func SamrOpenGroup

func SamrOpenGroup(rpc ndr.Invoker, domainHandle structures.SAMPR_HANDLE, desiredAccess uint32, groupId uint32) (structures.SAMPR_HANDLE, error)

SamrOpenGroup calls SamrOpenGroup (opnum 19), obtaining a handle to a group object ([MS-SAMR] 3.1.5.1.5).

func SamrOpenUser

func SamrOpenUser(rpc ndr.Invoker, domainHandle structures.SAMPR_HANDLE, desiredAccess uint32, userId uint32) (structures.SAMPR_HANDLE, error)

SamrOpenUser calls SamrOpenUser (opnum 34), obtaining a handle to a user object given its relative id within the domain ([MS-SAMR] 3.1.5.1.9).

func SamrQueryDisplayInformation

func SamrQueryDisplayInformation(rpc ndr.Invoker, domainHandle structures.SAMPR_HANDLE, class uint16, index, entryCount, preferredMaximumLength uint32) (uint32, uint32, structures.SAMPR_DISPLAY_INFO_BUFFER, error)

SamrQueryDisplayInformation calls SamrQueryDisplayInformation (opnum 40), returning a page of account information for display ([MS-SAMR] 3.1.5.3.1). The returned union carries its own Tag.

func SamrQueryDisplayInformation2

func SamrQueryDisplayInformation2(rpc ndr.Invoker, domainHandle structures.SAMPR_HANDLE, class uint16, index, entryCount, preferredMaximumLength uint32) (uint32, uint32, structures.SAMPR_DISPLAY_INFO_BUFFER, error)

SamrQueryDisplayInformation2 calls SamrQueryDisplayInformation2 (opnum 48), returning a page of account information for display ([MS-SAMR] 3.1.5.3.1). The returned union carries its own Tag.

func SamrQueryDisplayInformation3

func SamrQueryDisplayInformation3(rpc ndr.Invoker, domainHandle structures.SAMPR_HANDLE, class uint16, index, entryCount, preferredMaximumLength uint32) (uint32, uint32, structures.SAMPR_DISPLAY_INFO_BUFFER, error)

SamrQueryDisplayInformation3 calls SamrQueryDisplayInformation3 (opnum 51), returning a page of account information for display ([MS-SAMR] 3.1.5.3.1). The returned union carries its own Tag.

func SamrQueryInformationAlias

func SamrQueryInformationAlias(rpc ndr.Invoker, aliasHandle structures.SAMPR_HANDLE, aliasInformationClass structures.ALIAS_INFORMATION_CLASS) (*structures.SAMPR_ALIAS_INFO_BUFFER, error)

SamrQueryInformationAlias calls SamrQueryInformationAlias (opnum 28), retrieving attributes of an alias for the requested information class ([MS-SAMR] 3.1.5.5.4).

func SamrQueryInformationDomain

func SamrQueryInformationDomain(rpc ndr.Invoker, domainHandle structures.SAMPR_HANDLE, class uint16) (*structures.SAMPR_DOMAIN_INFO_BUFFER, error)

SamrQueryInformationDomain calls SamrQueryInformationDomain (opnum 8), retrieving domain attributes selected by class ([MS-SAMR] 3.1.5.5.2). The returned union carries its own Tag.

func SamrQueryInformationDomain2

func SamrQueryInformationDomain2(rpc ndr.Invoker, domainHandle structures.SAMPR_HANDLE, class uint16) (*structures.SAMPR_DOMAIN_INFO_BUFFER, error)

SamrQueryInformationDomain2 calls SamrQueryInformationDomain2 (opnum 46), retrieving domain attributes selected by class ([MS-SAMR] 3.1.5.5.1). The returned union carries its own Tag.

func SamrQueryInformationGroup

func SamrQueryInformationGroup(rpc ndr.Invoker, groupHandle structures.SAMPR_HANDLE, groupInformationClass structures.GROUP_INFORMATION_CLASS) (*structures.SAMPR_GROUP_INFO_BUFFER, error)

SamrQueryInformationGroup calls SamrQueryInformationGroup (opnum 20), retrieving attributes of a group object ([MS-SAMR] 3.1.5.5.3).

func SamrQueryInformationUser

func SamrQueryInformationUser(rpc ndr.Invoker, userHandle structures.SAMPR_HANDLE, userInformationClass structures.USER_INFORMATION_CLASS) (*structures.SAMPR_USER_INFO_BUFFER, error)

SamrQueryInformationUser calls SamrQueryInformationUser (opnum 36), retrieving attributes of a user object ([MS-SAMR] 3.1.5.5.6).

func SamrQueryInformationUser2

func SamrQueryInformationUser2(rpc ndr.Invoker, userHandle structures.SAMPR_HANDLE, userInformationClass structures.USER_INFORMATION_CLASS) (*structures.SAMPR_USER_INFO_BUFFER, error)

SamrQueryInformationUser2 calls SamrQueryInformationUser2 (opnum 47), retrieving attributes of a user object ([MS-SAMR] 3.1.5.5.5).

func SamrQuerySecurityObject

func SamrQuerySecurityObject(rpc ndr.Invoker, handle structures.SAMPR_HANDLE, securityInformation uint32) (*structures.SAMPR_SR_SECURITY_DESCRIPTOR, error)

SamrQuerySecurityObject calls SamrQuerySecurityObject (opnum 3), retrieving the security descriptor of the referenced object ([MS-SAMR] 3.1.5.12.1).

func SamrRemoveMemberFromAlias

func SamrRemoveMemberFromAlias(rpc ndr.Invoker, aliasHandle structures.SAMPR_HANDLE, memberId dtyp.RPC_SID) error

SamrRemoveMemberFromAlias calls SamrRemoveMemberFromAlias (opnum 32), removing a member from an alias ([MS-SAMR] 3.1.5.5.3).

func SamrRemoveMemberFromForeignDomain

func SamrRemoveMemberFromForeignDomain(rpc ndr.Invoker, domainHandle structures.SAMPR_HANDLE, memberSid dtyp.RPC_SID) error

SamrRemoveMemberFromForeignDomain calls SamrRemoveMemberFromForeignDomain (opnum 45), removing the given SID from the membership of all aliases in the domain ([MS-SAMR] 3.1.5.8.5).

func SamrRemoveMemberFromGroup

func SamrRemoveMemberFromGroup(rpc ndr.Invoker, groupHandle structures.SAMPR_HANDLE, memberId uint32) error

SamrRemoveMemberFromGroup calls SamrRemoveMemberFromGroup (opnum 24), removing a user from the membership of a group ([MS-SAMR] 3.1.5.8.2).

func SamrRemoveMultipleMembersFromAlias

func SamrRemoveMultipleMembersFromAlias(rpc ndr.Invoker, aliasHandle structures.SAMPR_HANDLE, membersBuffer structures.SAMPR_PSID_ARRAY) error

SamrRemoveMultipleMembersFromAlias calls SamrRemoveMultipleMembersFromAlias (opnum 53), removing multiple members from an alias in a single call ([MS-SAMR] 3.1.5.5.4).

func SamrRidToSid

func SamrRidToSid(rpc ndr.Invoker, handle structures.SAMPR_HANDLE, rid uint32) (*dtyp.RPC_SID, error)

SamrRidToSid calls SamrRidToSid (opnum 65), constructing the full SID for a RID in the object’s domain ([MS-SAMR] 3.1.5.11.2).

func SamrSetDSRMPassword

func SamrSetDSRMPassword(rpc ndr.Invoker, userId uint32, encryptedNtOwfPassword *structures.ENCRYPTED_NT_OWF_PASSWORD) error

SamrSetDSRMPassword calls SamrSetDSRMPassword (opnum 66), setting the local Directory Services Restore Mode administrator password ([MS-SAMR] 3.1.5.13.7).

func SamrSetInformationAlias

func SamrSetInformationAlias(rpc ndr.Invoker, aliasHandle structures.SAMPR_HANDLE, aliasInformationClass structures.ALIAS_INFORMATION_CLASS, buffer structures.SAMPR_ALIAS_INFO_BUFFER) error

SamrSetInformationAlias calls SamrSetInformationAlias (opnum 29), updating attributes of an alias for the supplied information class ([MS-SAMR] 3.1.5.6.4).

func SamrSetInformationDomain

func SamrSetInformationDomain(rpc ndr.Invoker, domainHandle structures.SAMPR_HANDLE, class uint16, info structures.SAMPR_DOMAIN_INFO_BUFFER) error

SamrSetInformationDomain calls SamrSetInformationDomain (opnum 9), updating domain attributes selected by class ([MS-SAMR] 3.1.5.4.1). The information union’s Tag is set to match the class.

func SamrSetInformationGroup

func SamrSetInformationGroup(rpc ndr.Invoker, groupHandle structures.SAMPR_HANDLE, groupInformationClass structures.GROUP_INFORMATION_CLASS, buffer structures.SAMPR_GROUP_INFO_BUFFER) error

SamrSetInformationGroup calls SamrSetInformationGroup (opnum 21), updating attributes of a group object ([MS-SAMR] 3.1.5.6.2).

func SamrSetInformationUser

func SamrSetInformationUser(rpc ndr.Invoker, userHandle structures.SAMPR_HANDLE, userInformationClass structures.USER_INFORMATION_CLASS, buffer structures.SAMPR_USER_INFO_BUFFER) error

SamrSetInformationUser calls SamrSetInformationUser (opnum 37), updating attributes of a user object ([MS-SAMR] 3.1.5.6.5).

func SamrSetInformationUser2

func SamrSetInformationUser2(rpc ndr.Invoker, userHandle structures.SAMPR_HANDLE, userInformationClass structures.USER_INFORMATION_CLASS, buffer structures.SAMPR_USER_INFO_BUFFER) error

SamrSetInformationUser2 calls SamrSetInformationUser2 (opnum 58), updating attributes of a user object ([MS-SAMR] 3.1.5.6.5).

func SamrSetMemberAttributesOfGroup

func SamrSetMemberAttributesOfGroup(rpc ndr.Invoker, groupHandle structures.SAMPR_HANDLE, memberId uint32, attributes uint32) error

SamrSetMemberAttributesOfGroup calls SamrSetMemberAttributesOfGroup (opnum 26), setting the attributes of a member relationship in a group ([MS-SAMR] 3.1.5.8.4).

func SamrSetSecurityObject

func SamrSetSecurityObject(rpc ndr.Invoker, handle structures.SAMPR_HANDLE, securityInformation uint32, securityDescriptor structures.SAMPR_SR_SECURITY_DESCRIPTOR) error

SamrSetSecurityObject calls SamrSetSecurityObject (opnum 2), setting the security descriptor of the referenced object ([MS-SAMR] 3.1.5.12.2).

func SamrUnicodeChangePasswordUser2

func SamrUnicodeChangePasswordUser2(rpc ndr.Invoker, serverName *dtyp.RPC_UNICODE_STRING, userName dtyp.RPC_UNICODE_STRING, newPasswordEncryptedWithOldNt *structures.SAMPR_ENCRYPTED_USER_PASSWORD, oldNtOwfPasswordEncryptedWithNewNt *structures.ENCRYPTED_NT_OWF_PASSWORD, lmPresent uint8, newPasswordEncryptedWithOldLm *structures.SAMPR_ENCRYPTED_USER_PASSWORD, oldLmOwfPasswordEncryptedWithNewNt *structures.ENCRYPTED_LM_OWF_PASSWORD) error

SamrUnicodeChangePasswordUser2 calls SamrUnicodeChangePasswordUser2 (opnum 55), changing a user’s password using Unicode names and NT-based encryption (with optional LM material) ([MS-SAMR] 3.1.5.10.4).

func SamrUnicodeChangePasswordUser4

func SamrUnicodeChangePasswordUser4(rpc ndr.Invoker, serverName *dtyp.RPC_UNICODE_STRING, userName dtyp.RPC_UNICODE_STRING, encryptedPassword structures.SAMPR_ENCRYPTED_PASSWORD_AES) error

SamrUnicodeChangePasswordUser4 calls SamrUnicodeChangePasswordUser4 (opnum 73), changing a user’s password using an AES-encrypted password blob ([MS-SAMR] 3.1.5.10.5).

func SamrValidateComputerAccountReuseAttempt

func SamrValidateComputerAccountReuseAttempt(rpc ndr.Invoker, serverHandle structures.SAMPR_HANDLE, computerSid dtyp.RPC_SID) (int32, error)

SamrValidateComputerAccountReuseAttempt calls SamrValidateComputerAccountReuseAttempt (opnum 74), determining whether the caller is allowed to reuse the given computer account SID ([MS-SAMR] 3.1.5.13.5).

func SamrValidatePassword

func SamrValidatePassword(rpc ndr.Invoker, validationType structures.PASSWORD_POLICY_VALIDATION_TYPE, inputArg structures.SAM_VALIDATE_INPUT_ARG) (*structures.SAM_VALIDATE_OUTPUT_ARG, error)

SamrValidatePassword calls SamrValidatePassword (opnum 67), applying the account domain’s password policy to the supplied state ([MS-SAMR] 3.1.5.13.7.1). The caller sets inputArg.Tag to match validationType before calling.