[ARVADOS] created: 2.1.0-1972-g9ffdf93f9

Git user git at public.arvados.org
Fri Feb 25 21:54:33 UTC 2022


        at  9ffdf93f954bfe7bfe2269d361961d653caea146 (commit)


commit 9ffdf93f954bfe7bfe2269d361961d653caea146
Author: Ward Vandewege <ward at curii.com>
Date:   Fri Feb 25 16:50:32 2022 -0500

    18805: add a 'static' go build tag that disables the pam login code,
           because it relies on the shared libraries from the glibc version
           used for linking, at runtime.
    
    Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward at curii.com>

diff --git a/lib/controller/localdb/login_pam.go b/lib/controller/localdb/login_pam.go
index 237f900a8..14e0a582c 100644
--- a/lib/controller/localdb/login_pam.go
+++ b/lib/controller/localdb/login_pam.go
@@ -2,6 +2,8 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
+//go:build !static
+
 package localdb
 
 import (
diff --git a/lib/controller/localdb/login_pam_static.go b/lib/controller/localdb/login_pam_static.go
new file mode 100644
index 000000000..420a256da
--- /dev/null
+++ b/lib/controller/localdb/login_pam_static.go
@@ -0,0 +1,31 @@
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
+//go:build static
+
+package localdb
+
+import (
+	"context"
+	"errors"
+
+	"git.arvados.org/arvados.git/sdk/go/arvados"
+)
+
+type pamLoginController struct {
+	Cluster *arvados.Cluster
+	Parent  *Conn
+}
+
+func (ctrl *pamLoginController) Logout(ctx context.Context, opts arvados.LogoutOptions) (arvados.LogoutResponse, error) {
+	return logout(ctx, ctrl.Cluster, opts)
+}
+
+func (ctrl *pamLoginController) Login(ctx context.Context, opts arvados.LoginOptions) (arvados.LoginResponse, error) {
+	return arvados.LoginResponse{}, errors.New("interactive login is not available")
+}
+
+func (ctrl *pamLoginController) UserAuthenticate(ctx context.Context, opts arvados.UserAuthenticateOptions) (arvados.APIClientAuthorization, error) {
+	return arvados.APIClientAuthorization{}, errors.New("support not available due to static compilation")
+}

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list