test/test_helper.rb in net-ldap-0.16.1 vs test/test_helper.rb in net-ldap-0.16.2

- old
+ new

@@ -12,18 +12,18 @@ CA_FILE = ENV.fetch("CA_FILE") do if File.exist?("/etc/ssl/certs/cacert.pem") "/etc/ssl/certs/cacert.pem" else - File.expand_path("fixtures/ca/cacert.pem", File.dirname(__FILE__)) + File.expand_path("fixtures/ca/docker-ca.pem", File.dirname(__FILE__)) end end BIND_CREDS = { method: :simple, - username: "uid=user1,ou=People,dc=rubyldap,dc=com", - password: "passworD1", + username: "cn=admin,dc=example,dc=org", + password: "admin", }.freeze TLS_OPTS = OpenSSL::SSL::SSLContext::DEFAULT_PARAMS.merge({}).freeze if RUBY_VERSION < "2.0" @@ -63,12 +63,11 @@ def setup @service = MockInstrumentationService.new @ldap = Net::LDAP.new \ host: ENV.fetch('INTEGRATION_HOST', 'localhost'), port: ENV.fetch('INTEGRATION_PORT', 389), - admin_user: 'uid=admin,dc=rubyldap,dc=com', - admin_password: 'passworD1', - search_domains: %w(dc=rubyldap,dc=com), + search_domains: %w(dc=example,dc=org), uid: 'uid', instrumentation_service: @service + @ldap.authenticate "cn=admin,dc=example,dc=org", "admin" end end