Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[521] clearer documentation and errors regarding pam/pam_password #524

Merged
merged 1 commit into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,15 @@ the `encryption_*` and `ssl_*` options
directly to the constructor as keyword arguments, even though it is
required when they are placed in the environment file.

PAM logins
----------

Starting with v2.0.0, the python iRODS client is able to authenticate under PAM using the same file-based client environment as the
iCommands.

Caveat for iRODS 4.3+: when upgrading from 4.2, the "irods_authentication_scheme" setting must be changed from "pam" to "pam_password" in
trel marked this conversation as resolved.
Show resolved Hide resolved
`~/.irods/irods_environment.json` for all file-based client environments.

Maintaining a connection
------------------------

Expand Down
9 changes: 9 additions & 0 deletions irods/auth/pam.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class PamLoginException(Exception): pass

def login(conn):
if conn.server_version >= (4,3):
raise PamLoginException('PAM logins in iRODS 4.3+ require a scheme of "pam_password"')
conn._login_pam()

# Pattern for when you need to import from sibling plugins:
from .native import login as native_login