Commit e5f16e57 authored by Simon McVittie's avatar Simon McVittie

Revert "Enable anonymous authorization for tests"

This reverts commit 22fc03d2.
parent 3006b952
......@@ -398,8 +398,8 @@ _dbus_auth_script_run (const DBusString *filename)
_dbus_credentials_unref (creds);
}
else if (_dbus_string_starts_with_c_str (&line, "SERVER") ||
_dbus_string_starts_with_c_str (&line, "SERVER_ANONYMOUS"))
else if (_dbus_string_starts_with_c_str (&line,
"SERVER"))
{
DBusCredentials *creds;
DBusAuthorization *authorization;
......@@ -417,11 +417,6 @@ _dbus_auth_script_run (const DBusString *filename)
_dbus_warn ("no memory to create DBusAuthorization\n");
goto out;
}
/* if we are testing an anonymous server, we need to enable
* anonymous authorization, or the mech will REJECT */
if (_dbus_string_starts_with_c_str (&line, "SERVER_ANONYMOUS"))
_dbus_authorization_set_allow_anonymous (authorization, TRUE);
auth = _dbus_auth_server_new (&guid, authorization);
/* DBusAuth owns it, or finalized on OOM */
_dbus_authorization_unref (authorization);
......
## this tests the server side in a successful auth of type ANONYMOUS
## Act as a server that accepts anonymous authorization
SERVER_ANONYMOUS
SERVER
## verify that prior to doing anything, we haven't authed as anyone
EXPECT_HAVE_NO_CREDENTIALS
SEND 'AUTH ANONYMOUS 442d42757320312e312e31'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment