Skip to content

Commit 3b2e986

Browse files
committed
"pam" scheme for plugin framework raises unconditional error
1 parent 1648551 commit 3b2e986

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

irods/auth/pam.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@ class PamLoginException(Exception):
22
pass
33

44

5-
def login(conn):
6-
if conn.server_version >= (4, 3):
7-
raise PamLoginException(
8-
'PAM logins in iRODS 4.3+ require a scheme of "pam_password"'
9-
)
10-
conn._login_pam()
11-
12-
13-
# Pattern for when you need to import from sibling plugins:
14-
from .native import login as native_login
5+
def login(conn,**opts):
6+
msg = "In iRODS 4.3+, PAM logins use the new authentication plugin framework by default, which "\
7+
"requires the authentication scheme be set to 'pam_password' rather than simply 'pam'. "\
8+
"Users may choose legacy authentication "\
9+
"by setting legacy_auth.force_legacy_auth to True in the client configuration; however, be advised "\
10+
"that the legacy code path will be removed in a future release of iRODS."
11+
raise PamLoginException(msg)

0 commit comments

Comments
 (0)