Hi all,
I just install OpenNebula 5.4.1. I need to write an auth driver to integrate Sunstone with WHMCS Authentication API.
Here is the code (I just copy it from remotes/auth/plain/authenticate
)
#!/usr/bin/env ruby
ONE_LOCATION=ENV["ONE_LOCATION"]
if !ONE_LOCATION
RUBY_LIB_LOCATION="/usr/lib/one/ruby"
ETC_LOCATION="/etc/one/"
else
RUBY_LIB_LOCATION=ONE_LOCATION+"/lib/ruby"
ETC_LOCATION=ONE_LOCATION+"/etc/"
end
$: << RUBY_LIB_LOCATION
require 'scripts_common'
user = ARGV[0]
pass = ARGV[1]
secret = ARGV[2]
OpenNebula.log_debug("Authenticating #{user}, with password #{pass} (#{secret})")
#OpenNebula.log_info("Authenticating #{user}, with password #{pass} (#{secret})")
#OpenNebula.log_error("Authenticating #{user}, with password #{pass} (#{secret})")
exit 0
When using this auth driver, I want the log to be displayed somewhere that I can see. I have checked oned.log
but see nothing.
Many thanks.