uidtontsid()

NAME

uidtontsid() - retrieve user's NT security ID

SYNOPSIS

#include <interix/security.h>

char * uidtontsid(uid_t uid)

DESCRIPTION

The uidtontsid(2) call retrieves the Windows security ID of the user specified by uid, and returns a pointer to a static buffer that contains the security ID as an ASCII string.

Windows security IDs are unique throughout time and space; a POSIX user ID under Windows is only unique within a trusted domain network.

DIAGNOSTICS

On success, uidtontsid(2) returns a pointer to a static buffer. On failure, it returns NULL and sets errno to indicate the cause of the error.

ERRORS

The following errors can be set:

[EINVAL]
The uid is invalid.

SEE ALSO