Changeset 496


Ignore:
Timestamp:
14/10/05 17:47:45 (14 years ago)
Author:
pjkersha
Message:

AttAuthority?.py + AttCert?.py: added NDG prefix to imports to allow for
use of NDG package in python site packages dir.

Session.py: UserSession?.createCookie() - experimented with setting domain
so that cookie is visible across .ac.uk sites.

Location:
security/trunk/python
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • security/trunk/python/NDG.BAK/AttAuthority.py

    r483 r496  
    2727 
    2828# X509 Certificate handling 
    29 from X509 import * 
     29from NDG.X509 import * 
    3030 
    3131# NDG Attribute Certificate 
    32 from AttCert import * 
     32from NDG.AttCert import * 
    3333 
    3434 
  • security/trunk/python/NDG.BAK/AttCert.py

    r474 r496  
    1616import os 
    1717import re 
    18  
    19 # XML signature module based on xmlsec and libxml2 
    20 from xmlSigDoc import * 
    2118 
    2219# XML Parsing 
     
    2926from datetime import timedelta 
    3027 
    31 from X509 import X500DN 
    32 from X509 import X500DNError 
     28# XML signature module based on xmlsec and libxml2 
     29from NDG.xmlSigDoc import * 
     30 
     31from NDG.X509 import X500DN 
     32from NDG.X509 import X500DNError 
    3333 
    3434 
  • security/trunk/python/NDG.BAK/Session.py

    r491 r496  
    14011401                                                            self.getExpiryStr() 
    14021402                                         
    1403              
     1403            # Make cookie as generic as possible for domains - Nb. '.uk' 
     1404            # alone won't work 
     1405            sessCookie[self.__sessIDtagName]['domain'] = '.ac.uk' 
     1406 
     1407                         
    14041408            # Caller should set the cookie e.g. in a CGI script 
    14051409            # print "Content-type: text/html" 
    14061410            # print cookie.output() + os.linesep 
    14071411            if asString: 
    1408                 return sessCookie.output() 
     1412                return sessCookie.output() + os.linesep + sessCookie2.output() 
    14091413            else: 
    14101414                return sessCookie 
  • security/trunk/python/NDG/AttAuthority.py

    r483 r496  
    2727 
    2828# X509 Certificate handling 
    29 from X509 import * 
     29from NDG.X509 import * 
    3030 
    3131# NDG Attribute Certificate 
    32 from AttCert import * 
     32from NDG.AttCert import * 
    3333 
    3434 
  • security/trunk/python/NDG/AttCert.py

    r474 r496  
    1616import os 
    1717import re 
    18  
    19 # XML signature module based on xmlsec and libxml2 
    20 from xmlSigDoc import * 
    2118 
    2219# XML Parsing 
     
    2926from datetime import timedelta 
    3027 
    31 from X509 import X500DN 
    32 from X509 import X500DNError 
     28# XML signature module based on xmlsec and libxml2 
     29from NDG.xmlSigDoc import * 
     30 
     31from NDG.X509 import X500DN 
     32from NDG.X509 import X500DNError 
    3333 
    3434 
  • security/trunk/python/NDG/Session.py

    r491 r496  
    14011401                                                            self.getExpiryStr() 
    14021402                                         
    1403              
     1403            # Make cookie as generic as possible for domains - Nb. '.uk' 
     1404            # alone won't work 
     1405            sessCookie[self.__sessIDtagName]['domain'] = '.ac.uk' 
     1406 
     1407                         
    14041408            # Caller should set the cookie e.g. in a CGI script 
    14051409            # print "Content-type: text/html" 
    14061410            # print cookie.output() + os.linesep 
    14071411            if asString: 
    1408                 return sessCookie.output() 
     1412                return sessCookie.output() + os.linesep + sessCookie2.output() 
    14091413            else: 
    14101414                return sessCookie 
Note: See TracChangeset for help on using the changeset viewer.