1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 // Skip this slow test unless invoked as "go test -tags docker".
14 check "gopkg.in/check.v1"
17 func (s *LDAPSuite) TestLoginLDAPViaPAM(c *check.C) {
18 cmd := exec.Command("bash", "login_ldap_docker_test.sh")
19 cmd.Stdout = os.Stderr
20 cmd.Stderr = os.Stderr
21 cmd.Env = append(os.Environ(), "config_method=pam")
23 c.Check(err, check.IsNil)
26 func (s *LDAPSuite) TestLoginLDAPBuiltin(c *check.C) {
27 cmd := exec.Command("bash", "login_ldap_docker_test.sh")
28 cmd.Stdout = os.Stderr
29 cmd.Stderr = os.Stderr
30 cmd.Env = append(os.Environ(), "config_method=ldap")
32 c.Check(err, check.IsNil)