ctdbGetUserLogonName
Return the user name associated with the session.
Declaration
pTEXT ctdbGetUserLogonName(CTHANDLE Handle)
Description
ctdbGetUserLogonName() returns the user name associated with the session. It is necessary to logon to the server with ctdbLogon() before getting the user name.
Returns
ctdbGetUserLogonName() returns a pointer to the User name, or NULL on failure.
Example
username=ctdbGetUserLogonName(hSession);
servname=ctdbGetServerName(hSession);
See also
ctdbGetServerName(), ctdbAllocSession()