os/ossrv/ofdbus/dbus/data/auth/fallback.auth-script
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
## this tests that a client can fallback to a secondary auth mech 
sl@0
     2
sl@0
     3
CLIENT
sl@0
     4
sl@0
     5
## Will try EXTERNAL by default first without first calling AUTH alone.
sl@0
     6
sl@0
     7
EXPECT_COMMAND AUTH
sl@0
     8
SEND 'REJECTED EXTERNAL DBUS_COOKIE_SHA1 DBUS_TEST_NONEXISTENT_MECH'
sl@0
     9
sl@0
    10
## And this time we get DBUS_COOKIE_SHA1
sl@0
    11
sl@0
    12
EXPECT_COMMAND AUTH
sl@0
    13
## of course real DBUS_COOKIE_SHA1 would not send this here...
sl@0
    14
SEND 'OK 1234deadbeef'
sl@0
    15
sl@0
    16
EXPECT_COMMAND BEGIN
sl@0
    17
EXPECT_STATE AUTHENTICATED