class LDAPUtil (View source)

Class LDAPUtil

Provides some commonly used functions for LDAP and SAML.

Methods

public static 
bool
validGuid(string $guid)

Checks if the string is a valid guid in the format of A98C5A1E-A742-4808-96FA-6F409E799937

public static 
string
bin_to_str_guid(string $object_guid)

No description

public static 
string
str_to_hex_guid(string $str_guid, bool $escape = false)

No description

public static 
string
bin_to_str_sid(string $binsid)

No description

public static 
string
little_endian(string $hex)

Converts a little-endian hex-number to one, that 'hexdec' can convert

Details

static bool validGuid(string $guid)

Checks if the string is a valid guid in the format of A98C5A1E-A742-4808-96FA-6F409E799937

Parameters

string $guid

Return Value

bool

static string bin_to_str_guid(string $object_guid)

No description

Parameters

string $object_guid

Return Value

string

static string str_to_hex_guid(string $str_guid, bool $escape = false)

No description

Parameters

string $str_guid
bool $escape

Return Value

string

static string bin_to_str_sid(string $binsid)

No description

Parameters

string $binsid

Return Value

string

static string little_endian(string $hex)

Converts a little-endian hex-number to one, that 'hexdec' can convert

Parameters

string $hex

Return Value

string