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 mslsad.LSAPR_HANDLE, accountSid *msdtyp.RPC_SID, userRights mslsad.LSAPR_USER_RIGHT_SET) error
- func LsarAddPrivilegesToAccount(rpc ndr.Invoker, accountHandle mslsad.LSAPR_HANDLE, privileges mslsad.LSAPR_PRIVILEGE_SET) error
- func LsarClose(rpc ndr.Invoker, handle mslsad.LSAPR_HANDLE) (mslsad.LSAPR_HANDLE, error)
- func LsarCreateAccount(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, accountSid *msdtyp.RPC_SID, desiredAccess uint32) (mslsad.LSAPR_HANDLE, error)
- func LsarCreateSecret(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, secretName string, desiredAccess uint32) (mslsad.LSAPR_HANDLE, error)
- func LsarCreateSecret2(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, encryptedSecretName mslsad.LSAPR_AES_CIPHER_VALUE, desiredAccess ndr.DWORD) (SecretHandle mslsad.LSAPR_HANDLE, err error)
- func LsarCreateTrustedDomain(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, trustedDomainInformation mslsad.LSAPR_TRUST_INFORMATION, desiredAccess uint32) (mslsad.LSAPR_HANDLE, error)
- func LsarCreateTrustedDomainEx(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, trustedDomainInformation mslsad.LSAPR_TRUSTED_DOMAIN_INFORMATION_EX, authenticationInformation mslsad.LSAPR_TRUSTED_DOMAIN_AUTH_INFORMATION, desiredAccess uint32) (mslsad.LSAPR_HANDLE, error)
- func LsarCreateTrustedDomainEx2(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, trustedDomainInformation mslsad.LSAPR_TRUSTED_DOMAIN_INFORMATION_EX, authenticationInformation mslsad.LSAPR_TRUSTED_DOMAIN_AUTH_INFORMATION_INTERNAL, desiredAccess uint32) (mslsad.LSAPR_HANDLE, error)
- func LsarCreateTrustedDomainEx3(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, trustedDomainInformation mslsad.LSAPR_TRUSTED_DOMAIN_INFORMATION_EX, authenticationInformation mslsad.LSAPR_TRUSTED_DOMAIN_AUTH_INFORMATION_INTERNAL_AES, desiredAccess ndr.DWORD) (TrustedDomainHandle mslsad.LSAPR_HANDLE, err error)
- func LsarDeleteObject(rpc ndr.Invoker, handle mslsad.LSAPR_HANDLE) (mslsad.LSAPR_HANDLE, error)
- func LsarDeleteTrustedDomain(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, trustedDomainSid *msdtyp.RPC_SID) error
- func LsarEnumerateAccountRights(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, accountSid *msdtyp.RPC_SID) (mslsad.LSAPR_USER_RIGHT_SET, error)
- func LsarEnumerateAccounts(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, enumerationContext uint32, preferedMaximumLength uint32) (mslsad.LSAPR_ACCOUNT_ENUM_BUFFER, uint32, error)
- func LsarEnumerateAccountsWithUserRight(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, userRight *msdtyp.RPC_UNICODE_STRING) (mslsad.LSAPR_ACCOUNT_ENUM_BUFFER, error)
- func LsarEnumeratePrivileges(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, enumerationContext uint32, preferedMaximumLength uint32) (uint32, mslsad.LSAPR_PRIVILEGE_ENUM_BUFFER, error)
- func LsarEnumeratePrivilegesAccount(rpc ndr.Invoker, accountHandle mslsad.LSAPR_HANDLE) (*mslsad.LSAPR_PRIVILEGE_SET, error)
- func LsarEnumerateTrustedDomains(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, enumerationContext uint32, preferedMaximumLength uint32) (uint32, mslsad.LSAPR_TRUSTED_ENUM_BUFFER, error)
- func LsarEnumerateTrustedDomainsEx(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, enumerationContext uint32, preferedMaximumLength uint32) (uint32, mslsad.LSAPR_TRUSTED_ENUM_BUFFER_EX, error)
- func LsarGetSystemAccessAccount(rpc ndr.Invoker, accountHandle mslsad.LSAPR_HANDLE) (uint32, error)
- func LsarGetUserName(rpc ndr.Invoker) (*msdtyp.RPC_UNICODE_STRING, *msdtyp.RPC_UNICODE_STRING, error)
- func LsarLookupNames(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, names []msdtyp.RPC_UNICODE_STRING, lookupLevel mslsat.LSAP_LOOKUP_LEVEL) (*mslsat.LSAPR_REFERENCED_DOMAIN_LIST, mslsat.LSAPR_TRANSLATED_SIDS, uint32, error)
- func LsarLookupNames2(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, names []msdtyp.RPC_UNICODE_STRING, lookupLevel mslsat.LSAP_LOOKUP_LEVEL, lookupOptions uint32, clientRevision uint32) (*mslsat.LSAPR_REFERENCED_DOMAIN_LIST, mslsat.LSAPR_TRANSLATED_SIDS_EX, uint32, error)
- func LsarLookupNames3(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, names []msdtyp.RPC_UNICODE_STRING, lookupLevel mslsat.LSAP_LOOKUP_LEVEL, lookupOptions uint32, clientRevision uint32) (*mslsat.LSAPR_REFERENCED_DOMAIN_LIST, mslsat.LSAPR_TRANSLATED_SIDS_EX2, uint32, error)
- func LsarLookupNames4(rpc ndr.Invoker, names []msdtyp.RPC_UNICODE_STRING, lookupLevel mslsat.LSAP_LOOKUP_LEVEL, lookupOptions uint32, clientRevision uint32) (*mslsat.LSAPR_REFERENCED_DOMAIN_LIST, mslsat.LSAPR_TRANSLATED_SIDS_EX2, uint32, error)
- func LsarLookupPrivilegeDisplayName(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, name string, clientLanguage int16, clientSystemDefaultLanguage int16) (*msdtyp.RPC_UNICODE_STRING, uint16, error)
- func LsarLookupPrivilegeName(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, value msdtyp.LUID) (*msdtyp.RPC_UNICODE_STRING, error)
- func LsarLookupPrivilegeValue(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, name string) (msdtyp.LUID, error)
- func LsarLookupSids(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, sidEnumBuffer mslsat.LSAPR_SID_ENUM_BUFFER, lookupLevel mslsat.LSAP_LOOKUP_LEVEL) (*mslsat.LSAPR_REFERENCED_DOMAIN_LIST, mslsat.LSAPR_TRANSLATED_NAMES, uint32, error)
- func LsarLookupSids2(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, sidEnumBuffer mslsat.LSAPR_SID_ENUM_BUFFER, lookupLevel mslsat.LSAP_LOOKUP_LEVEL, lookupOptions uint32, clientRevision uint32) (*mslsat.LSAPR_REFERENCED_DOMAIN_LIST, mslsat.LSAPR_TRANSLATED_NAMES_EX, uint32, error)
- func LsarLookupSids3(rpc ndr.Invoker, sidEnumBuffer mslsat.LSAPR_SID_ENUM_BUFFER, lookupLevel mslsat.LSAP_LOOKUP_LEVEL, lookupOptions uint32, clientRevision uint32) (*mslsat.LSAPR_REFERENCED_DOMAIN_LIST, mslsat.LSAPR_TRANSLATED_NAMES_EX, uint32, error)
- func LsarOpenAccount(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, accountSid *msdtyp.RPC_SID, desiredAccess uint32) (mslsad.LSAPR_HANDLE, error)
- func LsarOpenPolicy(rpc ndr.Invoker, desiredAccess uint32) (mslsad.LSAPR_HANDLE, error)
- func LsarOpenPolicy2(rpc ndr.Invoker, desiredAccess uint32) (mslsad.LSAPR_HANDLE, error)
- func LsarOpenPolicy3(rpc ndr.Invoker, systemName *ndr.WSTR, objectAttributes mslsad.LSAPR_OBJECT_ATTRIBUTES, desiredAccess ndr.DWORD, inVersion ndr.DWORD, inRevisionInfo mslsad.LSAPR_REVISION_INFO) (OutVersion ndr.DWORD, OutRevisionInfo mslsad.LSAPR_REVISION_INFO, PolicyHandle mslsad.LSAPR_HANDLE, err error)
- func LsarOpenPolicyWithCreds(rpc ndr.Invoker, objectAttributes mslsad.LSAPR_OBJECT_ATTRIBUTES, desiredAccess ndr.DWORD, inVersion ndr.DWORD, inRevisionInfo mslsad.LSAPR_REVISION_INFO) (OutVersion ndr.DWORD, OutRevisionInfo mslsad.LSAPR_REVISION_INFO, PolicyHandle mslsad.LSAPR_HANDLE, err error)
- func LsarOpenSecret(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, secretName string, desiredAccess uint32) (mslsad.LSAPR_HANDLE, error)
- func LsarOpenSecret2(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, encryptedSecretName mslsad.LSAPR_AES_CIPHER_VALUE, desiredAccess ndr.DWORD) (SecretHandle mslsad.LSAPR_HANDLE, err error)
- func LsarOpenTrustedDomain(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, trustedDomainSid *msdtyp.RPC_SID, desiredAccess uint32) (mslsad.LSAPR_HANDLE, error)
- func LsarOpenTrustedDomainByName(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, trustedDomainName string, desiredAccess uint32) (mslsad.LSAPR_HANDLE, error)
- func LsarQueryDomainInformationPolicy(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, infoClass mslsad.POLICY_DOMAIN_INFORMATION_CLASS) (*mslsad.LSAPR_POLICY_DOMAIN_INFORMATION, error)
- func LsarQueryForestTrustInformation(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, trustedDomainName string, highestRecordType mslsad.LSA_FOREST_TRUST_RECORD_TYPE) (*mslsad.LSA_FOREST_TRUST_INFORMATION, error)
- func LsarQueryForestTrustInformation2(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, trustedDomainName mslsad.LSA_UNICODE_STRING, highestRecordType mslsad.LSA_FOREST_TRUST_RECORD_TYPE) (ForestTrustInfo2 *mslsad.LSA_FOREST_TRUST_INFORMATION2, err error)
- func LsarQueryInfoTrustedDomain(rpc ndr.Invoker, trustedDomainHandle mslsad.LSAPR_HANDLE, infoClass mslsad.TRUSTED_INFORMATION_CLASS) (*mslsad.LSAPR_TRUSTED_DOMAIN_INFO, error)
- func LsarQueryInformationPolicy(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, infoClass mslsad.POLICY_INFORMATION_CLASS) (*mslsad.LSAPR_POLICY_INFORMATION, error)
- func LsarQueryInformationPolicy2(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, infoClass mslsad.POLICY_INFORMATION_CLASS) (*mslsad.LSAPR_POLICY_INFORMATION, error)
- func LsarQuerySecret(rpc ndr.Invoker, secretHandle mslsad.LSAPR_HANDLE) (encryptedCurrentValue *mslsad.LSAPR_CR_CIPHER_VALUE, currentValueSetTime *msdtyp.LARGE_INTEGER, encryptedOldValue *mslsad.LSAPR_CR_CIPHER_VALUE, oldValueSetTime *msdtyp.LARGE_INTEGER, err error)
- func LsarQuerySecret2(rpc ndr.Invoker, secretHandle mslsad.LSAPR_HANDLE, encryptedCurrentValue *mslsad.LSAPR_AES_CIPHER_VALUE, currentValueSetTime *msdtyp.LARGE_INTEGER, encryptedOldValue *mslsad.LSAPR_AES_CIPHER_VALUE, oldValueSetTime *msdtyp.LARGE_INTEGER) (EncryptedCurrentValue *mslsad.LSAPR_AES_CIPHER_VALUE, CurrentValueSetTime *msdtyp.LARGE_INTEGER, EncryptedOldValue *mslsad.LSAPR_AES_CIPHER_VALUE, OldValueSetTime *msdtyp.LARGE_INTEGER, err error)
- func LsarQuerySecurityObject(rpc ndr.Invoker, objectHandle mslsad.LSAPR_HANDLE, securityInformation uint32) (*mslsad.LSAPR_SR_SECURITY_DESCRIPTOR, error)
- func LsarQueryTrustedDomainInfo(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, trustedDomainSid *msdtyp.RPC_SID, infoClass mslsad.TRUSTED_INFORMATION_CLASS) (*mslsad.LSAPR_TRUSTED_DOMAIN_INFO, error)
- func LsarQueryTrustedDomainInfoByName(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, trustedDomainName string, infoClass mslsad.TRUSTED_INFORMATION_CLASS) (*mslsad.LSAPR_TRUSTED_DOMAIN_INFO, error)
- func LsarRemoveAccountRights(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, accountSid *msdtyp.RPC_SID, allRights uint8, userRights mslsad.LSAPR_USER_RIGHT_SET) error
- func LsarRemovePrivilegesFromAccount(rpc ndr.Invoker, accountHandle mslsad.LSAPR_HANDLE, allPrivileges uint8, privileges *mslsad.LSAPR_PRIVILEGE_SET) error
- func LsarRetrievePrivateData(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, keyName string) (*mslsad.LSAPR_CR_CIPHER_VALUE, error)
- func LsarRetrievePrivateData2(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, encryptedKeyName mslsad.LSAPR_AES_CIPHER_VALUE, encryptedData *mslsad.LSAPR_AES_CIPHER_VALUE) (EncryptedData *mslsad.LSAPR_AES_CIPHER_VALUE, err error)
- func LsarSetDomainInformationPolicy(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, infoClass mslsad.POLICY_DOMAIN_INFORMATION_CLASS, info *mslsad.LSAPR_POLICY_DOMAIN_INFORMATION) error
- func LsarSetForestTrustInformation(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, trustedDomainName string, highestRecordType mslsad.LSA_FOREST_TRUST_RECORD_TYPE, forestTrustInfo mslsad.LSA_FOREST_TRUST_INFORMATION, checkOnly uint8) (*mslsad.LSA_FOREST_TRUST_COLLISION_INFORMATION, error)
- func LsarSetForestTrustInformation2(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, trustedDomainName mslsad.LSA_UNICODE_STRING, highestRecordType mslsad.LSA_FOREST_TRUST_RECORD_TYPE, forestTrustInfo2 mslsad.LSA_FOREST_TRUST_INFORMATION2, checkOnly uint8) (CollisionInfo *mslsad.LSA_FOREST_TRUST_COLLISION_INFORMATION, err error)
- func LsarSetInformationPolicy(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, infoClass mslsad.POLICY_INFORMATION_CLASS, info mslsad.LSAPR_POLICY_INFORMATION) error
- func LsarSetInformationPolicy2(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, infoClass mslsad.POLICY_INFORMATION_CLASS, info mslsad.LSAPR_POLICY_INFORMATION) error
- func LsarSetInformationTrustedDomain(rpc ndr.Invoker, trustedDomainHandle mslsad.LSAPR_HANDLE, infoClass mslsad.TRUSTED_INFORMATION_CLASS, info mslsad.LSAPR_TRUSTED_DOMAIN_INFO) error
- func LsarSetSecret(rpc ndr.Invoker, secretHandle mslsad.LSAPR_HANDLE, encryptedCurrentValue, encryptedOldValue *mslsad.LSAPR_CR_CIPHER_VALUE) error
- func LsarSetSecret2(rpc ndr.Invoker, secretHandle mslsad.LSAPR_HANDLE, encryptedCurrentValue *mslsad.LSAPR_AES_CIPHER_VALUE, encryptedOldValue *mslsad.LSAPR_AES_CIPHER_VALUE) (err error)
- func LsarSetSecurityObject(rpc ndr.Invoker, objectHandle mslsad.LSAPR_HANDLE, securityInformation uint32, securityDescriptor mslsad.LSAPR_SR_SECURITY_DESCRIPTOR) error
- func LsarSetSystemAccessAccount(rpc ndr.Invoker, accountHandle mslsad.LSAPR_HANDLE, systemAccess uint32) error
- func LsarSetTrustedDomainInfo(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, trustedDomainSid *msdtyp.RPC_SID, infoClass mslsad.TRUSTED_INFORMATION_CLASS, info mslsad.LSAPR_TRUSTED_DOMAIN_INFO) error
- func LsarSetTrustedDomainInfoByName(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, trustedDomainName string, infoClass mslsad.TRUSTED_INFORMATION_CLASS, info mslsad.LSAPR_TRUSTED_DOMAIN_INFO) error
- func LsarStorePrivateData(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, keyName string, encryptedData *mslsad.LSAPR_CR_CIPHER_VALUE) error
- func LsarStorePrivateData2(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, encryptedKeyName mslsad.LSAPR_AES_CIPHER_VALUE, encryptedData *mslsad.LSAPR_AES_CIPHER_VALUE) (err error)
func LsarAddAccountRights
func LsarAddAccountRights(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, accountSid *msdtyp.RPC_SID, userRights mslsad.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 mslsad.LSAPR_HANDLE, privileges mslsad.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 mslsad.LSAPR_HANDLE) (mslsad.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 mslsad.LSAPR_HANDLE, accountSid *msdtyp.RPC_SID, desiredAccess uint32) (mslsad.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 mslsad.LSAPR_HANDLE, secretName string, desiredAccess uint32) (mslsad.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 LsarCreateSecret2
func LsarCreateSecret2(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, encryptedSecretName mslsad.LSAPR_AES_CIPHER_VALUE, desiredAccess ndr.DWORD) (SecretHandle mslsad.LSAPR_HANDLE, err error)
LsarCreateSecret2 calls LsarCreateSecret2 (opnum 137) ([MS-LSAD]). Wire modeling is not yet live-validated against Windows.
func LsarCreateTrustedDomain
func LsarCreateTrustedDomain(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, trustedDomainInformation mslsad.LSAPR_TRUST_INFORMATION, desiredAccess uint32) (mslsad.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 mslsad.LSAPR_HANDLE, trustedDomainInformation mslsad.LSAPR_TRUSTED_DOMAIN_INFORMATION_EX, authenticationInformation mslsad.LSAPR_TRUSTED_DOMAIN_AUTH_INFORMATION, desiredAccess uint32) (mslsad.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 mslsad.LSAPR_HANDLE, trustedDomainInformation mslsad.LSAPR_TRUSTED_DOMAIN_INFORMATION_EX, authenticationInformation mslsad.LSAPR_TRUSTED_DOMAIN_AUTH_INFORMATION_INTERNAL, desiredAccess uint32) (mslsad.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 LsarCreateTrustedDomainEx3
func LsarCreateTrustedDomainEx3(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, trustedDomainInformation mslsad.LSAPR_TRUSTED_DOMAIN_INFORMATION_EX, authenticationInformation mslsad.LSAPR_TRUSTED_DOMAIN_AUTH_INFORMATION_INTERNAL_AES, desiredAccess ndr.DWORD) (TrustedDomainHandle mslsad.LSAPR_HANDLE, err error)
LsarCreateTrustedDomainEx3 calls LsarCreateTrustedDomainEx3 (opnum 129) ([MS-LSAD]). Wire modeling is not yet live-validated against Windows.
func LsarDeleteObject
func LsarDeleteObject(rpc ndr.Invoker, handle mslsad.LSAPR_HANDLE) (mslsad.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 mslsad.LSAPR_HANDLE, trustedDomainSid *msdtyp.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 mslsad.LSAPR_HANDLE, accountSid *msdtyp.RPC_SID) (mslsad.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 mslsad.LSAPR_HANDLE, enumerationContext uint32, preferedMaximumLength uint32) (mslsad.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 mslsad.LSAPR_HANDLE, userRight *msdtyp.RPC_UNICODE_STRING) (mslsad.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 mslsad.LSAPR_HANDLE, enumerationContext uint32, preferedMaximumLength uint32) (uint32, mslsad.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 mslsad.LSAPR_HANDLE) (*mslsad.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 mslsad.LSAPR_HANDLE, enumerationContext uint32, preferedMaximumLength uint32) (uint32, mslsad.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 mslsad.LSAPR_HANDLE, enumerationContext uint32, preferedMaximumLength uint32) (uint32, mslsad.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 mslsad.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) (*msdtyp.RPC_UNICODE_STRING, *msdtyp.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 mslsad.LSAPR_HANDLE, names []msdtyp.RPC_UNICODE_STRING, lookupLevel mslsat.LSAP_LOOKUP_LEVEL) (*mslsat.LSAPR_REFERENCED_DOMAIN_LIST, mslsat.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 mslsad.LSAPR_HANDLE, names []msdtyp.RPC_UNICODE_STRING, lookupLevel mslsat.LSAP_LOOKUP_LEVEL, lookupOptions uint32, clientRevision uint32) (*mslsat.LSAPR_REFERENCED_DOMAIN_LIST, mslsat.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 mslsad.LSAPR_HANDLE, names []msdtyp.RPC_UNICODE_STRING, lookupLevel mslsat.LSAP_LOOKUP_LEVEL, lookupOptions uint32, clientRevision uint32) (*mslsat.LSAPR_REFERENCED_DOMAIN_LIST, mslsat.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 []msdtyp.RPC_UNICODE_STRING, lookupLevel mslsat.LSAP_LOOKUP_LEVEL, lookupOptions uint32, clientRevision uint32) (*mslsat.LSAPR_REFERENCED_DOMAIN_LIST, mslsat.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 mslsad.LSAPR_HANDLE, name string, clientLanguage int16, clientSystemDefaultLanguage int16) (*msdtyp.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 mslsad.LSAPR_HANDLE, value msdtyp.LUID) (*msdtyp.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 mslsad.LSAPR_HANDLE, name string) (msdtyp.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 mslsad.LSAPR_HANDLE, sidEnumBuffer mslsat.LSAPR_SID_ENUM_BUFFER, lookupLevel mslsat.LSAP_LOOKUP_LEVEL) (*mslsat.LSAPR_REFERENCED_DOMAIN_LIST, mslsat.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 mslsad.LSAPR_HANDLE, sidEnumBuffer mslsat.LSAPR_SID_ENUM_BUFFER, lookupLevel mslsat.LSAP_LOOKUP_LEVEL, lookupOptions uint32, clientRevision uint32) (*mslsat.LSAPR_REFERENCED_DOMAIN_LIST, mslsat.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 mslsat.LSAPR_SID_ENUM_BUFFER, lookupLevel mslsat.LSAP_LOOKUP_LEVEL, lookupOptions uint32, clientRevision uint32) (*mslsat.LSAPR_REFERENCED_DOMAIN_LIST, mslsat.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 mslsad.LSAPR_HANDLE, accountSid *msdtyp.RPC_SID, desiredAccess uint32) (mslsad.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) (mslsad.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) (mslsad.LSAPR_HANDLE, error)
LsarOpenPolicy2 calls LsarOpenPolicy2 (opnum 44) and returns a policy handle.
func LsarOpenPolicy3
func LsarOpenPolicy3(rpc ndr.Invoker, systemName *ndr.WSTR, objectAttributes mslsad.LSAPR_OBJECT_ATTRIBUTES, desiredAccess ndr.DWORD, inVersion ndr.DWORD, inRevisionInfo mslsad.LSAPR_REVISION_INFO) (OutVersion ndr.DWORD, OutRevisionInfo mslsad.LSAPR_REVISION_INFO, PolicyHandle mslsad.LSAPR_HANDLE, err error)
LsarOpenPolicy3 opens a policy handle and negotiates a revision level (opnum 130) ([MS-LSAD] 3.1.4.4.1). InRevisionInfo is a switch_is(InVersion) union transmitted inline; its discriminant is forced to InVersion so the marshalled arm matches the negotiated version. Wire modeling is not yet live-validated against Windows.
func LsarOpenPolicyWithCreds
func LsarOpenPolicyWithCreds(rpc ndr.Invoker, objectAttributes mslsad.LSAPR_OBJECT_ATTRIBUTES, desiredAccess ndr.DWORD, inVersion ndr.DWORD, inRevisionInfo mslsad.LSAPR_REVISION_INFO) (OutVersion ndr.DWORD, OutRevisionInfo mslsad.LSAPR_REVISION_INFO, PolicyHandle mslsad.LSAPR_HANDLE, err error)
LsarOpenPolicyWithCreds opens a policy handle under supplied credentials (opnum 135) ([MS-LSAD] 3.1.4.4.3). The [in] handle_t binding handle is not marshalled. As with LsarOpenPolicy3, InRevisionInfo is a switch_is(InVersion) union transmitted inline; its discriminant is forced to InVersion. Wire modeling is not yet live-validated.
func LsarOpenSecret
func LsarOpenSecret(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, secretName string, desiredAccess uint32) (mslsad.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 LsarOpenSecret2
func LsarOpenSecret2(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, encryptedSecretName mslsad.LSAPR_AES_CIPHER_VALUE, desiredAccess ndr.DWORD) (SecretHandle mslsad.LSAPR_HANDLE, err error)
LsarOpenSecret2 calls LsarOpenSecret2 (opnum 136) ([MS-LSAD]). Wire modeling is not yet live-validated against Windows.
func LsarOpenTrustedDomain
func LsarOpenTrustedDomain(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, trustedDomainSid *msdtyp.RPC_SID, desiredAccess uint32) (mslsad.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 mslsad.LSAPR_HANDLE, trustedDomainName string, desiredAccess uint32) (mslsad.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 mslsad.LSAPR_HANDLE, infoClass mslsad.POLICY_DOMAIN_INFORMATION_CLASS) (*mslsad.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 mslsad.LSAPR_HANDLE, trustedDomainName string, highestRecordType mslsad.LSA_FOREST_TRUST_RECORD_TYPE) (*mslsad.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 LsarQueryForestTrustInformation2
func LsarQueryForestTrustInformation2(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, trustedDomainName mslsad.LSA_UNICODE_STRING, highestRecordType mslsad.LSA_FOREST_TRUST_RECORD_TYPE) (ForestTrustInfo2 *mslsad.LSA_FOREST_TRUST_INFORMATION2, err error)
LsarQueryForestTrustInformation2 calls LsarQueryForestTrustInformation2 (opnum 132) ([MS-LSAD]). Wire modeling is not yet live-validated against Windows.
func LsarQueryInfoTrustedDomain
func LsarQueryInfoTrustedDomain(rpc ndr.Invoker, trustedDomainHandle mslsad.LSAPR_HANDLE, infoClass mslsad.TRUSTED_INFORMATION_CLASS) (*mslsad.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 mslsad.LSAPR_HANDLE, infoClass mslsad.POLICY_INFORMATION_CLASS) (*mslsad.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 mslsad.LSAPR_HANDLE, infoClass mslsad.POLICY_INFORMATION_CLASS) (*mslsad.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 mslsad.LSAPR_HANDLE) (encryptedCurrentValue *mslsad.LSAPR_CR_CIPHER_VALUE, currentValueSetTime *msdtyp.LARGE_INTEGER, encryptedOldValue *mslsad.LSAPR_CR_CIPHER_VALUE, oldValueSetTime *msdtyp.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 LsarQuerySecret2
func LsarQuerySecret2(rpc ndr.Invoker, secretHandle mslsad.LSAPR_HANDLE, encryptedCurrentValue *mslsad.LSAPR_AES_CIPHER_VALUE, currentValueSetTime *msdtyp.LARGE_INTEGER, encryptedOldValue *mslsad.LSAPR_AES_CIPHER_VALUE, oldValueSetTime *msdtyp.LARGE_INTEGER) (EncryptedCurrentValue *mslsad.LSAPR_AES_CIPHER_VALUE, CurrentValueSetTime *msdtyp.LARGE_INTEGER, EncryptedOldValue *mslsad.LSAPR_AES_CIPHER_VALUE, OldValueSetTime *msdtyp.LARGE_INTEGER, err error)
LsarQuerySecret2 calls LsarQuerySecret2 (opnum 139) ([MS-LSAD]). Wire modeling is not yet live-validated against Windows.
func LsarQuerySecurityObject
func LsarQuerySecurityObject(rpc ndr.Invoker, objectHandle mslsad.LSAPR_HANDLE, securityInformation uint32) (*mslsad.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 mslsad.LSAPR_HANDLE, trustedDomainSid *msdtyp.RPC_SID, infoClass mslsad.TRUSTED_INFORMATION_CLASS) (*mslsad.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 mslsad.LSAPR_HANDLE, trustedDomainName string, infoClass mslsad.TRUSTED_INFORMATION_CLASS) (*mslsad.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 mslsad.LSAPR_HANDLE, accountSid *msdtyp.RPC_SID, allRights uint8, userRights mslsad.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 mslsad.LSAPR_HANDLE, allPrivileges uint8, privileges *mslsad.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 mslsad.LSAPR_HANDLE, keyName string) (*mslsad.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 LsarRetrievePrivateData2
func LsarRetrievePrivateData2(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, encryptedKeyName mslsad.LSAPR_AES_CIPHER_VALUE, encryptedData *mslsad.LSAPR_AES_CIPHER_VALUE) (EncryptedData *mslsad.LSAPR_AES_CIPHER_VALUE, err error)
LsarRetrievePrivateData2 calls LsarRetrievePrivateData2 (opnum 141) ([MS-LSAD]). Wire modeling is not yet live-validated against Windows.
func LsarSetDomainInformationPolicy
func LsarSetDomainInformationPolicy(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, infoClass mslsad.POLICY_DOMAIN_INFORMATION_CLASS, info *mslsad.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 mslsad.LSAPR_HANDLE, trustedDomainName string, highestRecordType mslsad.LSA_FOREST_TRUST_RECORD_TYPE, forestTrustInfo mslsad.LSA_FOREST_TRUST_INFORMATION, checkOnly uint8) (*mslsad.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 LsarSetForestTrustInformation2
func LsarSetForestTrustInformation2(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, trustedDomainName mslsad.LSA_UNICODE_STRING, highestRecordType mslsad.LSA_FOREST_TRUST_RECORD_TYPE, forestTrustInfo2 mslsad.LSA_FOREST_TRUST_INFORMATION2, checkOnly uint8) (CollisionInfo *mslsad.LSA_FOREST_TRUST_COLLISION_INFORMATION, err error)
LsarSetForestTrustInformation2 calls LsarSetForestTrustInformation2 (opnum 133) ([MS-LSAD]). Wire modeling is not yet live-validated against Windows.
func LsarSetInformationPolicy
func LsarSetInformationPolicy(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, infoClass mslsad.POLICY_INFORMATION_CLASS, info mslsad.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 mslsad.LSAPR_HANDLE, infoClass mslsad.POLICY_INFORMATION_CLASS, info mslsad.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 mslsad.LSAPR_HANDLE, infoClass mslsad.TRUSTED_INFORMATION_CLASS, info mslsad.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 mslsad.LSAPR_HANDLE, encryptedCurrentValue, encryptedOldValue *mslsad.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 LsarSetSecret2
func LsarSetSecret2(rpc ndr.Invoker, secretHandle mslsad.LSAPR_HANDLE, encryptedCurrentValue *mslsad.LSAPR_AES_CIPHER_VALUE, encryptedOldValue *mslsad.LSAPR_AES_CIPHER_VALUE) (err error)
LsarSetSecret2 calls LsarSetSecret2 (opnum 138) ([MS-LSAD]). Wire modeling is not yet live-validated against Windows.
func LsarSetSecurityObject
func LsarSetSecurityObject(rpc ndr.Invoker, objectHandle mslsad.LSAPR_HANDLE, securityInformation uint32, securityDescriptor mslsad.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 mslsad.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 mslsad.LSAPR_HANDLE, trustedDomainSid *msdtyp.RPC_SID, infoClass mslsad.TRUSTED_INFORMATION_CLASS, info mslsad.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 mslsad.LSAPR_HANDLE, trustedDomainName string, infoClass mslsad.TRUSTED_INFORMATION_CLASS, info mslsad.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 mslsad.LSAPR_HANDLE, keyName string, encryptedData *mslsad.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).
func LsarStorePrivateData2
func LsarStorePrivateData2(rpc ndr.Invoker, policyHandle mslsad.LSAPR_HANDLE, encryptedKeyName mslsad.LSAPR_AES_CIPHER_VALUE, encryptedData *mslsad.LSAPR_AES_CIPHER_VALUE) (err error)
LsarStorePrivateData2 calls LsarStorePrivateData2 (opnum 140) ([MS-LSAD]). Wire modeling is not yet live-validated against Windows.