How do I debug ruby-ldap when a method only returns false?
问题 My goal is to move an account to another OU. My understanding is that the following code should do the job. However, it returns false . There is no error, warning or exceptions. How do I debug why this isn't working? secure_ldap.rename( olddn: self.dn, newrdn: "CN=#{self.cn}", delete_attributes: true, new_superior: "#{ou}" ) 回答1: Well, one approach might be to add pry and pry-byebug to your application. Modify your code to include binding.pry then run your application: Frame number: 0/0 From: