LDAP bind error

P

Pokkai Dokkai

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 )
 
P

Pokkai Dokkai

Francis said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

ruby net ldap bind issue 1
LDAP Authentication with Username 1
ldap injection 1
LDAP Server not connected error 11
Please help 1
net::ldap - add_attribute 5
ldap proxy user bind 6
Ruby-Net-Lap - Problems to Search 0

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top