Merge pull request #83 from jdguffey/__user
Don't use shadow passwords on FreeBSD
This commit is contained in:
commit
74f5a4a6c6
1 changed files with 8 additions and 1 deletions
|
@ -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…
Reference in a new issue