build_username

Concatenates a eDirectory name from its various components.

Library:LibC
Classification:NovellĀ®
Service:NCP Client

Syntax

  #include <client.h>
   
  int build_username (
     size_t          max,
     unsigned long   flags,
     void           *username,
     const void     *user,
     ... );
  

Parameters

max

(IN) Specifies the maximum length of the username.

flags

(IN) Specifies the format of the strings, using one of the following flags:

Flag

Value

Description

ASCII

0x1000

Indicates that the strings are in ASCII format.

UTF-8

0x2000

Indicates that the strings are in UTF-8 format.

UNICODE

0x4000

Indicates that the strings are in Unicode format.

username

(IN) Points to a string containing the user's name, for example:

  • cn=jdoe
  • jdoe
user

(IN) Points to a string containing the user's parent container.

...

(IN) Points to any additional strings needed to specify the user's fully qualified distinguished name or to a NULL, to terminate the list of strings.

Return Values

If successful, returns 0; otherwise returns an error.

See Also