summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSoren Hansen <soren.hansen@rackspace.com>2010-06-30 16:46:26 +0200
committerSoren Hansen <soren.hansen@rackspace.com>2010-06-30 16:46:26 +0200
commit00971feed32d22ae9bc63aea716ecf4e972aee32 (patch)
tree4266acdb647ae3135b39e906e461e4fc41623b44
parent4bdc2f061ca1855a56391acc994b637dc2f73bc6 (diff)
downloadnova-00971feed32d22ae9bc63aea716ecf4e972aee32.tar.gz
nova-00971feed32d22ae9bc63aea716ecf4e972aee32.tar.xz
nova-00971feed32d22ae9bc63aea716ecf4e972aee32.zip
Replace spaces in x509 cert subject with underscores. It ends up getting split(' ')'ed and passed to subprocess.Popen, so it needs to not have spaces in it, otherwise openssl gets very upset.
-rw-r--r--nova/auth/users.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/auth/users.py b/nova/auth/users.py
index 6997596aa..12c73ca27 100644
--- a/nova/auth/users.py
+++ b/nova/auth/users.py
@@ -481,7 +481,7 @@ class UserManager(object):
def __cert_subject(self, uid):
# FIXME(ja) - this should be pulled from a global configuration
- return "/C=US/ST=California/L=Mountain View/O=Anso Labs/OU=Nova Dev/CN=%s-%s" % (uid, str(datetime.datetime.utcnow().isoformat()))
+ return "/C=US/ST=California/L=Mountain_View/O=Anso_Labs/OU=Nova_Dev/CN=%s-%s" % (uid, str(datetime.datetime.utcnow().isoformat()))
class LDAPWrapper(object):