Logs a user in to an eDirectory tree and returns an identity token.
#include <client.h> int create_identity ( const char *treename, const void *username, const char *password, const void *nmas_sequence, unsigned long flags, int *identity);
(IN) Points to string containing the name of the tree. If NULL or an empty string, the current tree is used.
To use a tree name, you must have set up address resolution to resolve a tree name into a physical address. If you haven't set up address resolution to do this or if you prefer to use a server name, you can use a server name in this parameter. However, address resolution must be set up to resolve server names into physical addresses (which is the defined behavior on most networks).
(IN) Points to a string containing the fully distinguished name of the user. It can be of type ASCII, UTF-8, or Unicode, as specified by the flags parameter. It can be expressed in any of the following formats:
(IN) Points to a string containing the user's password. The password must be ASCII text in the local code page.
(IN) Pass in NULL. Not currently used.
(IN) Specifies the transport type and the username string type. Select a flag for each:
(OUT) Points to the returned identity token.
If successful, returns 0; otherwise returns a nonzero error.
You can use the identity token to accomplish the following tasks:
To create a path context. See NXCreatePathContext in Volume 1.
To establish an NCP session with a NetWare server, which then allows you to access its services remotely.
If you pass in the same credentials to create a second identity token for the user, you receive back the same token, but its use count is incremented for each requested token.