Merge pull request #83 from jdguffey/__user

Don't use shadow passwords on FreeBSD
remotes/origin/2.0
Nico Schottelius 13 years ago
commit 74f5a4a6c6
  1. 9
      conf/type/__user/explorer/shadow

@ -22,6 +22,13 @@
#
name=$__object_id
os="$($__explorer/os)"
# Default to using shadow passwords
database="shadow"
getent shadow "$name" || true
if [ "$os" = "freebsd" ]; then
database="passwd"
fi
getent "$database" "$name" || true

Loading…
Cancel
Save