<test-history test='AdminAdHoc sess-man_3_4 (c2s)'>
<OUTPUT test='AdminAdHoc sess-man_3_4 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-domain' version='1.0'/>
</OUTPUT>
<INPUT test='AdminAdHoc sess-man_3_4 (c2s)'>
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="test-domain" id="eaa751c7-9173-48b7-a11b-742dfad46e89" version="1.0" xml:lang="en"/>
</INPUT>
<INPUT test='AdminAdHoc sess-man_3_4 (c2s)'>
<stream:features><auth xmlns="http://jabber.org/features/iq-auth"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>SCRAM-SHA-256</mechanism><mechanism>SCRAM-SHA-1</mechanism><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><register xmlns="http://jabber.org/features/iq-register"/><ver xmlns="urn:xmpp:features:rosterver"/><sub xmlns="urn:xmpp:features:pre-approval"/><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 sess-man_3_4 (c2s)'>
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGRvbWFpbi1hZG1pbgBhbGwteG1wcC10ZXN0LXBhc3N3b3Jk</auth>
</OUTPUT>
<INPUT test='AdminAdHoc sess-man_3_4 (c2s)'>
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>
</INPUT>
<OUTPUT test='AdminAdHoc sess-man_3_4 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-domain' version='1.0'>
</OUTPUT>
<INPUT test='AdminAdHoc sess-man_3_4 (c2s)'>
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="test-domain" id="eaa751c7-9173-48b7-a11b-742dfad46e89" version="1.0" xml:lang="en"/>
</INPUT>
<INPUT test='AdminAdHoc sess-man_3_4 (c2s)'>
<stream:features><register xmlns="http://jabber.org/features/iq-register"/><csi xmlns="urn:xmpp:csi:0"/><ver xmlns="urn:xmpp:features:rosterver"/><sub xmlns="urn:xmpp:features:pre-approval"/><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"><optional/></session></stream:features>
</INPUT>
<OUTPUT test='AdminAdHoc sess-man_3_4 (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 sess-man_3_4 (c2s)'>
<iq to="domain-admin@test-domain/def-user-resource" xmlns="jabber:client" id="bind1" type="result"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>domain-admin@test-domain/def-user-resource</jid></bind></iq>
</INPUT>
<OUTPUT test='AdminAdHoc sess-man_3_4 (c2s)'>
<iq to="sess-man@test-domain" id="user-roster-management" from="domain-admin@test-domain/def-user-resource" type="set">
<command xmlns="http://jabber.org/protocol/commands" node="user-roster-management"/>
</iq>
</OUTPUT>
<INPUT test='AdminAdHoc sess-man_3_4 (c2s)'>
<iq to="domain-admin@test-domain/def-user-resource" xmlns="jabber:client" id="user-roster-management" from="sess-man@test-domain" type="result"><command xmlns="http://jabber.org/protocol/commands" status="executing" node="user-roster-management"><x xmlns="jabber:x:data" type="form"><field var="rosterOwnerJID" label="Roster owner JID" type="jid-single"><value/></field><field var="jidToManipulate" label="JID to manipulate" type="jid-single"><value/></field><field var="groups" label="Comma separated groups" type="text-single"><value/></field><field var="operationType" label="Operation type" type="list-single"><value>addJid</value><option label="Add"><value>addJid</value></option><option label="Remove"><value>removeJid</value></option></field><field var="subscriptionType" label="Subscription type" type="list-single"><value>both</value><option label="None"><value>none</value></option><option label="From"><value>from</value></option><option label="To"><value>to</value></option><option label="Both"><value>both</value></option></field></x><actions execute="complete"><complete/></actions></command></iq>
</INPUT>
<OUTPUT test='AdminAdHoc sess-man_3_4 (c2s)'>
<iq to="sess-man@test-domain" id="user-roster-management" from="domain-admin@test-domain/def-user-resource" type="set">
<command xmlns="http://jabber.org/protocol/commands" node="user-roster-management">
<x xmlns="jabber:x:data" type="submit">
<field var="rosterOwnerJID" type="jid-single">
<value>domain-admin@test-domain/def-user-resource</value>
</field>
<field var="jidToManipulate" type="jid-single">
<value>all-xmpp-test@test-domain</value>
</field>
<field var="groups" type="text-single">
<value>group1</value>
</field>
<field var="operationType" type="list-single">
<value>addJid</value>
</field>
<field var="subscriptionType" type="list-single">
<value>both</value>
</field>
</x>
</command>
</iq>
</OUTPUT>
<INPUT test='AdminAdHoc sess-man_3_4 (c2s)'>
<iq to="domain-admin@test-domain/def-user-resource" xmlns="jabber:client" id="rsttig3" type="set"><query ver="" xmlns="jabber:iq:roster"><item jid="all-xmpp-test@test-domain" name="all-xmpp-test@test-domain" subscription="both"><group>group1</group></item></query></iq>
</INPUT>
<INPUT test='AdminAdHoc sess-man_3_4 (c2s)'>
<iq to="domain-admin@test-domain/def-user-resource" xmlns="jabber:client" id="user-roster-management" from="sess-man@test-domain" type="result"><command xmlns="http://jabber.org/protocol/commands" status="completed" node="user-roster-management"><x xmlns="jabber:x:data" type="result"><field var="Note" type="fixed"><value>Operation successful</value></field></x></command></iq>
</INPUT>

</test-history>