Что означает код ошибки Windows 1258 (ERROR_NON_DOMAIN_SID)?

 
Предыдущий Следующий
ERROR_NON_ACCOUNT_SID ERROR_APPHELP_BLOCK

ERROR_NON_DOMAIN_SID

Что означает ERROR_NON_DOMAIN_SID

ERROR_NON_DOMAIN_SID — указанный идентификатор безопасности SID не содержит доменной части.

Что проверить

Зафиксируйте дескриптор безопасности, SID/GUID или привилегию, участвующие в неуспешной операции.

  • Проверьте структуру идентификатора или ACL, наличие требуемой привилегии и фактический контекст безопасности токена, а не только членство пользователя в группе.
  • Если объект не поддерживает дескриптор безопасности или наследование, не пытайтесь назначить ему ACL через неподходящий API.

Исходная формулировка

  • the supplied SID has no domain component that can be extracted for the requested account operation.
  • the full SID string and number of subauthorities
  • A typical Windows account SID contains an authority, domain-identifying subauthorities, and a final relative identifier for the account. Well-known SIDs, integrity labels, capabilities, logon-session SIDs, and some service identities do not follow the account-domain pattern expected by domain extraction functions.
  • Review token parsing carefully. TokenIntegrityLevel , TokenAppContainerSid , and TokenUser carry different kinds of principals. Selecting the wrong information class can produce a valid non-domain SID that survives several layers before failing with 1258.
  • Call IsValidSid first, then use LookupAccountSid to determine what the identifier represents. Attempt domain extraction only for supported account SID types. If the SID was built manually, verify the identifier authority and every subauthority rather than checking only its textual prefix.

Технические ссылки


Нужно найти другой код? Найти другой код состояния или ошибки.