sid_to_escaped_string

Use the sid_to_escaped_string command to specify a security identifier (SID) and have it converted to an escaped string format that works in an LDAP filter.

Zone type

Not applicable

Syntax

sid_to_escaped_string sid

Abbreviation

stes

Options

This command takes no options.

Arguments

This command takes the following argument:

Argument Type Description

sid

string

Required. Specifies a security identifier (SID).

Return value

This command returns an escaped string form of the supplied security identifier.

Examples

sid_to_escaped_string S-1-5-21-2076040321-3326545908-468068287-1157

This example returns an escaped string:

\01\05\00\00\00\00\00\05\15\00\00\00\81\dc\bd\7b\f4\0f\47\c6\bf\27\e6\1b\85\04\00\00

Related commands

The following commands perform actions related to this command:

  • sid_to_uid converts an Active Directory security identifier to a user ID (UID).
  • principal_from_sid searches Active Directory for an security identifier and returns the security principal associated with the security identifier.