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