How i can check if account exists ?
i tried send this stanza to search account:
<iq type="get" xmlns="jabber:client" id="e484ad16-0ecf-4253-a1d0-c64de4238aae:sendIQ">
<query xmlns="jabber:iq:search"/>
</iq>
and get response error:
<iq xmlns="jabber:client" to="juju@104.131.116.230/12983634858610104855930" from="juju@104.131.116.230" type="error" id="52827ab6-ddbc-40c2-90a2-bcc88af68eab:sendIQ">
<query xmlns="jabber:iq:search"/>
<error code="503" type="cancel">
<service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
<text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">No module is handling this query</text>
</error>
</iq>
how can solve this ? or how can check account exists ?
If the server has mod_vcard
If the server has mod_vcard enabled, with the option search: true, and the account published his vCard, then you can search for it:
<iq id='37:561031' type='set' to='vjud.localhost'>
<query xmlns='jabber:iq:search'>
<x type='submit' xmlns='jabber:x:data'>
<field var='user'>
<value>user2</value>
</field>
</x>
</query>
</iq>
mod_vcard is disabled.
mod_vcard is disabled.
to search account needs
to search account needs v_card enabled ?
Account existence is
Account existence is considered a private information, so in Jabber/XMPP it is NOT revealed if an account exists or not.
There is an alternative, a trick: enable mod_vcard, enable search, and tell users to publish their vcard; then it is possible to search for those vcards.
search belongs to a v_card or
search belongs to a v_card or is an separaed feature ?
search in vcard requires
search in vcard requires mod_vcard enabled, and requires that the user publishes his vcard
how i can do user publish his
how i can do user publish his vcard on create account?