I’m trying to authenticate a username/password with Active Directory on
our Windows SBS 2003 server. I have no problems if I auth with the CN
set as the users full name, but I want to auth against the username
instead. Here’s the code that works:
pass = “mypass”
ldap = Net::LDAP.new
ldap.host = “192.168.x.x”
ldap.port = 389
result = ldap.bind
This works great for the full name. If I change to the uid:
I get an authentication failure. I’m not that familiar with LDAP.
Anyone have any idea how I should change the authentication string to
auth against username instead of the full name?