You could also produce the metadata elsewhere (with whatever tools you
desire), sign it (optionally, but makes the next step secure) and load
it from all components over the network?
Adding IdPs should not involve editing any config files.
-peter
We're usign
http://simplesamlphp.org/docs/1.7/simplesamlphp-automated_metadata
-peter
Load XXXX is a line in SimpleSAML_autoload for debug purposes...as well as
file info line..
Load SimpleSAML_Error_Assertion
file
/var/sites/XXXX/lib/third_party/simplesamlphp/lib/SimpleSAML/Error/Assertion
.php
Locad SimpleSAML_Error_Exception
File
/var/sites/XXXX/lib/third_party/simplesamlphp/lib/SimpleSAML/Error/Exception
.php
Before Utils load...
Redirect
You were redirected to:
https://ssotest.crsinc.com/simplesaml/module.php/core/frontpage_welcome.php
clicking on link will bring me to installation page, preceeded by php info
output again..
Before Utils load...
--
You received this message because you are subscribed to the Google Groups
"simpleSAMLphp" group.
To post to this group, send email to simple...@googlegroups.com.
To unsubscribe from this group, send email to
simplesamlph...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/simplesamlphp?hl=en.
Before Utils load...
IT IS THE Zend AutoLoader that is conflicting I believe.
Sure, it does. Your problem description (and hence your proposed
implementation to "fix" this) still seems to stem from a misconception
that you'd need to edit text files on several machines in order to add
(or remove) SAML entities. (Not that managing files on multiple
maschines and platforms is an unsolved problem itself, thanks to
cfengine, puppet and friends.)
Accessing a shared networked database is one way to deal with this.
Having all your machines pull the metadata over the network is
another. And, not irrelevant if you're not doing this just for the fun
of it, one that exists today and does not create a new SPOF or
mandates operating a highly available RDBMS. (Clustering HTTP
resources for GET requests is both trivial and dirt cheap in
comparison. Also no DBA required.)
-peter
We will have as many as 10^4 machines needing to access this data. Its hard for me to believe this hasn't been attempted already by someone in my position.
Again, the parsing logic will remain the same, it's the pieces that pull metadata and authsource information into memory that i need to change. Is no one of any help here?
Brendan
No idea what you're talking about. I never mentioned NFS and I never
mentioned metashare (whatever that may be).
I simply said that pulling metadata via HTTP exists today, is used by
thousands of SAML entities worldwide, and is both operationally
trivial and cheap to setup highly available.
-peter
And how is the Zend autoloader registered? Does it not use the standard
PHP function spl_autoload_register()? If a framework does not use that
function, you will easily get conflicts between different autoloaders.
Also: Are you including www/_include.php from your own code? That is
not the recommended way of using simpleSAMLphp. Instead, from your own
code, you should load lib/_autoload.php. www/_include.php is for use by
files in the www-directory.
Regards,
Olav Morken
UNINETT / Feide
There is no framework in place for doing what you want to do (i.e.
retrieve metadata in a database), so you are pretty much on your own. I
have some thoughts to making it possible to define custom metadata
sources, but I haven't found the time to try to implement it.
Also: Why do you need to change the authsources-configuration? Do you
have one authsource for each IdP? Is there a specific reason for why
you need that?
I have some thoughts to making it possible to define custom metadata
sources, but I haven't found the time to try to implement it.
Also: Why do you need to change the authsources-configuration? Do youhave one authsource for each IdP? Is there a specific reason for why
you need that?
Thanks for your help in advance, I really appreciate your efforts on such a quality product.
In theory, yes. Alternatively, you could create your own copy of that
class, and add your own class to MetaDataStorageSource::getSource().
Of course, both these local modifications are in no way guaranteed to
work for future releases of simpleSAMLphp.
> Is this the
> only endpoint I would have to worry about - filling the return
> array $ret[$entityId] = $md; from getMetaDataSet() correctly?
You only need the getMetaDataSet()-function if you use one of the
built-in IdP discovery services. If you do not use those, the
getMetaDataSet()-function can return an empty array.
> > Also: Why do you need to change the authsources-configuration? Do you
> >
> >> have one authsource for each IdP? Is there a specific reason for why
> > you need that?
> >
>
> Good question, I currently have different authsource entries for each IdP -
> is this redundant? I use the authsource name to call
> requireAuth('authsource-name') for the correct IdP. How would I maintain
> only one authsource entry but still uniquely identify different IdP's for
> each user at runtime? If so this might save me from trying to address that
> by changing the getById() method to look in a database...
You can start SSO to a specific IdP by using:
$as = new SimpleSAML_Auth_Source('default-sp');
$as->requireAuth(array('saml:idp' => 'idp-entity-id'));
However, note that this function will not check that you are currently
authenticated to that IdP; it will only check that you are
authenticated to one IdP. To determine the current IdP, you can do:
$idp = $as->getAuthData('saml:sp:IdP');
Diffs are good if anyone will want to apply them to their codebase.
I'm sure no one will take my changes 1:1 as I'm using Zend framework and specific db structure. The code was only posted to show the idea, hence no diff.
Ok, lets leave it here. Just wanted to save time those who look for similar solution. That's it.
Chill out.
EOT from my side.