<test-history test='AdminAdHoc 4_23-2 (c2s)'>
<OUTPUT test='AdminAdHoc 4_23-2 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-domain' version='1.0'/>
</OUTPUT>
<INPUT test='AdminAdHoc 4_23-2 (c2s)'>
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="test-domain" xml:lang="en" id="11802860-4b41-40c7-8004-b582010ca923" version="1.0"/>
</INPUT>
<INPUT test='AdminAdHoc 4_23-2 (c2s)'>
<stream:features><auth xmlns="http://jabber.org/features/iq-auth"/><register xmlns="http://jabber.org/features/iq-register"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>SCRAM-SHA-1</mechanism><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><ver xmlns="urn:xmpp:features:rosterver"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression></stream:features>
</INPUT>
<OUTPUT test='AdminAdHoc 4_23-2 (c2s)'>
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGRvbWFpbi1hZG1pbgBhbGwteG1wcC10ZXN0LXBhc3N3b3Jk</auth>
</OUTPUT>
<INPUT test='AdminAdHoc 4_23-2 (c2s)'>
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>
</INPUT>
<OUTPUT test='AdminAdHoc 4_23-2 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-domain' version='1.0'>
</OUTPUT>
<INPUT test='AdminAdHoc 4_23-2 (c2s)'>
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="test-domain" xml:lang="en" id="11802860-4b41-40c7-8004-b582010ca923" version="1.0"/>
</INPUT>
<INPUT test='AdminAdHoc 4_23-2 (c2s)'>
<stream:features><register xmlns="http://jabber.org/features/iq-register"/><csi xmlns="urn:xmpp:csi:0"/><ver xmlns="urn:xmpp:features:rosterver"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/><session xmlns="urn:ietf:params:xml:ns:xmpp-session"/></stream:features>
</INPUT>
<OUTPUT test='AdminAdHoc 4_23-2 (c2s)'>
<iq type='set' id='bind1'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>def-user-resource</resource></bind></iq>
</OUTPUT>
<INPUT test='AdminAdHoc 4_23-2 (c2s)'>
<iq type="result" xmlns="jabber:client" id="bind1" to="domain-admin@test-domain/def-user-resource"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>domain-admin@test-domain/def-user-resource</jid></bind></iq>
</INPUT>
<OUTPUT test='AdminAdHoc 4_23-2 (c2s)'>
<iq type="set" from="domain-admin@test-domain/def-user-resource" id="announce-1" to="sess-man@test-domain">
<command node="http://jabber.org/protocol/admin#announce" xmlns="http://jabber.org/protocol/commands"/>
</iq>
</OUTPUT>
<INPUT test='AdminAdHoc 4_23-2 (c2s)'>
<iq type="result" xmlns="jabber:client" from="sess-man@test-domain" id="announce-1" to="domain-admin@test-domain/def-user-resource"><command node="http://jabber.org/protocol/admin#announce" xmlns="http://jabber.org/protocol/commands" status="executing"><x type="form" xmlns="jabber:x:data"><title>Message to online users</title><instructions>Fill out this form to make an announcement to all active users of this service.</instructions><field type="hidden" var="FORM_TYPE"><value>http://jabber.org/protocol/admin</value></field><field type="jid-single" var="from-jid" label="From address"><value>test-domain</value></field><field type="text-single" var="subject" label="Subject"><value>Message from administrators</value></field><field type="list-single" var="msg-type" label="Type"><value>normal</value><option label="normal"><value>normal</value></option><option label="headline"><value>headline</value></option><option label="chat"><value>chat</value></option></field><field type="text-multi" var="announcement"><value/></field><field type="hidden" var="notify-cluster"><value>true</value></field></x><actions execute="complete"><complete/></actions></command></iq>
</INPUT>
<OUTPUT test='AdminAdHoc 4_23-2 (c2s)'>
<iq type="set" from="domain-admin@test-domain/def-user-resource" id="announce-2" to="sess-man@test-domain">
<command node="http://jabber.org/protocol/admin#announce" xmlns="http://jabber.org/protocol/commands">
<x type="submit" xmlns="jabber:x:data">
<field type="hidden" var="FORM_TYPE">
<value>http://jabber.org/protocol/admin</value>
</field>
<field type="jid-single" var="from-jid">
<value>test-domain</value>
</field>
<field type="text-single" var="subject">
<value>Message from administrators</value>
</field>
<field type="list-single" var="msg-type">
<value>normal</value>
</field>
<field type="text-multi" var="announcement">
<value>test</value>
</field>
</x>
</command>
</iq>
</OUTPUT>
<INPUT test='AdminAdHoc 4_23-2 (c2s)'>
<message type="normal" xmlns="jabber:client" from="test-domain" id="admin" to="domain-admin@test-domain/def-user-resource"><body>test</body><subject>Message from administrators</subject></message>
</INPUT>

</test-history>