-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clearer documentation and errors regarding pam/pam_password
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |