Force use shadow, even if missing.

This commit is contained in:
Dimitri John Ledkov 2015-02-27 14:18:56 +00:00
parent ee43f47f45
commit 46a72bc342
No known key found for this signature in database
GPG Key ID: 43388EE7C151C9C9
4 changed files with 10 additions and 0 deletions

View File

@ -393,3 +393,8 @@ USERGROUPS_ENAB yes
#
#CREATE_HOME yes
#
# Force use shadow, even if shadow passwd & shadow group files are
# missing.
#
#FORCE_SHADOW yes

View File

@ -139,6 +139,7 @@ static struct itemdef def_table[] = {
{"TCB_SYMLINKS", NULL},
{"USE_TCB", NULL},
#endif
{"FORCE_SHADOW", NULL},
{NULL, NULL}
};

View File

@ -249,6 +249,8 @@ int sgr_setdbname (const char *filename)
bool sgr_file_present (void)
{
if (getdef_bool ("FORCE_SHADOW"))
return true;
return commonio_present (&gshadow_db);
}

View File

@ -125,6 +125,8 @@ int spw_setdbname (const char *filename)
bool spw_file_present (void)
{
if (getdef_bool ("FORCE_SHADOW"))
return true;
return commonio_present (&shadow_db);
}