[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

LDAP bind error

Pokkai Dokkai

10/8/2007 4:38:00 AM

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-....

2 Answers

Pokkai Dokkai

10/8/2007 8:12:00 AM

0

Francis Cianfrocca wrote:
> Try giving the whole DN as the user name.

sorry i did't get you....
can you show a sample (how to give the whole DN as the user name )




thank you

--
Posted via http://www.ruby-....

Pokkai Dokkai

10/8/2007 12:26:00 PM

0

Francis Cianfrocca wrote:

> uid=username,ou=People,dc=mydomain,dc=com

not fine
same error....
--
Posted via http://www.ruby-....