On 16.05.2014 16:04, Christian Gruen wrote:


Has anyone an idea what i am missing here? I would deeply grateful if
someone could post a working Apache config here. Or could give hint
that points me into he right direction.

I'd say that's more of an application problem not sending basic auth if configured. The sencha methods used could do that, though it's kind of a hackery making these options available as configurable items.

Looking at
https://git.icinga.org/?p=icinga-mobile.git;a=blob;f=lib/Model/IcingaApiStore.js;h=0bf6638af011c15da5f339fecaef718d089e13f3;hb=HEAD#l116
unveils that the headers are not modified when sending a request.

Similar to sending a command here
https://git.icinga.org/?p=icinga-mobile.git;a=blob;f=lib/Model/IcingaCommandSender.js;h=0d2383e5fe116967138edcb0b611f132bf848712;hb=HEAD#l17
and the general file
https://git.icinga.org/?p=icinga-mobile.git;a=blob;f=deploy/IcingaMobile-debug.js;h=49e1af369e8797366be83e3f3e37b673c89751ce;hb=HEAD#l432

By sending a base64 encoded authorization string of user/pass, this could work (REST is similar to SOAP here).
http://stackoverflow.com/questions/3298891/using-authentication-with-ajax-request

Tbh that's just a blind guess, and requires one patching it into, testing it and creating an upstream compatible patch. If it even works, and the apache config thingy isn't solvable.

Jannis should know more here being the original author.

Regarding the apache foo - you must handle the exclusion directly in the /icinga-web location. Similar to http://stackoverflow.com/questions/13950207/how-to-make-basic-auth-exclude-a-rewritten-url (only a quick google, untested)

kind regards,
Michael


--
DI (FH) Michael Friedrich

michael.friedr...@gmail.com  || icinga open source monitoring
https://twitter.com/dnsmichi || lead core developer
dnsmi...@jabber.ccc.de       || https://www.icinga.org/team
irc.freenode.net/icinga      || dnsmichi

_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to