openbsd and freebsd both use the 'passwd' database

remotes/origin/feature_files_export
og 11 years ago
parent 5cbdf981c0
commit 6a455be63a
  1. 7
      cdist/conf/type/__user/explorer/shadow

@ -26,9 +26,10 @@ os="$($__explorer/os)"
# Default to using shadow passwords
database="shadow"
if [ "$os" = "freebsd" ]; then
database="passwd"
fi
case "$os" in
"freebsd"|"openbsd") database="passwd";;
esac
getent "$database" "$name" || true

Loading…
Cancel
Save