The method_getpwnam Interface
struct passwd *method_getpwnam (void *handlep, const char *user);
The handlep parameter is a handle to the load module opened with the method_open interface. The user parameter points to the requested user.
method_getpwnam retrieves user account information given the user name. The user account information consists of the user name, identifier, primary group identifier, full name, login directory and login shell.
method_getpwnam is called as a result of calling the getpwnam subroutine. This interface may also be called if method_getentry is not defined.
method_getpwnam returns a pointer to the user's password structure on success. On failure a NULL pointer is returned.