LIBNIT_EDIRDNToGUID

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

Syntax

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

Parameters

edirdn

(IN) Specifies the eDirectory DN.

edirguid

(OUT) Returns the eDirectory GUID of the specified eDirectory DN.

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.