projects
/
cascardo
/
ipsilon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pam: use a pam object method instead of pam module function
[cascardo/ipsilon.git]
/
ipsilon
/
login
/
authpam.py
diff --git
a/ipsilon/login/authpam.py
b/ipsilon/login/authpam.py
index
ed2e72b
..
0e6a830
100644
(file)
--- a/
ipsilon/login/authpam.py
+++ b/
ipsilon/login/authpam.py
@@
-12,9
+12,9
@@
class Pam(LoginFormBase):
def _authenticate(self, username, password):
if self.lm.service_name:
def _authenticate(self, username, password):
if self.lm.service_name:
- ok = pam.authenticate(username, password, self.lm.service_name)
+ ok = pam.
pam().
authenticate(username, password, self.lm.service_name)
else:
else:
- ok = pam.authenticate(username, password)
+ ok = pam.
pam().
authenticate(username, password)
if ok:
self.log("User %s successfully authenticated." % username)
if ok:
self.log("User %s successfully authenticated." % username)