[AG-TECH] Re : Manage Certificates from VenueClient problems on Ubuntu Karmic (Time data doesn't match format), and Control Access
Marcolino.Pires at ac-paris.fr
Marcolino.Pires at ac-paris.fr
Sun Mar 14 15:41:37 CDT 2010
Hi
I have front several times this problem, the solution is to add somthing like this in the AccessGrid python file causing the problem
import locale
...
locale.setlocale(locale.LC_ALL, 'C')
...
I can't tell you the exact file because I do not access an AccessGrid client right now
Best regards
--
Marcolino PIRES
Téléphone : 01 44 62 45 73
Rectorat de l'académie de Paris
CAPTI - Bureau 382
94, avenue Gambetta
75984 PARIS CEDEX 20
----- Message d'origine -----
De: Jesus Cea Oliva <jesus.cea at uca.es>
Date: Dimanche, Mars 14, 2010 5:31 pm
Objet: [AG-TECH] Manage Certificates from VenueClient problems on Ubuntu Karmic (Time data doesn't match format), and Control Access
À: ag-tech at mcs.anl.gov
>
> Hi list.
>
> I've a problem on Venue Client, on Ubuntu machines, when I click on
> "Tools->Manage Certificates ...". No appears any screen, so, on Debug
> Mode, I see this error:
>
> "ValueError: time data 'Apr 21 00:52:18 2007 GMT' does not match
> format '%b %d %H:%M:%S %Y %Z'"
>
> This is the traceback:
>
>
>
> /usr/lib/python2.6/dist-packages/twisted/internet/_sslverify.py:5:
> DeprecationWarning: the md5 module is deprecated; use hashlib instead
> import itertools, md5
> /usr/lib/pymodules/python2.6/ZSI/resolvers.py:6: DeprecationWarning:
> the multifile module has been deprecated since Python 2.5
> import multifile, mimetools, urllib
> Traceback (most recent call last):
> File
> "/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/wxgui/CertificateManagerWXGUI.py",
> line 176, in <lambda>
> lambda event, win=win, self=self: self.OnShowNew(event, win))
> File
> "/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/wxgui/CertificateManagerWXGUI.py",
> line 237, in OnShowNew
> self.certificateManager, self)
> File
> "/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/wxgui/CertificateManagerDialog.py",
> line 25, in __init__
> self.identBrowser = IdentityBrowser(self.notebook, -1, self.certMgr)
> File
> "/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/wxgui/IdentityBrowser.py",
> line 57, in __init__
> CertificateBrowserBase.__init__(self, parent, id, certMgr)
> File
> "/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/wxgui/CertificateBrowserBase.py",
> line 27, in __init__
> self.Load()
> File
> "/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/wxgui/CertificateBrowserBase.py",
> line 86, in Load
> data, columnStrings = self._FormatCert(cert)
> File
> "/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/wxgui/IdentityBrowser.py",
> line 286, in _FormatCert
> valid = self.certMgr.CheckValidity(cert)
> File
> "/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/CertificateManager.py",
> line 375, in CheckValidity
> if self.VerifyCertificatePath(cert):
> File
> "/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/CertificateManager.py",
> line 405, in VerifyCertificatePath
> issuers = filter(lambda x: not x.IsExpired(), issuers)
> File
> "/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/CertificateManager.py",
> line 405, in <lambda>
> issuers = filter(lambda x: not x.IsExpired(), issuers)
> File
> "/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/CertificateRepository.py",
> line 1340, in IsExpired
> return self.cert.IsExpired()
> File
> "/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/CertificateRepository.py",
> line 1526, in IsExpired
> return IsExpired(self.cert)
> File
> "/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/Utilities.py",
> line 52, in IsExpired
> before_tuple = time.strptime(str(before_time),format)
> File "/usr/lib/python2.6/_strptime.py", line 454, in _strptime_time
> return _strptime(data_string, format)[0]
> File "/usr/lib/python2.6/_strptime.py", line 325, in _strptime
> (data_string, format))
> ValueError: time data 'Apr 21 00:52:18 2007 GMT' does not match format
> '%b %d %H:%M:%S %Y %Z'
>
>
> On Windows I haven't this problem, and, on both systems, I can execute
> CertificateManager3.py without problems, only I have this error from
> VenueClient option. What can I do to solve?
>
> Other question, exists some document about control access? I would
> like to create venues and restrict access. I know that it can do using
> Venue Manager, the Security tab in each Venue. But, I don't know how
> add persons, I see a "Distinguish name", but, how I can know the DN of
> a Participant? Is necesary that the participant enter on a venue for
> restrict/permit the access?, or exists some solution to
> restrict/permit a Participant without enter on a Venue?.
>
>
> Thank you for your time. I apologize for the inconvenience.
> Greetings!
>
>
More information about the ag-tech
mailing list