LIBNIT_GUIDToEDIRDN

This function returns the eDirectory DN associated with the specified eDirectory GUID.

Syntax

#include <nitlibext.h>
int LIBNIT_GUIDToEDIRDN (
                          NIT_GUID_t *edirguid,
                          char **edirdn
                        )

Parameters

edirguid

(IN) Specifies the eDirectory GUID.

edirdn

(OUT) Returns the eDirectory DN of the specified eDirectory GUID that terminates with '\0'.

Return Values

0

NIT_SUCCESS

Success

-9001

NITERR_ENTRY_NOTFOUND

Active Directory search returned unexpected results.

-9003

NITERR_UIDRANGE_EXHAUSTED

The UID range has been exhausted.

-9004

NITERR_IO_ERROR

Unable to write the NIT configuration file.

-9005

NITERR_PERMISSION_DENIED

Request comes from a non-root user, permission is denied to perform the operation.

-9006

NITERR_NITD_UNAVAILABLE

NIT daemon is not running.

-9009

NITERR_INSUFFICIENT_BUFFER

The caller has not allocated enough memory.

-9010

NITERR_INSUFFICIENT_MEMORY

There is no enough memory to allocate.

-9011

NITERR_UNKNOWN_ERROR

Cause is unknown.

-9014

NITERR_INVALID_PARAMETER

The parameters passed are NULL or invalid.

-9017

NITERR_EDIR_NOT_REACHABLE

eDirectory server is not reachable.