From fcb98539ce99109c4af3527415abb680cdb3556b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Tue, 27 Sep 2011 12:32:08 +0200 Subject: [PATCH] Allow user passwords with ':' characters (cherry picked from commit 6c5e90eb844e70df23e5cb0f37782e8f4b272299) --- src/authm_mad/one_auth_mad.rb | 2 +- src/um/User.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/authm_mad/one_auth_mad.rb b/src/authm_mad/one_auth_mad.rb index b1d40bcaf9..7f6a0b9f82 100755 --- a/src/authm_mad/one_auth_mad.rb +++ b/src/authm_mad/one_auth_mad.rb @@ -117,7 +117,7 @@ class AuthDriver < OpenNebulaDriver authN_path = File.join(@local_scripts_path, protocol) command = File.join(authN_path,ACTION[:authN].downcase) - command << ' ' << user << ' ' << password << ' ' << secret_attr.join(' ') + command << ' ' << user << ' ' << password << ' ' << secret_attr.join(':') local_action(command, request_id, ACTION[:authN]) end diff --git a/src/um/User.cc b/src/um/User.cc index 71b2d4cd28..c649eace68 100644 --- a/src/um/User.cc +++ b/src/um/User.cc @@ -27,7 +27,7 @@ #include "Group.h" -const string User::INVALID_CHARS = " :\t\n\v\f\r"; +const string User::INVALID_CHARS = " \t\n\v\f\r"; /* ************************************************************************** */ /* User :: Database Access Functions */