<test-history test='VHost 4'>
<OUTPUT test='VHost 4'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'/>
</OUTPUT>
<INPUT test='VHost 4'>
<stream:stream xml:lang="en" xmlns:stream="http://etherx.jabber.org/streams" version="1.0" from="test-d" id="ec22b0a4-6edc-4c3b-b876-df6c528d27f1" xmlns="jabber:client"/>
</INPUT>
<INPUT test='VHost 4'>
<stream:features><auth xmlns="http://jabber.org/features/iq-auth"/><register xmlns="http://jabber.org/features/iq-register"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>DIGEST-MD5</mechanism><mechanism>CRAM-MD5</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms></stream:features>
</INPUT>
<OUTPUT test='VHost 4'>
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'/>
</OUTPUT>
<INPUT test='VHost 4'>
<challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cmVhbG09InRlc3QtZCIsbm9uY2U9IlM2aDhzQWtyTVErOXVCMUV3Q0hSK3ZBa0Q1V3NNTkhWTTJkWi9DR3ciLHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=</challenge>
</INPUT>
<OUTPUT test='VHost 4'>
<response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>Y2hhcnNldD11dGYtOCx1c2VybmFtZT0iYWxsLXhtcHAtdGVzdCIscmVhbG09InRlc3QtZCIsbm9uY2U9IlM2aDhzQWtyTVErOXVCMUV3Q0hSK3ZBa0Q1V3NNTkhWTTJkWi9DR3ciLG5jPTAwMDAwMDAxLGNub25jZT0iNDg0VDNEWnl2T1pYaTFJb1hoU3EwU2hoRUVRRjBPc2Z3OFhDcVlvciIsZGlnZXN0LXVyaT0ieG1wcC90ZXN0LWQiLG1heGJ1Zj02NTUzNixyZXNwb25zZT1iYjFhZDI1MDhjN2ZjNmY0NmFjNDY0ODMzMzliNmQ0MSxxb3A9YXV0aCxhdXRoemlkPSJhbGwteG1wcC10ZXN0Ig==</response>
</OUTPUT>
<INPUT test='VHost 4'>
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cnNwYXV0aD1hOGU4ZDg2YzBjNTE2ZmE1ZjhlMDM2NjBlZGVhNjk2Mg==</success>
</INPUT>
<OUTPUT test='VHost 4'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
</OUTPUT>
<INPUT test='VHost 4'>
<stream:stream xml:lang="en" xmlns:stream="http://etherx.jabber.org/streams" version="1.0" from="test-d" id="ec22b0a4-6edc-4c3b-b876-df6c528d27f1" xmlns="jabber:client"/>
</INPUT>
<INPUT test='VHost 4'>
<stream:features><register xmlns="http://jabber.org/features/iq-register"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/></stream:features>
</INPUT>
<OUTPUT test='VHost 4'>
<iq type='set' id='bind1'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>def-user-resource</resource></bind></iq>
</OUTPUT>
<INPUT test='VHost 4'>
<iq id="bind1" to="all-xmpp-test@test-d/def-user-resource" type="result"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>all-xmpp-test@test-d/def-user-resource</jid></bind></iq>
</INPUT>
<OUTPUT test='VHost 4'>
<iq id="aacaa" to="vhost-man@test-d" type="set">
<command xmlns="http://jabber.org/protocol/commands" node="VHOSTS_REMOVE"/></iq>
</OUTPUT>
<INPUT test='VHost 4'>
<iq from="vhost-man@test-d" to="all-xmpp-test@test-d/def-user-resource" type="error" id="aacaa"><command xmlns="http://jabber.org/protocol/commands" node="VHOSTS_REMOVE"/><error code="401" type="auth"><not-authorized xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xml:lang="en" xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">You are not authorized for this action.</text></error></iq>
</INPUT>

</test-history>