* Jaime Perez Crespo <
jaime...@uninett.no> [2018-01-22 10:15]:
> Peter, do you mind applying the following patch and telling me if it
> then works as expected?
Thanks Tim and Jaime for the responses.
@Jaime: Yes, that code works for my purposes (i.e., setting
NameIDPolicy to NULL establishes the earlier behaviour of not
including a NameIDPolicy element in the SAML authn request), thanks!
*But* I think it also has the -- probably unintended -- effect of
changing the default behaviour when not setting NameIDPolicy at all:
Before 'transient' was requested with NameIDPolicy unset (that's also
what the documentation states), now with your code suggestion the
effect of unset NameIDPolicy is the same as setting NameIDPolicy to
null: No NameID format will be requested.
Whether that's a good changed default behaviour or not is another
discussion (as now MS-ADFS deployers will likely complain, since AFAIK
MS-ADFS only issues NameIDs at all if specifically asked for them in
the authnRequest; and last time I checked SSP fell over dead with an
unhandled exception if no NameID at all was part of the Assertion;
even though they're optional in SAML and only useful for SLO, which
itself is 99% broken/unusable in large-scale deployments) -- but I
think it's an unintended change.
-peter