files_attr.c revision 2
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A#include <nss_dbdefs.h>
2N/A#include "passwdutil.h"
2N/Aint files_lock(void);
2N/Aint files_unlock(void);
2N/A char *pwd_scratch;
2N/A char *spwd_scratch;
2N/Afiles_lock(void)
2N/Afiles_unlock(void)
2N/A return (PWU_SYSTEM_ERROR);
2N/A return (PWU_SUCCESS);
2N/A * other services possibly defined in nsswitch.conf
2N/A * other services possibly defined in nsswitch.conf.
2N/A case ATTR_COMMENT:
2N/A case ATTR_GECOS:
2N/A case ATTR_HOMEDIR:
2N/A case ATTR_SHELL:
2N/A case ATTR_PASSWD:
2N/A case ATTR_LSTCHG:
2N/A case ATTR_INACT:
2N/A case ATTR_EXPIRE:
2N/A case ATTR_LOCK_ACCOUNT:
2N/A case ATTR_LOCK_FAILED_LOGINS:
2N/A case ATTR_EXPIRE_PASSWORD:
2N/A case ATTR_FAILED_LOGINS:
2N/A case ATTR_INCR_FAILED_LOGINS:
2N/A case ATTR_RST_FAILED_LOGINS:
2N/A case ATTR_NOLOGIN_ACCOUNT:
2N/A case ATTR_UNLOCK_ACCOUNT:
2N/A return (PWU_SUCCESS);
2N/A if (repos_authorized()) {
2N/A *privileged = 0;
2N/A char *crypt_passwd;
2N/A crypt_passwd, s);
2N/A case ATTR_COMMENT:
2N/A case ATTR_GECOS:
2N/A case ATTR_HOMEDIR:
2N/A case ATTR_SHELL:
2N/A case ATTR_PASSWD:
2N/A case ATTR_REP_NAME:
2N/A case ATTR_HISTORY: {
2N/A goto getattr_exit;
2N/A case ATTR_LSTCHG:
2N/A case ATTR_INACT:
2N/A case ATTR_EXPIRE:
2N/A case ATTR_FAILED_LOGINS:
2N/A int aging_needed = 0;
2N/A int disable_aging;
2N/A case ATTR_COMMENT:
2N/A case ATTR_GECOS:
2N/A case ATTR_HOMEDIR:
2N/A case ATTR_SHELL:
2N/A case ATTR_PASSWD:
2N/A return (PWU_UPDATE_FAILED);
2N/A case ATTR_LOCK_ACCOUNT:
2N/A case ATTR_LOCK_FAILED_LOGINS:
2N/A return (PWU_CHANGE_NOT_ALLOWED);
2N/A return (PWU_NO_CHANGE);
2N/A case ATTR_UNLOCK_ACCOUNT:
2N/A return (PWU_NO_CHANGE);
2N/A case ATTR_NOLOGIN_ACCOUNT:
2N/A return (PWU_NO_CHANGE);
2N/A case ATTR_EXPIRE_PASSWORD:
2N/A case ATTR_LSTCHG:
2N/A return (PWU_AGING_DISABLED);
2N/A return (PWU_AGING_DISABLED);
2N/A case ATTR_INACT:
2N/A case ATTR_EXPIRE:
2N/A case ATTR_INCR_FAILED_LOGINS:
2N/A return (PWU_NO_CHANGE);
2N/A case ATTR_RST_FAILED_LOGINS:
2N/A if (disable_aging) {
2N/A return (PWU_SUCCESS);
2N/A goto shadow_exit;
2N/A goto shadow_exit;
2N/A goto shadow_exit;
2N/A goto shadow_exit;
2N/A goto shadow_exit;
2N/A goto shadow_exit;
2N/A goto shadow_exit;
2N/A goto shadow_exit;
2N/A goto shadow_exit;
2N/A goto passwd_exit;
2N/A goto passwd_exit;
2N/A goto passwd_exit;
2N/A goto passwd_exit;
2N/A goto passwd_exit;
2N/A goto passwd_exit;
2N/A goto passwd_exit;
2N/A goto passwd_exit;
2N/A return (PWU_OPEN_FAILED);
2N/A return (PWU_OPEN_FAILED);
2N/A return (PWU_OPEN_FAILED);
2N/A return (PWU_CLOSE_FAILED);
2N/A return (PWU_UPDATE_FAILED);
2N/A return (PWU_SUCCESS);