From: gregarican Date: 2005-07-03T10:10:44+09:00 Subject: Re: ruby-ldap: bind authentication problem Boris Glawe wrote: > I found it out myself: The trailing newline was the problem. > password.chomp does not remove the newline, but returns another string without > the newline, which was send to nirvana in my case. That's why strings have the chomp! method which (rather than returning a new string with the newline chopped off) actually changes the value of the receiver so that the string itself no longer has the trailing newline. Lots of other Ruby methods like this, such as gsub! for example...