Ignore:
Timestamp:
27/11/08 10:13:08 (11 years ago)
Author:
pjkersha
Message:

Added and tested dbauthn module to Session Manager authentication interfaces. This uses SQLAlchemy to enable the Session Manager to use database based authentication as an alternative to MyProxy.

  • added optional settings to sessionmanager unit test to enable testing for this - tested vs. a PostGres? db.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/sessionmanager/sessionMgr.cfg

    r4402 r4500  
    121121# Specific settings for BasicAuthN Session Manager authentication plugin 
    122122# This sets up two test accounts.  Passwords are MD5 encrypted 
    123 authNService.basicAuthN.accounts: testuser:776767df1f96e3b773eceffad55c61eae53ea31fef3563732046a7a6 ndg-user:d63dc919e201d7bc4c825630d2cf25fdc93d4b2f0d46706d29038d01 
     123authNService.accounts: testuser:e16b2ab8d12314bf4efbd6203906ea6c ndg-user:e16b2ab8d12314bf4efbd6203906ea6c 
    124124 
     125## Example settings for Database based authentication - requires access to a 
     126# database; uses SQLAlchemy for Python database bindings 
     127#authNService.moduleName: ndg.security.server.authnservice.dbauthn 
     128#authNService.className: DatabaseAuthN 
     129#authNService.connectionString: postgres://testuser:testpassword@localhost/testUserDb 
     130## This query must return zero rows for invalid credentials entered 
     131#authNService.sqlQuery: select username from users where username = '%%(username)s' and md5_passwd = '%%(password)s' 
     132#authNService.isMD5EncodedPwd: True 
    125133 
Note: See TracChangeset for help on using the changeset viewer.