1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

bug #1236: ldap user dn

This commit is contained in:
Javi Fontan 2012-05-11 13:13:23 +02:00
parent 8efa68ad91
commit 3b3ec9d14d

View File

@ -29,6 +29,7 @@ end
$: << RUBY_LIB_LOCATION
require 'yaml'
require 'uri'
require 'ldap_auth'
user=ARGV[0]
@ -76,7 +77,8 @@ begin
end
if ldap.authenticate(user_name, secret)
puts "ldap #{user} #{user_name}"
escaped_user=URI.escape(user_name, " \t\n\v\f\r")
puts "ldap #{user} #{escaped_user}"
authenticated=true
break
else