functions
import "github.com/TheManticoreProject/Manticore/network/dcerpc/interfaces/12345778-1234-abcd-ef00-0123456789ab/0.0/functions"
Package functions implements the method stubs of the lsarpc interface (12345778-1234-abcd-ef00-0123456789ab v0.0). Each opnum lives in its own NN_MethodName.go file; this file holds the request/response shapes shared across more than one method.
The package depends on the interface descriptor (opnums, status codes) and on the structures package (the NDR types); neither depends on this one.
Index
- func LsarAddAccountRights(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, accountSid *dtyp.RPC_SID, userRights structures.LSAPR_USER_RIGHT_SET) error
- func LsarAddPrivilegesToAccount(rpc ndr.Invoker, accountHandle structures.LSAPR_HANDLE, privileges structures.LSAPR_PRIVILEGE_SET) error
- func LsarClose(rpc ndr.Invoker, handle structures.LSAPR_HANDLE) (structures.LSAPR_HANDLE, error)
- func LsarCreateAccount(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, accountSid *dtyp.RPC_SID, desiredAccess uint32) (structures.LSAPR_HANDLE, error)
- func LsarCreateSecret(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, secretName string, desiredAccess uint32) (structures.LSAPR_HANDLE, error)
- func LsarCreateTrustedDomain(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, trustedDomainInformation structures.LSAPR_TRUST_INFORMATION, desiredAccess uint32) (structures.LSAPR_HANDLE, error)
- func LsarCreateTrustedDomainEx(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, trustedDomainInformation structures.LSAPR_TRUSTED_DOMAIN_INFORMATION_EX, authenticationInformation structures.LSAPR_TRUSTED_DOMAIN_AUTH_INFORMATION, desiredAccess uint32) (structures.LSAPR_HANDLE, error)
- func LsarCreateTrustedDomainEx2(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, trustedDomainInformation structures.LSAPR_TRUSTED_DOMAIN_INFORMATION_EX, authenticationInformation structures.LSAPR_TRUSTED_DOMAIN_AUTH_INFORMATION_INTERNAL, desiredAccess uint32) (structures.LSAPR_HANDLE, error)
- func LsarDeleteObject(rpc ndr.Invoker, handle structures.LSAPR_HANDLE) (structures.LSAPR_HANDLE, error)
- func LsarDeleteTrustedDomain(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, trustedDomainSid *dtyp.RPC_SID) error
- func LsarEnumerateAccountRights(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, accountSid *dtyp.RPC_SID) (structures.LSAPR_USER_RIGHT_SET, error)
- func LsarEnumerateAccounts(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, enumerationContext uint32, preferedMaximumLength uint32) (structures.LSAPR_ACCOUNT_ENUM_BUFFER, uint32, error)
- func LsarEnumerateAccountsWithUserRight(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, userRight *dtyp.RPC_UNICODE_STRING) (structures.LSAPR_ACCOUNT_ENUM_BUFFER, error)
- func LsarEnumeratePrivileges(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, enumerationContext uint32, preferedMaximumLength uint32) (uint32, structures.LSAPR_PRIVILEGE_ENUM_BUFFER, error)
- func LsarEnumeratePrivilegesAccount(rpc ndr.Invoker, accountHandle structures.LSAPR_HANDLE) (*structures.LSAPR_PRIVILEGE_SET, error)
- func LsarEnumerateTrustedDomains(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, enumerationContext uint32, preferedMaximumLength uint32) (uint32, structures.LSAPR_TRUSTED_ENUM_BUFFER, error)
- func LsarEnumerateTrustedDomainsEx(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, enumerationContext uint32, preferedMaximumLength uint32) (uint32, structures.LSAPR_TRUSTED_ENUM_BUFFER_EX, error)
- func LsarGetSystemAccessAccount(rpc ndr.Invoker, accountHandle structures.LSAPR_HANDLE) (uint32, error)
- func LsarGetUserName(rpc ndr.Invoker) (*dtyp.RPC_UNICODE_STRING, *dtyp.RPC_UNICODE_STRING, error)
- func LsarLookupNames(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, names []dtyp.RPC_UNICODE_STRING, lookupLevel structures.LSAP_LOOKUP_LEVEL) (*structures.LSAPR_REFERENCED_DOMAIN_LIST, structures.LSAPR_TRANSLATED_SIDS, uint32, error)
- func LsarLookupNames2(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, names []dtyp.RPC_UNICODE_STRING, lookupLevel structures.LSAP_LOOKUP_LEVEL, lookupOptions uint32, clientRevision uint32) (*structures.LSAPR_REFERENCED_DOMAIN_LIST, structures.LSAPR_TRANSLATED_SIDS_EX, uint32, error)
- func LsarLookupNames3(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, names []dtyp.RPC_UNICODE_STRING, lookupLevel structures.LSAP_LOOKUP_LEVEL, lookupOptions uint32, clientRevision uint32) (*structures.LSAPR_REFERENCED_DOMAIN_LIST, structures.LSAPR_TRANSLATED_SIDS_EX2, uint32, error)
- func LsarLookupNames4(rpc ndr.Invoker, names []dtyp.RPC_UNICODE_STRING, lookupLevel structures.LSAP_LOOKUP_LEVEL, lookupOptions uint32, clientRevision uint32) (*structures.LSAPR_REFERENCED_DOMAIN_LIST, structures.LSAPR_TRANSLATED_SIDS_EX2, uint32, error)
- func LsarLookupPrivilegeDisplayName(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, name string, clientLanguage int16, clientSystemDefaultLanguage int16) (*dtyp.RPC_UNICODE_STRING, uint16, error)
- func LsarLookupPrivilegeName(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, value dtyp.LUID) (*dtyp.RPC_UNICODE_STRING, error)
- func LsarLookupPrivilegeValue(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, name string) (dtyp.LUID, error)
- func LsarLookupSids(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, sidEnumBuffer structures.LSAPR_SID_ENUM_BUFFER, lookupLevel structures.LSAP_LOOKUP_LEVEL) (*structures.LSAPR_REFERENCED_DOMAIN_LIST, structures.LSAPR_TRANSLATED_NAMES, uint32, error)
- func LsarLookupSids2(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, sidEnumBuffer structures.LSAPR_SID_ENUM_BUFFER, lookupLevel structures.LSAP_LOOKUP_LEVEL, lookupOptions uint32, clientRevision uint32) (*structures.LSAPR_REFERENCED_DOMAIN_LIST, structures.LSAPR_TRANSLATED_NAMES_EX, uint32, error)
- func LsarLookupSids3(rpc ndr.Invoker, sidEnumBuffer structures.LSAPR_SID_ENUM_BUFFER, lookupLevel structures.LSAP_LOOKUP_LEVEL, lookupOptions uint32, clientRevision uint32) (*structures.LSAPR_REFERENCED_DOMAIN_LIST, structures.LSAPR_TRANSLATED_NAMES_EX, uint32, error)
- func LsarOpenAccount(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, accountSid *dtyp.RPC_SID, desiredAccess uint32) (structures.LSAPR_HANDLE, error)
- func LsarOpenPolicy(rpc ndr.Invoker, desiredAccess uint32) (structures.LSAPR_HANDLE, error)
- func LsarOpenPolicy2(rpc ndr.Invoker, desiredAccess uint32) (structures.LSAPR_HANDLE, error)
- func LsarOpenSecret(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, secretName string, desiredAccess uint32) (structures.LSAPR_HANDLE, error)
- func LsarOpenTrustedDomain(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, trustedDomainSid *dtyp.RPC_SID, desiredAccess uint32) (structures.LSAPR_HANDLE, error)
- func LsarOpenTrustedDomainByName(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, trustedDomainName string, desiredAccess uint32) (structures.LSAPR_HANDLE, error)
- func LsarQueryDomainInformationPolicy(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, infoClass structures.POLICY_DOMAIN_INFORMATION_CLASS) (*structures.LSAPR_POLICY_DOMAIN_INFORMATION, error)
- func LsarQueryForestTrustInformation(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, trustedDomainName string, highestRecordType structures.LSA_FOREST_TRUST_RECORD_TYPE) (*structures.LSA_FOREST_TRUST_INFORMATION, error)
- func LsarQueryInfoTrustedDomain(rpc ndr.Invoker, trustedDomainHandle structures.LSAPR_HANDLE, infoClass structures.TRUSTED_INFORMATION_CLASS) (*structures.LSAPR_TRUSTED_DOMAIN_INFO, error)
- func LsarQueryInformationPolicy(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, infoClass structures.POLICY_INFORMATION_CLASS) (*structures.LSAPR_POLICY_INFORMATION, error)
- func LsarQueryInformationPolicy2(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, infoClass structures.POLICY_INFORMATION_CLASS) (*structures.LSAPR_POLICY_INFORMATION, error)
- func LsarQuerySecret(rpc ndr.Invoker, secretHandle structures.LSAPR_HANDLE) (encryptedCurrentValue *structures.LSAPR_CR_CIPHER_VALUE, currentValueSetTime *dtyp.LARGE_INTEGER, encryptedOldValue *structures.LSAPR_CR_CIPHER_VALUE, oldValueSetTime *dtyp.LARGE_INTEGER, err error)
- func LsarQuerySecurityObject(rpc ndr.Invoker, objectHandle structures.LSAPR_HANDLE, securityInformation uint32) (*structures.LSAPR_SR_SECURITY_DESCRIPTOR, error)
- func LsarQueryTrustedDomainInfo(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, trustedDomainSid *dtyp.RPC_SID, infoClass structures.TRUSTED_INFORMATION_CLASS) (*structures.LSAPR_TRUSTED_DOMAIN_INFO, error)
- func LsarQueryTrustedDomainInfoByName(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, trustedDomainName string, infoClass structures.TRUSTED_INFORMATION_CLASS) (*structures.LSAPR_TRUSTED_DOMAIN_INFO, error)
- func LsarRemoveAccountRights(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, accountSid *dtyp.RPC_SID, allRights uint8, userRights structures.LSAPR_USER_RIGHT_SET) error
- func LsarRemovePrivilegesFromAccount(rpc ndr.Invoker, accountHandle structures.LSAPR_HANDLE, allPrivileges uint8, privileges *structures.LSAPR_PRIVILEGE_SET) error
- func LsarRetrievePrivateData(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, keyName string) (*structures.LSAPR_CR_CIPHER_VALUE, error)
- func LsarSetDomainInformationPolicy(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, infoClass structures.POLICY_DOMAIN_INFORMATION_CLASS, info *structures.LSAPR_POLICY_DOMAIN_INFORMATION) error
- func LsarSetForestTrustInformation(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, trustedDomainName string, highestRecordType structures.LSA_FOREST_TRUST_RECORD_TYPE, forestTrustInfo structures.LSA_FOREST_TRUST_INFORMATION, checkOnly uint8) (*structures.LSA_FOREST_TRUST_COLLISION_INFORMATION, error)
- func LsarSetInformationPolicy(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, infoClass structures.POLICY_INFORMATION_CLASS, info structures.LSAPR_POLICY_INFORMATION) error
- func LsarSetInformationPolicy2(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, infoClass structures.POLICY_INFORMATION_CLASS, info structures.LSAPR_POLICY_INFORMATION) error
- func LsarSetInformationTrustedDomain(rpc ndr.Invoker, trustedDomainHandle structures.LSAPR_HANDLE, infoClass structures.TRUSTED_INFORMATION_CLASS, info structures.LSAPR_TRUSTED_DOMAIN_INFO) error
- func LsarSetSecret(rpc ndr.Invoker, secretHandle structures.LSAPR_HANDLE, encryptedCurrentValue, encryptedOldValue *structures.LSAPR_CR_CIPHER_VALUE) error
- func LsarSetSecurityObject(rpc ndr.Invoker, objectHandle structures.LSAPR_HANDLE, securityInformation uint32, securityDescriptor structures.LSAPR_SR_SECURITY_DESCRIPTOR) error
- func LsarSetSystemAccessAccount(rpc ndr.Invoker, accountHandle structures.LSAPR_HANDLE, systemAccess uint32) error
- func LsarSetTrustedDomainInfo(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, trustedDomainSid *dtyp.RPC_SID, infoClass structures.TRUSTED_INFORMATION_CLASS, info structures.LSAPR_TRUSTED_DOMAIN_INFO) error
- func LsarSetTrustedDomainInfoByName(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, trustedDomainName string, infoClass structures.TRUSTED_INFORMATION_CLASS, info structures.LSAPR_TRUSTED_DOMAIN_INFO) error
- func LsarStorePrivateData(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, keyName string, encryptedData *structures.LSAPR_CR_CIPHER_VALUE) error
func LsarAddAccountRights
func LsarAddAccountRights(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, accountSid *dtyp.RPC_SID, userRights structures.LSAPR_USER_RIGHT_SET) error
LsarAddAccountRights calls LsarAddAccountRights (opnum 37), granting the named user rights to the account identified by SID, creating the account if it does not exist ([MS-LSAD] 3.1.4.5.12).
func LsarAddPrivilegesToAccount
func LsarAddPrivilegesToAccount(rpc ndr.Invoker, accountHandle structures.LSAPR_HANDLE, privileges structures.LSAPR_PRIVILEGE_SET) error
LsarAddPrivilegesToAccount calls LsarAddPrivilegesToAccount (opnum 19), adding the given privileges to the account ([MS-LSAD] 3.1.4.5.5).
func LsarClose
func LsarClose(rpc ndr.Invoker, handle structures.LSAPR_HANDLE) (structures.LSAPR_HANDLE, error)
LsarClose calls LsarClose (opnum 0) on a handle. On success the server returns a zeroed handle, which is returned to the caller.
func LsarCreateAccount
func LsarCreateAccount(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, accountSid *dtyp.RPC_SID, desiredAccess uint32) (structures.LSAPR_HANDLE, error)
LsarCreateAccount calls LsarCreateAccount (opnum 10), creating an account object for the given SID and returning a handle to it ([MS-LSAD] 3.1.4.5.1).
func LsarCreateSecret
func LsarCreateSecret(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, secretName string, desiredAccess uint32) (structures.LSAPR_HANDLE, error)
LsarCreateSecret calls LsarCreateSecret (opnum 16) and returns a handle to the newly created secret object ([MS-LSAD] 3.1.4.6.1).
func LsarCreateTrustedDomain
func LsarCreateTrustedDomain(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, trustedDomainInformation structures.LSAPR_TRUST_INFORMATION, desiredAccess uint32) (structures.LSAPR_HANDLE, error)
LsarCreateTrustedDomain calls LsarCreateTrustedDomain (opnum 12), creating a trusted domain object from the supplied trust information and returning a handle to it.
func LsarCreateTrustedDomainEx
func LsarCreateTrustedDomainEx(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, trustedDomainInformation structures.LSAPR_TRUSTED_DOMAIN_INFORMATION_EX, authenticationInformation structures.LSAPR_TRUSTED_DOMAIN_AUTH_INFORMATION, desiredAccess uint32) (structures.LSAPR_HANDLE, error)
LsarCreateTrustedDomainEx calls LsarCreateTrustedDomainEx (opnum 51), creating a trusted domain object from the supplied extended trust and authentication information and returning a handle to it.
func LsarCreateTrustedDomainEx2
func LsarCreateTrustedDomainEx2(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, trustedDomainInformation structures.LSAPR_TRUSTED_DOMAIN_INFORMATION_EX, authenticationInformation structures.LSAPR_TRUSTED_DOMAIN_AUTH_INFORMATION_INTERNAL, desiredAccess uint32) (structures.LSAPR_HANDLE, error)
LsarCreateTrustedDomainEx2 calls LsarCreateTrustedDomainEx2 (opnum 59), creating a trusted domain object from the supplied extended trust and internal (encrypted) authentication information and returning a handle to it.
func LsarDeleteObject
func LsarDeleteObject(rpc ndr.Invoker, handle structures.LSAPR_HANDLE) (structures.LSAPR_HANDLE, error)
LsarDeleteObject calls LsarDeleteObject (opnum 34), deleting the object referenced by the handle. On success the server returns a zeroed handle, which is returned to the caller.
func LsarDeleteTrustedDomain
func LsarDeleteTrustedDomain(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, trustedDomainSid *dtyp.RPC_SID) error
LsarDeleteTrustedDomain calls LsarDeleteTrustedDomain (opnum 41), deleting the trusted domain object identified by its SID.
func LsarEnumerateAccountRights
func LsarEnumerateAccountRights(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, accountSid *dtyp.RPC_SID) (structures.LSAPR_USER_RIGHT_SET, error)
LsarEnumerateAccountRights calls LsarEnumerateAccountRights (opnum 36), returning the set of user-right names held by the account identified by SID ([MS-LSAD] 3.1.4.5.11).
func LsarEnumerateAccounts
func LsarEnumerateAccounts(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, enumerationContext uint32, preferedMaximumLength uint32) (structures.LSAPR_ACCOUNT_ENUM_BUFFER, uint32, error)
LsarEnumerateAccounts calls LsarEnumerateAccounts (opnum 11), returning a page of account SIDs known to the policy ([MS-LSAD] 3.1.4.5.2). The enumeration is stateful: pass the returned context back on the next call to continue, starting from 0. The server returns STATUS_MORE_ENTRIES while pages remain, which is not treated as an error; the returned context and buffer are valid in that case. The updated context is returned alongside the buffer.
func LsarEnumerateAccountsWithUserRight
func LsarEnumerateAccountsWithUserRight(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, userRight *dtyp.RPC_UNICODE_STRING) (structures.LSAPR_ACCOUNT_ENUM_BUFFER, error)
LsarEnumerateAccountsWithUserRight calls LsarEnumerateAccountsWithUserRight (opnum 35), returning the SIDs of accounts that hold the named user right; a nil userRight enumerates accounts holding any right ([MS-LSAD] 3.1.4.5.10).
func LsarEnumeratePrivileges
func LsarEnumeratePrivileges(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, enumerationContext uint32, preferedMaximumLength uint32) (uint32, structures.LSAPR_PRIVILEGE_ENUM_BUFFER, error)
LsarEnumeratePrivileges calls LsarEnumeratePrivileges (opnum 2), enumerating the privileges known to the server ([MS-LSAD] 3.1.4.5.10). The caller passes the current enumeration context (0 to start) and the preferred maximum buffer length; it receives the updated context and the buffer of privilege definitions.
func LsarEnumeratePrivilegesAccount
func LsarEnumeratePrivilegesAccount(rpc ndr.Invoker, accountHandle structures.LSAPR_HANDLE) (*structures.LSAPR_PRIVILEGE_SET, error)
LsarEnumeratePrivilegesAccount calls LsarEnumeratePrivilegesAccount (opnum 18), returning the set of privileges held by the account ([MS-LSAD] 3.1.4.5.4).
func LsarEnumerateTrustedDomains
func LsarEnumerateTrustedDomains(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, enumerationContext uint32, preferedMaximumLength uint32) (uint32, structures.LSAPR_TRUSTED_ENUM_BUFFER, error)
LsarEnumerateTrustedDomains calls LsarEnumerateTrustedDomains (opnum 13), returning a page of trusted domains together with the updated enumeration context to resume from. The server returns STATUS_SUCCESS or STATUS_MORE_ENTRIES while entries remain and STATUS_NO_MORE_ENTRIES once the enumeration is exhausted; all three are treated as success here, and the caller continues until STATUS_NO_MORE_ENTRIES.
func LsarEnumerateTrustedDomainsEx
func LsarEnumerateTrustedDomainsEx(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, enumerationContext uint32, preferedMaximumLength uint32) (uint32, structures.LSAPR_TRUSTED_ENUM_BUFFER_EX, error)
LsarEnumerateTrustedDomainsEx calls LsarEnumerateTrustedDomainsEx (opnum 50), returning a page of extended trusted-domain information together with the updated enumeration context to resume from. The server returns STATUS_SUCCESS or STATUS_MORE_ENTRIES while entries remain and STATUS_NO_MORE_ENTRIES once the enumeration is exhausted; all three are treated as success here, and the caller continues until STATUS_NO_MORE_ENTRIES.
func LsarGetSystemAccessAccount
func LsarGetSystemAccessAccount(rpc ndr.Invoker, accountHandle structures.LSAPR_HANDLE) (uint32, error)
LsarGetSystemAccessAccount calls LsarGetSystemAccessAccount (opnum 23) and returns the system-access flags of the account ([MS-LSAD] 2.2.1.2 ACCESS_MASK for system access).
func LsarGetUserName
func LsarGetUserName(rpc ndr.Invoker) (*dtyp.RPC_UNICODE_STRING, *dtyp.RPC_UNICODE_STRING, error)
LsarGetUserName calls LsarGetUserName (opnum 45) to retrieve the name (and domain) of the security principal that established the RPC connection ([MS-LSAT] 3.1.4.2). SystemName is sent NULL to target the local system; UserName and DomainName are sent NULL so the server allocates the returned strings.
func LsarLookupNames
func LsarLookupNames(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, names []dtyp.RPC_UNICODE_STRING, lookupLevel structures.LSAP_LOOKUP_LEVEL) (*structures.LSAPR_REFERENCED_DOMAIN_LIST, structures.LSAPR_TRANSLATED_SIDS, uint32, error)
LsarLookupNames calls LsarLookupNames (opnum 14) to translate a set of account names into SIDs ([MS-LSAT] 3.1.4.5). The server may return STATUS_SOME_NOT_MAPPED or STATUS_NONE_MAPPED when not all names resolved; in those cases the (partial) results are still returned without error, so callers should inspect the translated SIDs and mapped count. Any other non-success status is reported as an error.
func LsarLookupNames2
func LsarLookupNames2(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, names []dtyp.RPC_UNICODE_STRING, lookupLevel structures.LSAP_LOOKUP_LEVEL, lookupOptions uint32, clientRevision uint32) (*structures.LSAPR_REFERENCED_DOMAIN_LIST, structures.LSAPR_TRANSLATED_SIDS_EX, uint32, error)
LsarLookupNames2 calls LsarLookupNames2 (opnum 58) to translate a set of account names into SIDs with extended results ([MS-LSAT] 3.1.4.6). The server may return STATUS_SOME_NOT_MAPPED or STATUS_NONE_MAPPED when not all names resolved; in those cases the (partial) results are still returned without error. Any other non-success status is reported as an error.
func LsarLookupNames3
func LsarLookupNames3(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, names []dtyp.RPC_UNICODE_STRING, lookupLevel structures.LSAP_LOOKUP_LEVEL, lookupOptions uint32, clientRevision uint32) (*structures.LSAPR_REFERENCED_DOMAIN_LIST, structures.LSAPR_TRANSLATED_SIDS_EX2, uint32, error)
LsarLookupNames3 calls LsarLookupNames3 (opnum 68) to translate a set of account names into SIDs with extended (EX2) results ([MS-LSAT] 3.1.4.5 / 3.1.4.6 variants). The server may return STATUS_SOME_NOT_MAPPED or STATUS_NONE_MAPPED when not all names resolved; in those cases the (partial) results are still returned without error. Any other non-success status is reported as an error.
func LsarLookupNames4
func LsarLookupNames4(rpc ndr.Invoker, names []dtyp.RPC_UNICODE_STRING, lookupLevel structures.LSAP_LOOKUP_LEVEL, lookupOptions uint32, clientRevision uint32) (*structures.LSAPR_REFERENCED_DOMAIN_LIST, structures.LSAPR_TRANSLATED_SIDS_EX2, uint32, error)
LsarLookupNames4 calls LsarLookupNames4 (opnum 77) to translate a set of account names into SIDs with extended (EX2) results, without a policy handle ([MS-LSAT] 3.1.4.4). The leading handle_t binding handle is supplied implicitly by the RPC runtime and is not part of the marshalled request. The server may return STATUS_SOME_NOT_MAPPED or STATUS_NONE_MAPPED when not all names resolved; in those cases the (partial) results are still returned without error. Any other non-success status is reported as an error.
func LsarLookupPrivilegeDisplayName
func LsarLookupPrivilegeDisplayName(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, name string, clientLanguage int16, clientSystemDefaultLanguage int16) (*dtyp.RPC_UNICODE_STRING, uint16, error)
LsarLookupPrivilegeDisplayName calls LsarLookupPrivilegeDisplayName (opnum 33), mapping a privilege name to its localized display name ([MS-LSAD] 3.1.4.5.11). It returns the display name and the language identifier the server actually used.
func LsarLookupPrivilegeName
func LsarLookupPrivilegeName(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, value dtyp.LUID) (*dtyp.RPC_UNICODE_STRING, error)
LsarLookupPrivilegeName calls LsarLookupPrivilegeName (opnum 32), mapping a privilege LUID to its name ([MS-LSAD] 3.1.4.5.12).
func LsarLookupPrivilegeValue
func LsarLookupPrivilegeValue(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, name string) (dtyp.LUID, error)
LsarLookupPrivilegeValue calls LsarLookupPrivilegeValue (opnum 31), mapping a privilege name to its locally unique identifier ([MS-LSAD] 3.1.4.5.13).
func LsarLookupSids
func LsarLookupSids(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, sidEnumBuffer structures.LSAPR_SID_ENUM_BUFFER, lookupLevel structures.LSAP_LOOKUP_LEVEL) (*structures.LSAPR_REFERENCED_DOMAIN_LIST, structures.LSAPR_TRANSLATED_NAMES, uint32, error)
LsarLookupSids calls LsarLookupSids (opnum 15) to translate a set of SIDs into account names ([MS-LSAT] 3.1.4.7). The server may return STATUS_SOME_NOT_MAPPED or STATUS_NONE_MAPPED when not all SIDs resolved; in those cases the (partial) results are still returned without error, so callers should inspect the translated names and mapped count. Any other non-success status is reported as an error.
func LsarLookupSids2
func LsarLookupSids2(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, sidEnumBuffer structures.LSAPR_SID_ENUM_BUFFER, lookupLevel structures.LSAP_LOOKUP_LEVEL, lookupOptions uint32, clientRevision uint32) (*structures.LSAPR_REFERENCED_DOMAIN_LIST, structures.LSAPR_TRANSLATED_NAMES_EX, uint32, error)
LsarLookupSids2 calls LsarLookupSids2 (opnum 57) to translate a set of SIDs into account names with extended results ([MS-LSAT] 3.1.4.9). The server may return STATUS_SOME_NOT_MAPPED or STATUS_NONE_MAPPED when not all SIDs resolved; in those cases the (partial) results are still returned without error. Any other non-success status is reported as an error.
func LsarLookupSids3
func LsarLookupSids3(rpc ndr.Invoker, sidEnumBuffer structures.LSAPR_SID_ENUM_BUFFER, lookupLevel structures.LSAP_LOOKUP_LEVEL, lookupOptions uint32, clientRevision uint32) (*structures.LSAPR_REFERENCED_DOMAIN_LIST, structures.LSAPR_TRANSLATED_NAMES_EX, uint32, error)
LsarLookupSids3 calls LsarLookupSids3 (opnum 76) to translate a set of SIDs into account names with extended results, without a policy handle ([MS-LSAT] 3.1.4.10). The leading handle_t binding handle is supplied implicitly by the RPC runtime and is not part of the marshalled request. The server may return STATUS_SOME_NOT_MAPPED or STATUS_NONE_MAPPED when not all SIDs resolved; in those cases the (partial) results are still returned without error. Any other non-success status is reported as an error.
func LsarOpenAccount
func LsarOpenAccount(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, accountSid *dtyp.RPC_SID, desiredAccess uint32) (structures.LSAPR_HANDLE, error)
LsarOpenAccount calls LsarOpenAccount (opnum 17), opening the account object identified by the given SID and returning a handle to it ([MS-LSAD] 3.1.4.5.3).
func LsarOpenPolicy
func LsarOpenPolicy(rpc ndr.Invoker, desiredAccess uint32) (structures.LSAPR_HANDLE, error)
LsarOpenPolicy calls LsarOpenPolicy (opnum 6) and returns a policy handle. Prefer LsarOpenPolicy2 (opnum 44) against modern servers; this is the legacy form.
func LsarOpenPolicy2
func LsarOpenPolicy2(rpc ndr.Invoker, desiredAccess uint32) (structures.LSAPR_HANDLE, error)
LsarOpenPolicy2 calls LsarOpenPolicy2 (opnum 44) and returns a policy handle.
func LsarOpenSecret
func LsarOpenSecret(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, secretName string, desiredAccess uint32) (structures.LSAPR_HANDLE, error)
LsarOpenSecret calls LsarOpenSecret (opnum 28) and returns a handle to the named secret object ([MS-LSAD] 3.1.4.6.2).
func LsarOpenTrustedDomain
func LsarOpenTrustedDomain(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, trustedDomainSid *dtyp.RPC_SID, desiredAccess uint32) (structures.LSAPR_HANDLE, error)
LsarOpenTrustedDomain calls LsarOpenTrustedDomain (opnum 25), opening the trusted domain object identified by its SID and returning a handle to it.
func LsarOpenTrustedDomainByName
func LsarOpenTrustedDomainByName(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, trustedDomainName string, desiredAccess uint32) (structures.LSAPR_HANDLE, error)
LsarOpenTrustedDomainByName calls LsarOpenTrustedDomainByName (opnum 55), opening the trusted domain object identified by name and returning a handle to it.
func LsarQueryDomainInformationPolicy
func LsarQueryDomainInformationPolicy(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, infoClass structures.POLICY_DOMAIN_INFORMATION_CLASS) (*structures.LSAPR_POLICY_DOMAIN_INFORMATION, error)
LsarQueryDomainInformationPolicy calls LsarQueryDomainInformationPolicy (opnum 53), returning the requested policy domain information class ([MS-LSAD] 3.1.4.4.7).
func LsarQueryForestTrustInformation
func LsarQueryForestTrustInformation(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, trustedDomainName string, highestRecordType structures.LSA_FOREST_TRUST_RECORD_TYPE) (*structures.LSA_FOREST_TRUST_INFORMATION, error)
LsarQueryForestTrustInformation calls LsarQueryForestTrustInformation (opnum 73) and returns the forest-trust information for the named trusted domain ([MS-LSAD] 3.1.4.7.18). The returned pointer may be nil if the server did not return any information.
func LsarQueryInfoTrustedDomain
func LsarQueryInfoTrustedDomain(rpc ndr.Invoker, trustedDomainHandle structures.LSAPR_HANDLE, infoClass structures.TRUSTED_INFORMATION_CLASS) (*structures.LSAPR_TRUSTED_DOMAIN_INFO, error)
LsarQueryInfoTrustedDomain calls LsarQueryInfoTrustedDomain (opnum 26), returning the requested trusted-domain information class ([MS-LSAD] 3.1.4.7.4).
func LsarQueryInformationPolicy
func LsarQueryInformationPolicy(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, infoClass structures.POLICY_INFORMATION_CLASS) (*structures.LSAPR_POLICY_INFORMATION, error)
LsarQueryInformationPolicy calls LsarQueryInformationPolicy (opnum 7), returning the requested policy information class ([MS-LSAD] 3.1.4.4.4).
func LsarQueryInformationPolicy2
func LsarQueryInformationPolicy2(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, infoClass structures.POLICY_INFORMATION_CLASS) (*structures.LSAPR_POLICY_INFORMATION, error)
LsarQueryInformationPolicy2 calls LsarQueryInformationPolicy2 (opnum 46), returning the requested policy information class ([MS-LSAD] 3.1.4.4.3).
func LsarQuerySecret
func LsarQuerySecret(rpc ndr.Invoker, secretHandle structures.LSAPR_HANDLE) (encryptedCurrentValue *structures.LSAPR_CR_CIPHER_VALUE, currentValueSetTime *dtyp.LARGE_INTEGER, encryptedOldValue *structures.LSAPR_CR_CIPHER_VALUE, oldValueSetTime *dtyp.LARGE_INTEGER, err error)
LsarQuerySecret calls LsarQuerySecret (opnum 30) and returns the current and old encrypted values of the secret together with their set times ([MS-LSAD] 3.1.4.6.5). Any output may be nil if the server did not return that value.
func LsarQuerySecurityObject
func LsarQuerySecurityObject(rpc ndr.Invoker, objectHandle structures.LSAPR_HANDLE, securityInformation uint32) (*structures.LSAPR_SR_SECURITY_DESCRIPTOR, error)
LsarQuerySecurityObject calls LsarQuerySecurityObject (opnum 3) to retrieve the security descriptor of an LSA object ([MS-LSAD] 3.1.4.4.1). securityInformation is a SECURITY_INFORMATION bitmask selecting which components of the descriptor to return.
func LsarQueryTrustedDomainInfo
func LsarQueryTrustedDomainInfo(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, trustedDomainSid *dtyp.RPC_SID, infoClass structures.TRUSTED_INFORMATION_CLASS) (*structures.LSAPR_TRUSTED_DOMAIN_INFO, error)
LsarQueryTrustedDomainInfo calls LsarQueryTrustedDomainInfo (opnum 39), returning the requested trusted-domain information class for the domain identified by SID ([MS-LSAD] 3.1.4.7.2).
func LsarQueryTrustedDomainInfoByName
func LsarQueryTrustedDomainInfoByName(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, trustedDomainName string, infoClass structures.TRUSTED_INFORMATION_CLASS) (*structures.LSAPR_TRUSTED_DOMAIN_INFO, error)
LsarQueryTrustedDomainInfoByName calls LsarQueryTrustedDomainInfoByName (opnum 48), returning the requested trusted-domain information class for the domain identified by name ([MS-LSAD] 3.1.4.7.6).
func LsarRemoveAccountRights
func LsarRemoveAccountRights(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, accountSid *dtyp.RPC_SID, allRights uint8, userRights structures.LSAPR_USER_RIGHT_SET) error
LsarRemoveAccountRights calls LsarRemoveAccountRights (opnum 38), revoking the named user rights from the account identified by SID; if allRights is nonzero, every right is removed and userRights is ignored ([MS-LSAD] 3.1.4.5.13).
func LsarRemovePrivilegesFromAccount
func LsarRemovePrivilegesFromAccount(rpc ndr.Invoker, accountHandle structures.LSAPR_HANDLE, allPrivileges uint8, privileges *structures.LSAPR_PRIVILEGE_SET) error
LsarRemovePrivilegesFromAccount calls LsarRemovePrivilegesFromAccount (opnum 20), removing the given privileges from the account; if allPrivileges is nonzero, every privilege is removed and privileges is ignored ([MS-LSAD] 3.1.4.5.6).
func LsarRetrievePrivateData
func LsarRetrievePrivateData(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, keyName string) (*structures.LSAPR_CR_CIPHER_VALUE, error)
LsarRetrievePrivateData calls LsarRetrievePrivateData (opnum 43) and returns the encrypted data stored under the given key name ([MS-LSAD] 3.1.4.7.2). The result may be nil if the server did not return a value.
func LsarSetDomainInformationPolicy
func LsarSetDomainInformationPolicy(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, infoClass structures.POLICY_DOMAIN_INFORMATION_CLASS, info *structures.LSAPR_POLICY_DOMAIN_INFORMATION) error
LsarSetDomainInformationPolicy calls LsarSetDomainInformationPolicy (opnum 54), setting the policy domain information for the given class ([MS-LSAD] 3.1.4.4.8). When info is non-nil its union discriminant is set to the information class before marshalling.
func LsarSetForestTrustInformation
func LsarSetForestTrustInformation(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, trustedDomainName string, highestRecordType structures.LSA_FOREST_TRUST_RECORD_TYPE, forestTrustInfo structures.LSA_FOREST_TRUST_INFORMATION, checkOnly uint8) (*structures.LSA_FOREST_TRUST_COLLISION_INFORMATION, error)
LsarSetForestTrustInformation calls LsarSetForestTrustInformation (opnum 74), establishing the forest-trust information for the named trusted domain ([MS-LSAD] 3.1.4.7.16). When checkOnly is true the server only validates the information; the returned pointer holds any collision information and may be nil when there are no collisions.
func LsarSetInformationPolicy
func LsarSetInformationPolicy(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, infoClass structures.POLICY_INFORMATION_CLASS, info structures.LSAPR_POLICY_INFORMATION) error
LsarSetInformationPolicy calls LsarSetInformationPolicy (opnum 8), setting the policy information for the given class ([MS-LSAD] 3.1.4.4.6). The union discriminant is set to the information class before marshalling.
func LsarSetInformationPolicy2
func LsarSetInformationPolicy2(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, infoClass structures.POLICY_INFORMATION_CLASS, info structures.LSAPR_POLICY_INFORMATION) error
LsarSetInformationPolicy2 calls LsarSetInformationPolicy2 (opnum 47), setting the policy information for the given class ([MS-LSAD] 3.1.4.4.5). The union discriminant is set to the information class before marshalling.
func LsarSetInformationTrustedDomain
func LsarSetInformationTrustedDomain(rpc ndr.Invoker, trustedDomainHandle structures.LSAPR_HANDLE, infoClass structures.TRUSTED_INFORMATION_CLASS, info structures.LSAPR_TRUSTED_DOMAIN_INFO) error
LsarSetInformationTrustedDomain calls LsarSetInformationTrustedDomain (opnum 27), setting the trusted-domain information for the given class ([MS-LSAD] 3.1.4.7.5). The union discriminant is set to the information class before marshalling.
func LsarSetSecret
func LsarSetSecret(rpc ndr.Invoker, secretHandle structures.LSAPR_HANDLE, encryptedCurrentValue, encryptedOldValue *structures.LSAPR_CR_CIPHER_VALUE) error
LsarSetSecret calls LsarSetSecret (opnum 29), setting the current and old encrypted values of the secret referenced by the handle ([MS-LSAD] 3.1.4.6.4).
func LsarSetSecurityObject
func LsarSetSecurityObject(rpc ndr.Invoker, objectHandle structures.LSAPR_HANDLE, securityInformation uint32, securityDescriptor structures.LSAPR_SR_SECURITY_DESCRIPTOR) error
LsarSetSecurityObject calls LsarSetSecurityObject (opnum 4) to set the security descriptor of an LSA object ([MS-LSAD] 3.1.4.4.2). securityInformation is a SECURITY_INFORMATION bitmask selecting which components of the descriptor to apply.
func LsarSetSystemAccessAccount
func LsarSetSystemAccessAccount(rpc ndr.Invoker, accountHandle structures.LSAPR_HANDLE, systemAccess uint32) error
LsarSetSystemAccessAccount calls LsarSetSystemAccessAccount (opnum 24), setting the system-access flags of the account.
func LsarSetTrustedDomainInfo
func LsarSetTrustedDomainInfo(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, trustedDomainSid *dtyp.RPC_SID, infoClass structures.TRUSTED_INFORMATION_CLASS, info structures.LSAPR_TRUSTED_DOMAIN_INFO) error
LsarSetTrustedDomainInfo calls LsarSetTrustedDomainInfo (opnum 40), setting the trusted-domain information for the domain identified by SID ([MS-LSAD] 3.1.4.7.3). The union discriminant is set to the information class before marshalling.
func LsarSetTrustedDomainInfoByName
func LsarSetTrustedDomainInfoByName(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, trustedDomainName string, infoClass structures.TRUSTED_INFORMATION_CLASS, info structures.LSAPR_TRUSTED_DOMAIN_INFO) error
LsarSetTrustedDomainInfoByName calls LsarSetTrustedDomainInfoByName (opnum 49), setting the trusted-domain information for the domain identified by name ([MS-LSAD] 3.1.4.7.7). The union discriminant is set to the information class before marshalling.
func LsarStorePrivateData
func LsarStorePrivateData(rpc ndr.Invoker, policyHandle structures.LSAPR_HANDLE, keyName string, encryptedData *structures.LSAPR_CR_CIPHER_VALUE) error
LsarStorePrivateData calls LsarStorePrivateData (opnum 42), storing the encrypted data under the given key name ([MS-LSAD] 3.1.4.7.1).