PW_GETCONF(3) | Library Functions Manual | PW_GETCONF(3) |
void
pw_getconf(char *data, size_t len, const char *key, const char *option);
void
pw_getpwconf(char *data, size_t len, const struct passwd *pwd, const char *option);
To retrieve default values the key default can be used. In this case, if /etc/passwd.conf does not exist or does not contain a default section, the built-in defaults will be returned. They are as follows:
option | data |
ypcipher | old |
localcipher | old |
An empty string is returned for all errors.
pw_getpwconf() returns the value for the option specified for the particular user specified in pwd. If that option is not found, then it tries to find the option in the primary group of that user, and if that fails, then it returns the default entry.
May 4, 2010 | NetBSD 6.1 |