The method_normalize Interface

int method_normalize (void *handlep, char *longname, char *shortname);

The handlep parameter is a handle to the load module opened with the method_open interface. The longname parameter points to a fully-qualified user name for modules which include domain or registry information in a user name. The shortname parameter points to the shortened name of the user, without the domain or registry information.

method_normalize determines the shortened user name which corresponds to a fully-qualified user name. The shortened user name is used for user account queries by the security library. The fully-qualified user name is only used to perform initial authentication.

If the fully-qualified user name is successfully converted to a shortened user name, a non-zero value is returned. If an error occurs a zero value is returned.