Package: ntlmaps
Version: 0.9.9.0.1-11.1
Severity: normal
Tags: patch
Justification: Policy 9.3.2
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu maverick ubuntu-patch

Hi,

in Ubuntu we applied the following changes:

- Made debconf ask questions about domain and proxy port during
postinst. (LP: #85495)
- Set SO_REUSEADDR on server socket, allowing for a quick restart
(Closes: #584438)

For the change "- Set SO_REUSEADDR on server socket, allowing for a
quick restart (Closes: #584438)" also see
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=584438

And we think you might be interested in applying them too. Attaching the
patch.
diff -pruN 0.9.9.0.1-11.1/debian/config 0.9.9.0.1-11.1ubuntu1/debian/config
--- 0.9.9.0.1-11.1/debian/config	2010-09-03 02:51:10.000000000 +0100
+++ 0.9.9.0.1-11.1ubuntu1/debian/config	2010-09-03 02:43:48.000000000 +0100
@@ -72,8 +72,8 @@ db_set ntlmaps/password ""
 
 db_input high ntlmaps/listen_port || true
 db_input critical ntlmaps/parent_proxy || true
-db_input medium ntlmaps/parent_proxy_port || true
-db_input medium ntlmaps/nt_domain || true
+db_input high ntlmaps/parent_proxy_port || true
+db_input high ntlmaps/nt_domain || true
 db_input critical ntlmaps/username || true
 db_input critical ntlmaps/password || true

diff -pruN 0.9.9.0.1-11.1/debian/templates 0.9.9.0.1-11.1ubuntu1/debian/templates
--- 0.9.9.0.1-11.1/debian/templates	2010-09-03 02:51:10.000000000 +0100
+++ 0.9.9.0.1-11.1ubuntu1/debian/templates	2010-09-03 02:43:48.000000000 +0100
@@ -53,5 +53,6 @@ _Description: NT Windows password:
 
 Template: ntlmaps/nt_domain
 Type: string
+Default: your_domain
 _Description: NT Windows domain:
  This field identifies the NT Windows domain that you authenticate against.

diff -pruN 0.9.9.0.1-11.1/lib/server.py 0.9.9.0.1-11.1ubuntu1/lib/server.py
--- 0.9.9.0.1-11.1/lib/server.py	2010-09-03 02:51:10.000000000 +0100
+++ 0.9.9.0.1-11.1ubuntu1/lib/server.py	2010-09-03 02:43:48.000000000 +0100
@@ -59,6 +59,7 @@ class AuthProxyServer:
             thread.start_new_thread(self.monitor.run, ())
         try:
             s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
+            s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
             s.bind((self.MyHost, self.ListenPort))
         except socket.error:
             print "ERROR: Could not create socket. Possibly port %s is still being used by another process." % self.config['GENERAL']['LISTEN_PORT']

Reply via email to