##// END OF EJS Templates
dependencies: bumped python-pam to 1.8.4 and fixed pam auth.
marcink -
r2918:80ece0db default
parent child Browse files
Show More
@@ -1215,11 +1215,11 b' self: super: {'
1215 1215 };
1216 1216 };
1217 1217 "pyasn1" = super.buildPythonPackage {
1218 name = "pyasn1-0.4.3";
1218 name = "pyasn1-0.4.4";
1219 1219 doCheck = false;
1220 1220 src = fetchurl {
1221 url = "https://files.pythonhosted.org/packages/0d/33/3466a3210321a02040e3ab2cd1ffc6f44664301a5d650a7e44be1dc341f2/pyasn1-0.4.3.tar.gz";
1222 sha256 = "1z5h38anjzzrxpraa9iq9llffyx2zs8gx0q6dc1g029miwnn50gv";
1221 url = "https://files.pythonhosted.org/packages/10/46/059775dc8e50f722d205452bced4b3cc965d27e8c3389156acd3b1123ae3/pyasn1-0.4.4.tar.gz";
1222 sha256 = "0drilmx5j25aplfr5wrml0030cs5fgxp9yp94fhllxgx28yjm3zm";
1223 1223 };
1224 1224 meta = {
1225 1225 license = [ pkgs.lib.licenses.bsdOriginal ];
@@ -1566,11 +1566,11 b' self: super: {'
1566 1566 };
1567 1567 };
1568 1568 "python-pam" = super.buildPythonPackage {
1569 name = "python-pam-1.8.2";
1569 name = "python-pam-1.8.4";
1570 1570 doCheck = false;
1571 1571 src = fetchurl {
1572 url = "https://files.pythonhosted.org/packages/de/8c/f8f5d38b4f26893af267ea0b39023d4951705ab0413a39e0cf7cf4900505/python-pam-1.8.2.tar.gz";
1573 sha256 = "0b41f70cj221bfblwdl627a58kjan2xsdi6qgkwi16w6kgky9vr6";
1572 url = "https://files.pythonhosted.org/packages/01/16/544d01cae9f28e0292dbd092b6b8b0bf222b528f362ee768a5bed2140111/python-pam-1.8.4.tar.gz";
1573 sha256 = "16whhc0vr7gxsbzvsnq65nq8fs3wwmx755cavm8kkczdkz4djmn8";
1574 1574 };
1575 1575 meta = {
1576 1576 license = [ { fullName = "License :: OSI Approved :: MIT License"; } pkgs.lib.licenses.mit ];
@@ -63,7 +63,7 b' pysqlite==2.8.3'
63 63 python-dateutil
64 64 python-ldap==3.1.0
65 65 python-memcached==1.59
66 python-pam==1.8.2
66 python-pam==1.8.4
67 67 pytz==2018.4
68 68 tzlocal==1.5.1
69 69 pyzmq==14.6.0
@@ -111,8 +111,8 b' class RhodeCodeAuthPlugin(RhodeCodeExter'
111 111 if not username or not password:
112 112 log.debug('Empty username or password skipping...')
113 113 return None
114
115 auth_result = pam.authenticate(username, password, settings["service"])
114 _pam = pam.pam()
115 auth_result = _pam.authenticate(username, password, settings["service"])
116 116
117 117 if not auth_result:
118 118 log.error("PAM was unable to authenticate user: %s" % (username, ))
General Comments 0
You need to be logged in to leave comments. Login now