Commit Graph

4837 Commits

Author SHA1 Message Date
Benjamin Dauvergne c1a4ba2fc0 Merge branch 'issue-88' 2010-06-29 09:15:02 +00:00
Benjamin Dauvergne 6f617027e9 Merge branch 'issue-86' 2010-06-29 09:15:00 +00:00
Benjamin Dauvergne d9d4e6ae38 [Tests/integration] add G_DEBUG=gc-friendly env. var to valgrind-wrapper
It should improve valgrind ability to trace memory origin.
2010-06-18 08:05:55 +00:00
Benjamin Dauvergne ef36d5cad3 [XML] in lasso_node_export_to_paos_request check return value of lasso_node_get_xmlNode 2010-06-17 11:42:45 +00:00
Benjamin Dauvergne eac190160c [XML] in _lasso_node_export_to_base64 check return value of lasso_node_export_to_xml 2010-06-17 11:42:43 +00:00
Benjamin Dauvergne 8c46b3dd58 [XML] in _lasso_node_export_to_xml check return value of lasso_node_get_xmlNode 2010-06-17 11:42:41 +00:00
Benjamin Dauvergne 751d02ed4d Comment out custom silent rules if automake < 1.11 2010-06-15 11:33:01 +00:00
Benjamin Dauvergne 8dd38b7746 [Core] do not ignore keep_xmlnode flag inherited from parent classes
We only looked to the keep_xmlnode flag in the node data of the top
level class, but any parent class can set this flag and in this case we
must honor it too.
2010-06-15 11:33:00 +00:00
Benjamin Dauvergne bf2274f20d Test: add non regression test for reloading a server dump with encrypted keys 2010-06-14 21:21:29 +00:00
Benjamin Dauvergne c1902b7d7e Core: when reloading a dump, use the signing private key password for loading the encryption private key
We currently do not store the encryption private key, instead on reload
of a dump, we try to use the signing private key as the encryption
private key. But we forgot to use the stored private key password.
That's now fixed.

Next step would be to keep the encryption private key around also.
2010-06-14 21:21:27 +00:00
Benjamin Dauvergne 900a8008c4 Binding python: fix freeing of list return values for methods with the transfer full flag
The output 'print' were missing, oups :(
2010-06-14 21:21:25 +00:00
Benjamin Dauvergne fbb0ef52ee Binding python: find a work around for random behaviour of PyImport_ImportModule
* it seems that PyImport_ImportModule is not deterministic. Sometimes it
   returns True for modules which we know are present ('logging').
   Importing 'sys' first seems to make 'logging' accessible (complete
   cargo cult programming).
2010-06-12 00:43:51 +00:00
Benjamin Dauvergne a9b673cd4a Core: move logging function and macros to their own module, adapt perl binding 2010-06-12 00:43:49 +00:00
Benjamin Dauvergne c4ac4f652c Core: move lasso_strerror declaration to errors.h 2010-06-12 00:43:43 +00:00
Benjamin Dauvergne d4551542c6 add .gitignore file 2010-06-12 00:43:35 +00:00
Benjamin Dauvergne b773217b54 Tools: add check-makefile.sh script to tools 2010-06-12 00:43:31 +00:00
Benjamin Dauvergne 477e6896a9 add abi file for 2.2.91 2010-06-12 00:43:29 +00:00
Benjamin Dauvergne bcb0d7f91b Tests: add idp6-saml2 data 2010-06-12 00:43:27 +00:00
Benjamin Dauvergne 88862b11b0 Test: add python test for attribute requesting
* What's tested:
  - request initialization
  - adding attribute designators
  - building the request message
  - processing the request message
  - accepting the request
  - adding assertion with attributes
  - signing the assertion
  - building the response
  - parsing the response
2010-06-12 00:43:24 +00:00
Benjamin Dauvergne 49deb1ffcb SAMLv2: rename lasso_saml2_name_id_build_persistent to lasso_saml2_name_id_new_with_persistent_format
* keep the old one for compatibility
 * new one will be picked by bindings as a constructor
2010-06-12 00:43:20 +00:00
Benjamin Dauvergne c7539efbe0 SAMLv2: when initializing signture on assertion, setup an ID if there is none
* without the ID lasso refuse to sign (it's mandatory)
2010-06-12 00:43:14 +00:00
Benjamin Dauvergne 601aadbf8f SAMLv2: in lasso_assertion_query_build_request_msg setup nameid
* lasso_profile_get_nameIdentifier does not return profile->nameIdentifier
,
   so we first try to use profile->nameIdentifier and if it is NULL we use
   lasso_profile_get_nameIdentifier.
2010-06-12 00:43:09 +00:00
Benjamin Dauvergne 94377b822f Binding python: fix bad refcounting in get_logger and lasso_python_log 2010-06-12 00:42:58 +00:00
Benjamin Dauvergne 93bea17474 Core: update lasso_iso_8601_gmt_to_time_t to support milliseconds
* We now support the two possible formats for xsdtime XSchema datatype:
    - dddd-dd-ddTdd:dd:ddZ
    - dddd-dd-ddTdd:dd:dd.d*Z

   Where d denotes a digit, and * is the kleene star.

   XSD datetime also supports negative years, but as we cannot represent
   them with time_t, we can reject it at the lexical level.
2010-06-10 21:26:10 +00:00
Benjamin Dauvergne ad081094e9 Documentation: add new AssertionQuery methods to documentation 2010-06-10 21:26:06 +00:00
Benjamin Dauvergne b6bdb0d33e Tests: new python test for setEncryptionPrivateKeyWithPassword 2010-06-10 13:38:08 +00:00
Benjamin Dauvergne 2f7723348d Fix long lines in lasso/id-ff/server.c 2010-06-10 13:38:05 +00:00
Benjamin Dauvergne 0986fa439a Core: add method lasso_server_set_encryption_private_key_with_password
* fixes #91.
2010-06-10 13:38:02 +00:00
Benjamin Dauvergne c6fa47127e SAMLv2: add new methods to class LassoAssertionQuery
* lasso_assertion_query_add_attribute_request:
   helper to setup request attribute for AttributeQuery messages.
 * lasso_assertion_query_get_request_type:
   method to find the type of the last received query.
 * fixes #90
2010-06-10 13:38:00 +00:00
Benjamin Dauvergne e69cbabde1 SAMLv2: fix initialization of subject in lasso_assertion_query_build_request_msg 2010-06-10 13:37:58 +00:00
Benjamin Dauvergne d0a2135f60 Import tools in utils.h 2010-06-10 13:37:56 +00:00
Benjamin Dauvergne 779200ca4c Fix collision between defined symbols in tools.h and private.h 2010-06-10 13:37:53 +00:00
Benjamin Dauvergne 72361f16b3 Binding python: if lasso.logger exists use it for logging
* There is now two paths to get a logger in the python binding:
   - first try to get an objet from lasso.logger
   - if it doesn't exist or is None, the try logging.getLogger('lasso')
2010-06-10 07:58:14 +00:00
Benjamin Dauvergne 2c0ea4d647 Change all logging to use message() 2010-06-09 16:54:55 +00:00
Benjamin Dauvergne aeb27a107c Core: in xml error message handler, escape messages to fit on one line 2010-06-09 16:54:54 +00:00
Benjamin Dauvergne 59d406b8a6 Core: remove arrow in log messages 2010-06-09 16:54:53 +00:00
Benjamin Dauvergne 9078ad41fd Binding python: call lasso_init() first in init_lasso() 2010-06-09 16:54:52 +00:00
Benjamin Dauvergne 05b537876b Binding python: add GLog handler to redirect logs to Python logger named "lasso"
* fixes #20
2010-06-09 16:54:50 +00:00
Benjamin Dauvergne 80a930cc37 Utils: add function to extract/create node in lists
* lasso_extract_gtype_from_list_or_new will help for method with create
   or extend nodes in lists.
2010-06-09 16:54:49 +00:00
Frédéric Péters 4c130d779a Add new lasso_log_set_handler and lasso_log_remove_handler functions
They are modeled around the g_log... functions of GLib, they just don't
have a domain parameter.
2010-06-09 07:51:52 +00:00
Benjamin Dauvergne baa4148645 Binding perl: fix test so that it does not raise on add_provider 2010-06-06 14:03:59 +00:00
Benjamin Dauvergne 52372fa437 Bindings: keep retro compatibility for member field names
* Special kludge price go to PHP:
   methods name are insensitive so nothing to do here, BUT, if you use
   getters/setters then your objects fields can be case insensitive too
   ;-) (DNS, dns, DnS, dNs all maps to get_dns ).
2010-06-06 14:03:57 +00:00
Benjamin Dauvergne 692e298597 Bindings: fix camelcasing of id fields 2010-06-06 14:03:54 +00:00
Benjamin Dauvergne 6526985342 SAMLv2: make role checking inactive for LassoServer
* LassoServer have no role defined, so checking breaks loading of
   metadata for LassoServer.
2010-06-06 14:03:52 +00:00
Benjamin Dauvergne 64dd61b1a8 ID-FFv1.2: for idp initiated sso accept any nameIdPolicy
* IdP initiated SSO can be of any kind, no need to limit it.
2010-06-06 14:03:49 +00:00
Benjamin Dauvergne b7e2f36e67 SAML 2.0: add checks for proper loading of role descriptors
* remove warning for descriptors supporting non SAML 2.0 protocols
 * checks that at least one descriptor was loaded and that it was for
   our assigned role.
2010-06-04 09:32:50 +00:00
Benjamin Dauvergne 4a55c53ee6 SAMLv2: fix error in naming of function in the documentation 2010-06-04 09:32:48 +00:00
Benjamin Dauvergne 5fdf579a94 SAMLv2: remove HTTP-Redirect as right binding for AssertionConsumer 2010-05-31 07:13:52 +00:00
Benjamin Dauvergne 8b72703948 SAMLv2: fix bug giving UnuspportedProfile for SingleSignOn with HTTP-POST
* The string constant in lasso_saml20_provider_accept_http_method was
   HTTP-Post instead of HTTP-POST.
2010-05-31 07:13:50 +00:00
Benjamin Dauvergne f4130519fc Core: fix extraction of relaystate when URLs contains only one kind of separators 2010-05-31 07:13:46 +00:00