web_custom_request("Fiddler_Request",
"URL=http://{hostname}/nhttp-bind/",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Mode=HTML",
"Body=<body rid='{rid}' xmlns='http://jabber.org/protocol/httpbind' sid='{sid}'><auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>cGF4dHJhLTAtNC54dHJhYWxsLnRob21zb25yZXV0ZXJzLmNvbUByZXVhc21iLm5ldABwYXh0cmEtMC00Lnh0cmFhbGwudGhvbXNvbnJldXRlcnMuY29tAGMzZDNjY2U2ZmI5YzQ4YmViODdjNzhlZTJhZmIzMDkz</auth></body>",
LAST);
I'm having trouble with the above web_url inside my vugen script. This is part of the login where an authentication token is getting passed. The problem is that this token gets generated on the client side (the token is actually a hash of the username and password) and hence it can not be correlated. The only way to successfully pass this token is to correctly generate it inside my script. Our DEV folks have mentioned that I need to find an xmpp library (written in either C or java) which contains a function that can accept the username and password as input and spits out the above token as output. I think I have managed to find the correct xmpp library written in C and its called libstrophe. The function of interest to me is located here.
----------------------------------------------------
However, I'm unable to implement it inside my vugen script. Does not compile... probably because this C library was written for 32-bit machines!
Has anyone here done anything like this before? The problem I'm trying to solve to generate the above urn:ietf:params:xml:ns:xmpp-sasl authentication token from userid and password. Any help is greatly appreciated.