diff -ubr /home/wendland/src/misc/moin-1.3.4/MoinMoin/multiconfig.py MoinMoin/multiconfig.py
--- /home/wendland/src/misc/moin-1.3.4/MoinMoin/multiconfig.py	2005-03-12 22:26:14.000000000 +0100
+++ MoinMoin/multiconfig.py	2005-04-27 18:04:49.000000000 +0200
@@ -193,6 +193,7 @@
     mail_login = None # or "user pwd" if you need to use SMTP AUTH
     mail_smarthost = None
     mail_from = None
+    mangle_username = {'NTLM': lambda name: name.title(),}
     navi_bar = [ u'%(page_front_page)s', u'RecentChanges', u'FindPage', u'HelpContents', ]
     nonexist_qm = 0
 
diff -ubr /home/wendland/src/misc/moin-1.3.4/MoinMoin/request.py MoinMoin/request.py
--- /home/wendland/src/misc/moin-1.3.4/MoinMoin/request.py	2005-03-06 23:15:45.000000000 +0100
+++ MoinMoin/request.py	2005-04-27 19:09:40.000000000 +0200
@@ -7,7 +7,7 @@
     @license: GNU GPL, see COPYING for details.
 """
 
-import os, time, sys, types, cgi
+import os, time, sys, types, cgi, pwd
 from MoinMoin import config, wikiutil, user, error
 from MoinMoin.util import MoinMoinNoFooter, IsWin9x, FixScriptName
 
@@ -282,15 +282,17 @@
 
         if self.cfg.auth_http_enabled:
             auth_type = env.get('AUTH_TYPE','')
-            if auth_type in ['Basic', 'Digest', 'NTLM', ]:
+            if auth_type in ['Basic', 'Digest', 'NTLM', 'Negotiate', ]:
                 username = env.get('REMOTE_USER','')
                 if auth_type == 'NTLM':
                     # converting to standard case so that the user can even enter wrong case
                     # (added since windows does not distinguish between e.g. "Mike" and "mike")
                     username = username.split('\\')[-1] # split off domain e.g. from DOMAIN\user
-                    # this "normalizes" the login name from {meier, Meier, MEIER} to Meier
-                    # put a comment sign in front of next line if you don't want that:
-                    username = username.title()
+                elif auth_type == 'Negotiate':
+                    # split off Kerberos realm
+                    username = username.split('@')[0]
+                if self.cfg.mangle_username.has_key(auth_type):
+                    username = self.cfg.mangle_username[auth_type](username)
                 self.auth_username = username
                                     
 ##        f=open('/tmp/env.log','a')
