File: fallback.auth-script

package info (click to toggle)
dbus 1.0.2-1%2Betch3
  • links: PTS
  • area: main
  • in suites: etch
  • size: 7,120 kB
  • ctags: 4,346
  • sloc: ansic: 65,805; sh: 8,901; xml: 6,705; makefile: 515
file content (17 lines) | stat: -rwxr-xr-x 436 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
## this tests that a client can fallback to a secondary auth mech 

CLIENT

## Will try EXTERNAL by default first without first calling AUTH alone.

EXPECT_COMMAND AUTH
SEND 'REJECTED EXTERNAL DBUS_COOKIE_SHA1 DBUS_TEST_NONEXISTENT_MECH'

## And this time we get DBUS_COOKIE_SHA1

EXPECT_COMMAND AUTH
## of course real DBUS_COOKIE_SHA1 would not send this here...
SEND 'OK 1234deadbeef'

EXPECT_COMMAND BEGIN
EXPECT_STATE AUTHENTICATED