search for: get_operation_result

Displaying 2 results from an estimated 2 matches for "get_operation_result".

2007 Dec 11
0
Net::ldap no bind result
...9;, ''test'' ldap = Net::LDAP.new(:host => ''myldapserverip'', :port => 636, :base =>''dc=ehb,dc=be'', :auth => {:method => :simple, :username => user, :password => psw) if (ldap.bind) then "Authorization Succeeded! #{ldap.get_operation_result.message}" else "Authorization Failed: #{ldap.get_operation_result.message}" end The connection to the server is alright (no ''no connection to server'' error) The ldap server is using ldaps, would that be the problem ? -- Posted via http://www.ruby-forum.com/. -...
2008 Feb 29
0
Net::LDAP
...new :host => ''10.44.169.24'', :port => 389, :auth => { :method => :simple, :username => "cn=Manager,dc=ibm,dc=com", :password => "secret" } #if ldap.bind #puts ldap.inspect #else #puts ldap.get_operation_result.message #end filter = Net::LDAP::Filter.eq( "mail", "lokesh-/E1597aS9LQAvxtiuMwx3w@public.gmane.org" ) treebase = "dc=ibm,dc=com" attrs = ["userPassword"] ldap.search( :base => treebase, :filter => filter, :attributes => attrs ) do |entry| en...