You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
group_check, group_user_check and user_check functions shouldn't access /etc/passwd and /etc/group directly.
Instead they should rely on tools which honor /etc/nsswitch.conf such as getent passwd, getent groups, groups. This way these function will also pick users defined in e.g. LDAP or whatever backends admin configured in /etc/nsswitch.conf.
As far as I know useradd, usermod, groupadd and groupmod function honor /etc/nsswitch.conf if configured properly, so the rest of group_* and user_* functions can be left intact.
group_check
,group_user_check
anduser_check
functions shouldn't access/etc/passwd
and/etc/group
directly.Instead they should rely on tools which honor
/etc/nsswitch.conf
such asgetent passwd
,getent groups
,groups
. This way these function will also pick users defined in e.g. LDAP or whatever backends admin configured in/etc/nsswitch.conf
.As far as I know
useradd
,usermod
,groupadd
andgroupmod
function honor/etc/nsswitch.conf
if configured properly, so the rest ofgroup_*
anduser_*
functions can be left intact.Also see #40 for discussion.
The text was updated successfully, but these errors were encountered: