From: Daniel Berger Date: 2005-11-18T02:38:55+09:00 Subject: ruby-ldap, invalid credentials Hi all, Another ldap newb question. I can't seem to bind to the ldap server with a password. For example, this works: # ldaptest.rb require "ldap" ldap_server = "ldap.foo.com" password = "XXX" ldap = LDAP::Conn.new(ldap_server) ldap.simple_bind("cn=djberge,dc=foo,dc=bar,dc=com") However, if I try to password as the second argument to simple_bind, I get an Invalid credentials (LDAP::ResultError). I'm positive the password is correct. My main goal is to perform ldap authentication within a Rails controller. I thought I could just check success or failure on simple_bind, but that doesn't seem to be the case. What am I doing wrong? Thanks, Dan