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.
     1 ## this tests that a client can fallback to a secondary auth mech 
     2 
     3 CLIENT
     4 
     5 ## Will try EXTERNAL by default first without first calling AUTH alone.
     6 
     7 EXPECT_COMMAND AUTH
     8 SEND 'REJECTED EXTERNAL DBUS_COOKIE_SHA1 DBUS_TEST_NONEXISTENT_MECH'
     9 
    10 ## And this time we get DBUS_COOKIE_SHA1
    11 
    12 EXPECT_COMMAND AUTH
    13 ## of course real DBUS_COOKIE_SHA1 would not send this here...
    14 SEND 'OK 1234deadbeef'
    15 
    16 EXPECT_COMMAND BEGIN
    17 EXPECT_STATE AUTHENTICATED