Merge pull request #83 from jdguffey/__user

Don't use shadow passwords on FreeBSD
This commit is contained in:
Nico Schottelius 2012-06-25 10:11:02 -07:00
commit 74f5a4a6c6

View file

@ -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