Modify is_lasso_ecp_enabled() to test for library symbol
authorJohn Dennis <jdennis@redhat.com>
Mon, 14 Sep 2015 21:24:23 +0000 (17:24 -0400)
committerPatrick Uiterwijk <puiterwijk@redhat.com>
Wed, 16 Sep 2015 11:11:08 +0000 (13:11 +0200)
commit90b83874aa8f7d6f9d535cb7516704ca99ec89da
treeec9e9c283f3831ada6d85239968b586ae56766cd
parent69e36339d84cce889d520a89c89c151fb789eff6
Modify is_lasso_ecp_enabled() to test for library symbol

The function is_lasso_ecp_enabled() in saml2idp.py was testing for a
specific lasso version. That has proved problematic because we've had
too many "unofficial" versions floating around and sometimes the
version check produces the wrong result.

A better test is to test for the presence of a symbol in the lasso
library we know will only be there with full ECP support.

Now we test for the presence of ECP_ERROR_MISSING_AUTHN_REQUEST.

Ticket: 167
Signed-off-by: John Dennis <jdennis@redhat.com>
Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
ipsilon/providers/saml2idp.py