I did something like this some time ago, but for my solution you should use different domains for each user, for example:
Saiku web access with login was the type: saiku.mydomain.com
All domains enter to saiku using serverAlias in apache.
Then in the file: tomcat/webapps/ROOT/js/saiku/Settings.js
Add some lines like:
if (window.location.hostname && (window.location.hostname
== "user1_hash.mydomain.com" )) {
Settings.USERNAME = "user1";
Settings.PASSWORD = "password1";
Settings.DEMO = true;
Settings.UPGRADE = false;
}
if (window.location.hostname && (window.location.hostname
== "user2_hash.mydomain.com" )) {
Settings.USERNAME = "user2";
Settings.PASSWORD = "password2";
Settings.DEMO = true;
Settings.UPGRADE = false;
}
--
You received this message because you are subscribed to the Google Groups "Saiku Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dev+uns...@saiku.meteorite.bi.
To unsubscribe from this group and stop receiving emails from it, send an email to dev+unsubscribe@saiku.meteorite.bi.
--
You received this message because you are subscribed to a topic in the Google Groups "Saiku Dev" group.
To unsubscribe from this topic, visit https://groups.google.com/a/saiku.meteorite.bi/d/topic/dev/YipyMybRLa4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dev+unsubscribe@saiku.meteorite.bi.
You must own the domain name, be able to create subdomains and to point them to your saiku server, thein in Saiku server apache configuration you should add a virtualhost:
NameVirtualHost *:80
<VirtualHost *:80>
ProxyPass / ajp://localhost:8009/
ServerName saiku.mydomain.com
ServerAlias user1_hashed.mydomain.com
ServerAlias user2_hashed.mydomain.com
</VirtualHost>
But it can also be implemented using different IP address configured at the same network addapter using IP Aliasing.
If the Saiku Server IP is: 10.0.0.1 you can add two more IPs as alias: 10.0.0.2 and 10.0.0.3 and then the Settinngs.js will be:
if (window.location.hostname && (window.location.hostname == "10.0.0.2" )) {
Settings.USERNAME = "user1";
Settings.PASSWORD = "password1";
Settings.DEMO = true;
Settings.UPGRADE = false;
}
if (window.location.hostname && (window.location.hostname == "10.0.0.3" )) {
Settings.USERNAME = "user2";
Settings.PASSWORD = "password2";
Settings.DEMO = true;
Settings.UPGRADE = false;
}
To unsubscribe from this group and stop receiving emails from it, send an email to dev+uns...@saiku.meteorite.bi.
--
You received this message because you are subscribed to a topic in the Google Groups "Saiku Dev" group.
To unsubscribe from this topic, visit https://groups.google.com/a/saiku.meteorite.bi/d/topic/dev/YipyMybRLa4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dev+uns...@saiku.meteorite.bi.