From: Bruno Sousa Date: 2009-08-04T03:46:37+09:00 Subject: Re: Ruby-net-ldap fail Ben Bleything wrote: > On Fri, Jul 31, 2009 at 2:42 PM, wrote: >> In an Active Directory environment you can also use the user's UPN >> instead of his DN for the bind username. > > Ahh cool. I've never really worked with AD except to sync it with > openldap so I'm not really familiar with such things. > > Ben I got it working with ruby-ldap. Is it necessary to specify the organization unit? It's working ONLY if I specify it: require "ldap" require "pp" $HOST = '10.1.0.3' $PORT = 389 conn = LDAP::Conn.new($HOST, $PORT) conn.bind('cn=somebody,ou=terceiros,dc=intranet,dc=example,dc=com',password='secret') -- Posted via http://www.ruby-forum.com/.