blob: 3369faf014288bc0a62d6c59bfc41dd3efa2a991 [file] [log] [blame]
#!/bin/sh
. ../eval_tools.sh
HEADER snmptrapd authorization failure of non authorized users
#
# Begin test
#
CONFIGTRAPD createUser testuser
CONFIGTRAPD authuser log testuser noAuthNoPriv
CONFIGTRAPD agentxsocket /dev/null
STARTTRAPD
CAPTURE "snmptrap -Ci -t $SNMP_SLEEP -d -v 3 -u nottestuser -l nanp $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPTRAPD_PORT 0 .1.3.6.1.6.3.1.1.5.1 system.sysContact.0 s blah"
STOPTRAPD
CHECKTRAPD "coldStart"
EXPECTRESULT 0
if [ "$snmp_last_test_result" != 0 ] ; then
return_value=1
FINISHED
fi
FINISHED