Closed jubalh closed 4 months ago
This sounds weird in this context
i.e if the entry to be checked is in knowndef_table (combination of PAMDEFS and FOREIGNDEFS) we jump to 'out - then return NULL
putdef_str
though takes NULL as 'not found in the table'
d = def_find (name);
if (NULL == d) {
if (NULL != srcfile)
SYSLOG ((LOG_CRIT, "shadow: unknown configuration item '%s' in '%s'", name, srcfile));
return -1;
}
find_def should likely rather return ptr instead of NULL?
originally introduced here https://github.com/shadow-maint/shadow/commit/71c6165dcd6b808fc1bf11e0dfb3692beb06221c
i.e we already had a log function for (partially) unknown / external util entries.
Might be related to #814 / fa68441?
Maybe @hallyn knows.
This issue has also been reported for Fedora. I put it here for the sake of it .
Hm, the only nuisance I see here is:
useradd: failed to reset the lastlog entry of UID 1003: Success
Still trying to make sense of the unknown configuration message...
Oh, @DimStar77 , thank you - yes, that's the problem here. That fix was undone. (That's the passive way of saying - I undid it :)
Running
useradd
we get the following logged:With 4.14.6 this doesn't happen. Might be related to https://github.com/shadow-maint/shadow/pull/814 / https://github.com/shadow-maint/shadow/commit/fa68441bc4be8edeaad8d104344e987b31ed44e6?
openQA Test.