search for: ldap_con

Displaying 3 results from an estimated 3 matches for "ldap_con".

Did you mean: ldap_co
2008 Nov 28
1
Rails Beginner.. NoMethodError
...class User < ActiveRecord::Base set_table_name "users" attr_accessor :title def self.authenticate(username,password) treebase = "dc=corp,dc=ha,dc=org,dc=hk" filter = Net::LDAP::Filter.eq( "sAMAccountName", username ) login_succeeded = false ldap_con = initialize_ldap_con(username,password) if ldap_con.bind login_succeeded = true @title=ldap_con.search( :base => treebase, :filter => filter, :attributes => ''displayname'').first.displayname.to_s end login_succeeded end # I have define the get...
2007 Oct 05
0
LDAP bind error
..." password="" LDAPConnection ld = new LDAPConnection(); ld.connect( "192.168.1.1", 389); con=ld.authenticate ( "uid="+username+",ou=People,dc=srishtisoft,dc=com",password); /// con--->true but in rails ----------------------------------- ldap_con = Net::LDAP.new({:host => ''192.168.1.1'', :port => 389, :auth=> { :method=>:simple, :username =>...
2009 Apr 21
4
Changing Passwords in Active Directory with ruby-net-ldap
I am building an application in Rails using ruby-net-ldap and I am trying to figure out how to change passwords in Active Directory. Does anyone have any experience with this using the ruby-net-ldap gem? I know that I remember seeing an example on the web somewhere that showed how to do this using the depot application from the Rails book but for the life of me I can''t find it again. :(