From: Varun Goel Date: 2008-01-21T12:50:29+09:00 Subject: Re: LDAP Server not connected error Hello Matt, Actually i made one function like this. >> require 'net/ldap' >> def ldap_connect >> ldap = Net::LDAP.new >> ldap.host = 'ldapservername.com' >> ldap.bind >> end And this function returns me true. Then what's mean of this function means my connection to ldap server has been establish or not. Please guide me and if connection is established then how can i authenticate username and password through ldap server. Can i do like this.. filter = Net::LDAP::Filter.eq('uid', username) ldap.search(:filter => filter) {|entry| username = entry.dn} Please guide me i am confused in this LDAP connection. Looking for ur reply. Thanks Varun -- Posted via http://www.ruby-forum.com/.