Changeset 1693

Show
Ignore:
Timestamp:
09/02/04 12:34:09 (20 years ago)
Author:
jalet
Message:

Fixed problem with mod_auth_ldap Apache module

Location:
pykota/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/cgi-bin/printquota.cgi

    r1636 r1693  
    2424# 
    2525# $Log$ 
     26# Revision 1.36  2004/09/02 10:34:09  jalet 
     27# Fixed problem with mod_auth_ldap Apache module 
     28# 
    2629# Revision 1.35  2004/07/24 20:10:10  jalet 
    2730# Incorrect number of parameters in error method 
     
    246249                    printers = self.storage.getMatchingPrinters("*") 
    247250                remuser = os.environ.get("REMOTE_USER", "root")     
     251                 
     252                # special hack to accomodate mod_auth_ldap Apache module 
     253                try : 
     254                    remuser = remuser.split("=")[1].split(",")[0] 
     255                except IndexError :     
     256                    pass 
     257                 
    248258                if remuser == "root" : 
    249259                    if self.form.has_key("ugmask") :      
  • pykota/trunk/NEWS

    r1692 r1693  
    2424    - 1.20alpha6 : 
    2525       
     26        - Fixed issue with how mod_auth_ldap Apache modules 
     27          fills the REMOTE_USER environment variable. 
     28           
    2629        - Fixed a bug in LDAP user deletion code. 
    2730