NPKIServerNames

Obtains the specified eDirectory server’s leaf name and FDN (formerly NWPKIServerNames).

Syntax

    #include "npki.h"
    
    NWRCODE NPKIServerNames(
       const NPKIContext    context,
       nuint32              index, 
       unicode const      **serverDN,
       unicode const       **serverName);
    

Parameters

context
(IN) Specifies the NPKI context for the request.
index
(IN) Indicates which server name is to be returned.

NOTE:index is 0 based.

serverDN
(OUT) Returns the eDirectory FDN of the server.
serverName
(OUT) Returns the leaf name of the server.

Return Values

Returns 0 if successful, or a PKI error code if not successful.

Remarks

You must call either NPKIFindKeyGenServersForUser or NPKIFindServersInContext before calling NPKIServerNames. You can call this function repeatedly to get all of the server names.

See Also

NPKIFindKeyGenServersForUser, NPKIFindServersInContext