openbsd-ports/www/ntlmaps/patches/patch-lib_ntlmaps_server_py

29 lines
1.1 KiB
Plaintext
Raw Normal View History

2010-03-25 17:25:28 -04:00
$OpenBSD: patch-lib_ntlmaps_server_py,v 1.2 2010/03/25 21:25:28 sthen Exp $
2010-03-21 06:50:14 -04:00
Log to syslog when startup fails due to missing password in
configuration file. Closes: Debian #343475
Upstream svn revision 942.
2010-03-25 17:25:28 -04:00
--- lib/ntlmaps/server.py.orig Thu Mar 25 21:22:50 2010
+++ lib/ntlmaps/server.py Thu Mar 25 21:23:39 2010
2010-03-21 06:50:14 -04:00
@@ -17,8 +17,8 @@
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
#
-import socket, thread, sys, signal, getpass
-import proxy_client, www_client, monitor_upstream, ntlm_procs
+import socket, thread, sys, signal, getpass, syslog, base64
+import proxy_client, monitor_upstream, ntlm_procs
#--------------------------------------------------------------
class AuthProxyServer:
@@ -33,6 +33,7 @@ class AuthProxyServer:
self.watchUpstream = 0
if not self.config['NTLM_AUTH']['NTLM_TO_BASIC']:
if not self.config['NTLM_AUTH']['PASSWORD']:
2010-03-25 17:25:28 -04:00
+ syslog.syslog('ntlmaps: Failed to start - password required in configuration file.')
2010-03-21 06:50:14 -04:00
tries = 3
print '------------------------'
while tries and (not self.config['NTLM_AUTH']['PASSWORD']):