<test-history test='AdminAdHoc x_21_2 (c2s)'>
<OUTPUT test='AdminAdHoc x_21_2 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-domain' version='1.0'/>
</OUTPUT>
<INPUT test='AdminAdHoc x_21_2 (c2s)'>
<stream:stream xml:lang="en" xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" from="test-domain" id="cd4b6058-471b-490f-96a2-7e822c307314" version="1.0"/>
</INPUT>
<INPUT test='AdminAdHoc x_21_2 (c2s)'>
<stream:features><ver xmlns="urn:xmpp:features:rosterver"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><register xmlns="http://jabber.org/features/iq-register"/><auth xmlns="http://jabber.org/features/iq-auth"/></stream:features>
</INPUT>
<OUTPUT test='AdminAdHoc x_21_2 (c2s)'>
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGRvbWFpbi1hZG1pbgBhbGwteG1wcC10ZXN0LXBhc3N3b3Jk</auth>
</OUTPUT>
<INPUT test='AdminAdHoc x_21_2 (c2s)'>
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>
</INPUT>
<OUTPUT test='AdminAdHoc x_21_2 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-domain' version='1.0'>
</OUTPUT>
<INPUT test='AdminAdHoc x_21_2 (c2s)'>
<stream:stream xml:lang="en" xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" from="test-domain" id="cd4b6058-471b-490f-96a2-7e822c307314" version="1.0"/>
</INPUT>
<INPUT test='AdminAdHoc x_21_2 (c2s)'>
<stream:features><ver xmlns="urn:xmpp:features:rosterver"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><session xmlns="urn:ietf:params:xml:ns:xmpp-session"/><register xmlns="http://jabber.org/features/iq-register"/><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/></stream:features>
</INPUT>
<OUTPUT test='AdminAdHoc x_21_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 x_21_2 (c2s)'>
<iq xmlns="jabber:client" to="domain-admin@test-domain/def-user-resource" 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 x_21_2 (c2s)'>
<iq to="sess-man@test-domain" from="domain-admin@test-domain/def-user-resource" id="user-domain-perm-1" type="set">
<command xmlns="http://jabber.org/protocol/commands" node="user-domain-perm"/>
</iq>
</OUTPUT>
<INPUT test='AdminAdHoc x_21_2 (c2s)'>
<iq to="domain-admin@test-domain/def-user-resource" from="sess-man@test-domain" id="user-domain-perm-1" type="result"><command xmlns="http://jabber.org/protocol/commands" node="user-domain-perm" status="executing"><x xmlns="jabber:x:data" type="form"><field label="User JID" var="jid" type="jid-single"><value/></field><field label="List of domains" var="domain" type="list-single"><value>ALL</value><option label="ALL"><value>ALL</value></option><option label="LOCAL"><value>LOCAL</value></option><option label="OWN"><value>OWN</value></option><option label="BLOCK"><value>BLOCK</value></option><option label="LIST"><value>LIST</value></option></field><field label="Domains List" var="domainList" type="text-single"><value/></field></x><actions execute="complete"><complete/></actions></command></iq>
</INPUT>
<OUTPUT test='AdminAdHoc x_21_2 (c2s)'>
<iq to="sess-man@test-domain" from="domain-admin@test-domain/def-user-resource" id="user-domain-perm-2" type="set">
<command xmlns="http://jabber.org/protocol/commands" node="user-domain-perm">
<x xmlns="jabber:x:data" type="submit">
<field var="jid" type="jid-single">
<value>all-xmpp-test@test-d</value>
</field>
<field var="domain" type="list-single">
<value>BLOCK</value>
</field>
<field var="domainList" type="text-single">
<value/>
</field>
</x>
</command>
</iq>
</OUTPUT>
<INPUT test='AdminAdHoc x_21_2 (c2s)'>
<iq to="domain-admin@test-domain/def-user-resource" from="sess-man@test-domain" id="user-domain-perm-2" type="result"><command xmlns="http://jabber.org/protocol/commands" node="user-domain-perm" status="completed"><x xmlns="jabber:x:data" type="result"><field var="Error" type="fixed"><value>You do not have enough permissions to manage this domain</value></field></x></command></iq>
</INPUT>

</test-history>