Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Team,
We have requirement where we need to use Windows authentication to get ticket instead of Trusted IP in config file.
We have followed the below settings, but still getting error.
PFB -
Settings -
QlikView needs to trust the code asking for the ticket. There is a web page within the QlikView web server called GetWebTicket.aspx which handles requests for tickets, this will only return a ticket to a trusted user/process and this is identified using one of two options
Error -
WARNING: NEGOTIATE authentication error: No valid credentials provided (Mechanism level: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt))
org.apache.http.client.HttpResponseException: Internal Server Error
at org.apache.http.impl.client.AbstractResponseHandler.handleResponse(AbstractResponseHandler.java:69)
at org.apache.http.impl.client.BasicResponseHandler.handleResponse(BasicResponseHandler.java:65)
at connectToQlik.getTicket(connectToQlik.java:134)
at connectToQlik.testIt(connectToQlik.java:59)
at connectToQlik.main(connectToQlik.java:40)
I have provide windows credentials also the user is present in Administrator and QlikView Management API group.
Can anyone help me on the same.
Regards,
Akshay
Hi All,
Can anyone help me on the above request.
Regards,
Akshay
hi akshay,
are you passing administrator credentials while hitting httprequest in webticket page
you need to pass request.networkcredentials as administrator credentials this will be default credential for every login user.
Hi Narasimha,
Thanks for your reply.
I am passing Windows user credential , which is QlikAdmin User also.
Can you please explain more on this - "you need to pass request.networkcredentials as administrator credentials this will be default credential for every login user."
Regards,
Akshay
Here ticketinguser, ticketingpassword are admin userid and password (windows credentials)
HttpWebRequest client = (HttpWebRequest)WebRequest.Create(new Uri(QlikViewServerURL));
client.PreAuthenticate = true;
client.Method = "POST";
client.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
client.Credentials = new NetworkCredential(ticketinguser, ticketingpassword);
using (StreamWriter sw = new StreamWriter(client.GetRequestStream()))
sw.WriteLine(webTicketXml);
StreamReader sr = new StreamReader(client.GetResponse().GetResponseStream());
string result = sr.ReadToEnd();
XDocument doc = XDocument.Parse(result);
return doc.Root.Element("_retval_").Value;