ldap_auth.rb-issue1171.patch

Nicolas AGIUS, 03/16/2012 04:30 PM

Download (572 Bytes)

View differences:

ldap_auth.rb 2012-03-16 11:40:19.050044881 +0100
26 26
            :password => nil,
27 27
            :base => nil,
28 28
            :auth_method => :simple,
29
            :encryption => nil,
29 30
            :user_field => 'cn'
30 31
        }.merge(options)
31 32

  
......
41 42

  
42 43
        ops[:host]=@options[:host] if @options[:host]
43 44
        ops[:port]=@options[:port].to_i if @options[:port]
45
        ops[:encryption]=@options[:encryption] if @options[:encryption]
44 46

  
45 47
        @ldap=Net::LDAP.new(ops)
46 48
    end