Loading debian/changelog +2 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,8 @@ debian-edu-config (2.11.7) UNRELEASED; urgency=medium [ Holger Levsen ] * debian/control: Drop Depends on python. * share/debian-edu-config/pam-nopwdchange.py: converted to python3 with python-modernize. -- Wolfgang Schweer <wschweer@arcor.de> Sun, 27 Oct 2019 14:27:59 +0100 Loading share/debian-edu-config/pam-nopwdchange.py +6 −4 Original line number Diff line number Diff line #!/usr/bin/env python #!/usr/bin/python3 # # Reject password change, ask people to use the Gosa web interface # instead. from __future__ import absolute_import from __future__ import print_function import sys import syslog import pwd Loading Loading @@ -51,10 +53,10 @@ if __name__ == '__main__': def Message(self, tag, str): return str def conversation(self, msg): print "PAM conversation: " + msg print("PAM conversation: " + msg) return pamh = pam_handler() if pamh.PAM_SUCCESS == pam_sm_chauthtok(pamh, None, None): print "pam_sm_chauthtok returned PAM_SUCCESS" print("pam_sm_chauthtok returned PAM_SUCCESS") else: print "pam_sm_chauthtok returned PAM_SYSTEM_ERR" print("pam_sm_chauthtok returned PAM_SYSTEM_ERR") Loading
debian/changelog +2 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,8 @@ debian-edu-config (2.11.7) UNRELEASED; urgency=medium [ Holger Levsen ] * debian/control: Drop Depends on python. * share/debian-edu-config/pam-nopwdchange.py: converted to python3 with python-modernize. -- Wolfgang Schweer <wschweer@arcor.de> Sun, 27 Oct 2019 14:27:59 +0100 Loading
share/debian-edu-config/pam-nopwdchange.py +6 −4 Original line number Diff line number Diff line #!/usr/bin/env python #!/usr/bin/python3 # # Reject password change, ask people to use the Gosa web interface # instead. from __future__ import absolute_import from __future__ import print_function import sys import syslog import pwd Loading Loading @@ -51,10 +53,10 @@ if __name__ == '__main__': def Message(self, tag, str): return str def conversation(self, msg): print "PAM conversation: " + msg print("PAM conversation: " + msg) return pamh = pam_handler() if pamh.PAM_SUCCESS == pam_sm_chauthtok(pamh, None, None): print "pam_sm_chauthtok returned PAM_SUCCESS" print("pam_sm_chauthtok returned PAM_SUCCESS") else: print "pam_sm_chauthtok returned PAM_SYSTEM_ERR" print("pam_sm_chauthtok returned PAM_SYSTEM_ERR")