<test-history test='AdminAdHoc sess-man_4_2 (c2s)'>
<OUTPUT test='AdminAdHoc sess-man_4_2 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'/>
</OUTPUT>
<INPUT test='AdminAdHoc sess-man_4_2 (c2s)'>
<stream:stream xmlns="jabber:client" version="1.0" xml:lang="en" id="c92ad21f-90a7-42e0-862c-e2ed7a4e67ec" xmlns:stream="http://etherx.jabber.org/streams" from="test-d"/>
</INPUT>
<INPUT test='AdminAdHoc sess-man_4_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>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 sess-man_4_2 (c2s)'>
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFkbWluAHN0YXRz</auth>
</OUTPUT>
<INPUT test='AdminAdHoc sess-man_4_2 (c2s)'>
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>
</INPUT>
<OUTPUT test='AdminAdHoc sess-man_4_2 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
</OUTPUT>
<INPUT test='AdminAdHoc sess-man_4_2 (c2s)'>
<stream:stream xmlns="jabber:client" version="1.0" xml:lang="en" id="c92ad21f-90a7-42e0-862c-e2ed7a4e67ec" xmlns:stream="http://etherx.jabber.org/streams" from="test-d"/>
</INPUT>
<INPUT test='AdminAdHoc sess-man_4_2 (c2s)'>
<stream:features><register xmlns="http://jabber.org/features/iq-register"/><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 sess-man_4_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 sess-man_4_2 (c2s)'>
<iq xmlns="jabber:client" to="admin@test-d/def-user-resource" type="result" id="bind1"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>admin@test-d/def-user-resource</jid></bind></iq>
</INPUT>
<OUTPUT test='AdminAdHoc sess-man_4_2 (c2s)'>
<iq to="sess-man@test-domain" type="set" id="user-roster-management-ext" from="admin@test-d/def-user-resource">
<command xmlns="http://jabber.org/protocol/commands" node="user-roster-management-ext"/></iq>
</OUTPUT>
<INPUT test='AdminAdHoc sess-man_4_2 (c2s)'>
<iq to="admin@test-d/def-user-resource" type="result" id="user-roster-management-ext" from="sess-man@test-domain"><command xmlns="http://jabber.org/protocol/commands" node="user-roster-management-ext" status="executing"><x xmlns="jabber:x:data" type="form"><field type="jid-single" label="Roster owner JID" var="roster-owner-jid"><value/></field><field type="text-single" label="Roster owner name" var="roster-owner-name"><value/></field><field type="text-single" label="Comma separated list of owner groups" var="roster-owner-groups"><value/></field><field type="jid-single" label="Roster item JID" var="roster-item-jid"><value/></field><field type="text-single" label="Roster item name" var="roster-item-name"><value/></field><field type="text-single" label="Comma separated list of item groups" var="roster-item-groups"><value/></field><field type="list-single" label="Roster item Subscription" var="roster-item-subscr"><value>both</value><option label="both"><value>both</value></option><option label="from"><value>from</value></option><option label="to"><value>to</value></option><option label="none"><value>none</value></option></field><field type="list-single" label="Action" var="roster-action"><value>update</value><option label="Add/Update item"><value>update</value></option><option label="Remove item"><value>remove</value></option><option label="Add/Update both rosters"><value>update-ext</value></option><option label="Remove from both rosters"><value>remove-ext</value></option></field><field type="hidden" var="notify-cluster"><value>true</value></field></x><actions execute="complete"><complete/></actions></command></iq>
</INPUT>
<OUTPUT test='AdminAdHoc sess-man_4_2 (c2s)'>
<iq to="sess-man@test-domain" type="set" id="user-roster-management-ext" from="admin@test-d/def-user-resource">
<command xmlns="http://jabber.org/protocol/commands" node="user-roster-management-ext">
<x xmlns="jabber:x:data" type="submit">
<field type="jid-single" var="roster-owner-jid">
<value>admin@test-d/def-user-resource</value></field><field type="text-single" var="roster-owner-name">
<value>admin</value></field><field type="text-single" var="roster-owner-groups">
<value>group-admin</value></field><field type="jid-single" var="roster-item-jid">
<value>admin@test-d</value></field><field type="text-single" var="roster-item-name">
<value>test-d</value></field><field type="text-single" var="roster-item-groups">
<value>user-group</value></field><field type="list-single" var="roster-item-subscr">
<value>both</value></field><field type="list-single" var="roster-action">
<value>update</value></field></x></command></iq>
</OUTPUT>
<INPUT test='AdminAdHoc sess-man_4_2 (c2s)'>
<iq xmlns="jabber:client" to="admin@test-d/def-user-resource" type="set" id="rsttig3"><query xmlns="jabber:iq:roster" ver="dadd38616897d1851eda2afb5846e709"><item jid="admin@test-d" name="test-d" subscription="both"><group>user-group</group></item></query></iq>
</INPUT>
<INPUT test='AdminAdHoc sess-man_4_2 (c2s)'>
<presence to="admin@test-d/def-user-resource" type="probe" from="admin@test-d"/>
</INPUT>
<INPUT test='AdminAdHoc sess-man_4_2 (c2s)'>
<iq to="admin@test-d/def-user-resource" type="result" id="user-roster-management-ext" from="sess-man@test-domain"><command xmlns="http://jabber.org/protocol/commands" node="user-roster-management-ext" status="completed"><x xmlns="jabber:x:data" type="result"><field type="fixed" var="Note"><value>Operation successful</value></field></x></command></iq>
</INPUT>

</test-history>