invalid DN Syntax

172 views
Skip to first unread message

Ed

unread,
Jan 10, 2013, 4:34:23 PM1/10/13
to ruby...@googlegroups.com
Hello, I'm using net/ldap for a RoR I'm working on. I'm new to RoR.
I'm getting an error message "Invalid DN Syntax" while trying to authenticate to our LDAP. It is code 34.

Here is my Code from my controller. Any help is appreciated.
require 'net/ldap'
ldap = Net::LDAP.new '
ldap.host = '10.184.14.87'
ldap.port = 389
ldap.auth user, pass
if ldap.bind
render :success
else
render :nothing => true
puts "Result: #{ldap.get_operation_result.code}"
puts "Message: #{ldap.get_operation_result.message}"
end

Ajedi32

unread,
Jun 27, 2013, 5:06:16 PM6/27/13
to ruby...@googlegroups.com
What do you have `user` set to? LDAP will expect that to be a Distinguished Name.
Reply all
Reply to author
Forward
0 new messages