From: Francis Cianfrocca Date: 2007-10-08T16:21:21+09:00 Subject: Re: LDAP bind error ------=_Part_15626_13176337.1191828083118 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 10/8/07, Pokkai Dokkai wrote: > > i am new to ruby ..... > in java my ldap server is connecting like > -------------------------------------------- > username="myname" > password="*********" > LDAPConnection ld = new LDAPConnection(); > ld.connect( "192.168.1.1", 389); > con=ld.authenticate > ("uid="+username+",ou=People,dc=mydomain,dc=com",password); > /// con--->true > > > but in ruby > ----------------------------------- > ldap_con = Net::LDAP.new({:host => '192.168.1.1', :port => 389, > :auth=>{ :method=>:simple,:username => > username, > :password => password > } > }) > @con=ldap_con.bind > > #@con --->false (always ) > ------------------------------------------------------- > what is wrong here > any help please..... > -- > Posted via http://www.ruby-forum.com/. > > Try giving the whole DN as the user name. ------=_Part_15626_13176337.1191828083118--