[AUTH-9234] Gather users on AIX, and rewriting of tests

This commit is contained in:
mboelen 2016-01-11 01:31:08 +01:00
parent 5e5507a1cd
commit 6bab259a5e
1 changed files with 12 additions and 6 deletions

View File

@ -269,8 +269,9 @@
#
# Test : AUTH-9234
# Description : Query user accounts
# Notes : HPUX > 100
# MacOS: need to be improved (just reading passwd file is not enough)
# Notes : AIX: 100+
# HPUX: 100+
# Mac OS X: needs to be improved (just reading passwd file is not enough)
# OpenBSD/NetBSD: unknown
# Arch Linux / CentOS / Ubuntu: 1000+
Register --test-no AUTH-9234 --weight L --network NO --description "Query user accounts"
@ -279,19 +280,24 @@
FIND=""
case ${OS} in
"AIX")
LogText "AIX real users output (ID = 0, or 100+):"
FIND=`awk -F: '($3 >= 100 && $3 != 65534) || ($3 == 0) { print $1","$3 }' /etc/passwd`
;;
"FreeBSD")
LogText "FreeBSD real users output (ID = 0, or 1000+, but not 65534):"
FIND=`awk -F: '($3 >= 1000) && ($3 != 65534) || ($3 == 0) { print $1","$3 }' /etc/passwd`
FIND=`awk -F: '($3 >= 1000 && $3 != 65534) || ($3 == 0) { print $1","$3 }' /etc/passwd`
;;
"Linux")
LogText "Linux real users output (ID = 0, or 500+, but not 65534):"
FIND=`awk -F: '($3 >= 1000) && ($3 != 65534) || ($3 == 0) { print $1","$3 }' /etc/passwd`
LogText "Linux real users output (ID = 0, or 1000+, but not 65534):"
FIND=`awk -F: '($3 >= 1000 && $3 != 65534) || ($3 == 0) { print $1","$3 }' /etc/passwd`
;;
"OpenBSD")
LogText "OpenBSD real users output (ID = 0, or 1000-60000, but not 32767):"
FIND=`awk -F: '($3 >= 1000) && ($3 <= 60000) && ($3 != 32767) || ($3 == 0) { print $1","$3 }' /etc/passwd`
FIND=`awk -F: '($3 >= 1000 && $3 <= 60000 && $3 != 32767) || ($3 == 0) { print $1","$3 }' /etc/passwd`
;;
"Solaris")