> Hello Matt, > Thanks for ur reply but i used ur code into irb but it's not > showing any error instead of that it's showing false. > i create function like that. > require 'net/ldap' > def ldap_connect > ldap = Net::LDAP.new > ldap.host = 'ldapservername.com' > ldap.auth "%sldapservername.com"%'username','password' > ldap.bind > end > result::::False > Will you please suggest me that what is the error.Please Help me . > Thanks > Varun Again if i made function like this require 'net/ldap' def ldap_connect ldap = Net::LDAP.new ldap.host = 'ldapservername.com' ldap.bind end result:::True Now i got reult true plese tell me how to use this within my application please solve this problem Thanks Varun -- Posted via http://www.ruby-forum.com/.