Multiple config's multiple templates?

152 views
Skip to first unread message

Kriss

unread,
Feb 1, 2012, 10:28:44 AM2/1/12
to simpleSAMLphp
Hi, im new with this so i have some issues with my requirements,

I have few applications (all on the same server) and few auth sources
(Ldap, local mysql, rest web service...),

- how can multiple sites have thair own (login) template ?
- can auth be checked aganst all providers (Ldap, local mysql, rest
web service...)?


For now I managed to make the templates but i can set only on of them
in config.php, is there a way to have multiple config files like
//site1
SimpleSAML_Configuration::setConfigDir('/var/simplesamlphp/
configSite1');
$this->Saml = new SimpleSAML_Auth_Simple('site1ldap');

//site2
SimpleSAML_Configuration::setConfigDir('/var/simplesamlphp/
configSite2);
$this->Saml = new SimpleSAML_Auth_Simple('site2ldap');
....

Thanks

Olav Morken

unread,
Feb 2, 2012, 1:53:15 AM2/2/12
to simple...@googlegroups.com
On Wed, Feb 01, 2012 at 07:28:44 -0800, Kriss wrote:
> Hi, im new with this so i have some issues with my requirements,
>
> I have few applications (all on the same server) and few auth sources
> (Ldap, local mysql, rest web service...),
>
> - how can multiple sites have thair own (login) template ?

Not on the same simpleSAMLphp installation.

> - can auth be checked aganst all providers (Ldap, local mysql, rest
> web service...)?

I assume that you want it to check them all in some sequence, and use
the first successful authentication? There is no support for that.
Patches to add an authentication source that tries multiple other
authentication sources is welcome :)


> For now I managed to make the templates but i can set only on of them
> in config.php, is there a way to have multiple config files like
> //site1
> SimpleSAML_Configuration::setConfigDir('/var/simplesamlphp/
> configSite1');

The setConfigDir()-function isn't meant to be used in applications. It
may work, but it may also fail to work.


Best regards,
Olav Morken
UNINETT / Feide

Reply all
Reply to author
Forward
0 new messages