Merge /home/vl/tasks/0216-ldap_auth_lab/src/nginx-ldap-auth
This commit is contained in:
		
						commit
						c61f0137b7
					
				|  | @ -128,7 +128,12 @@ class AuthHandler(BaseHTTPRequestHandler): | ||||||
|         else: |         else: | ||||||
|             addr = "-" |             addr = "-" | ||||||
| 
 | 
 | ||||||
|         sys.stdout.write("%s - %s [%s] %s\n" % (addr, self.ctx['user'], |         if not hasattr(self, 'ctx'): | ||||||
|  |             user = '-' | ||||||
|  |         else: | ||||||
|  |             user = ctx['user'] | ||||||
|  | 
 | ||||||
|  |         sys.stdout.write("%s - %s [%s] %s\n" % (addr, user, | ||||||
|                          self.log_date_time_string(), format % args)) |                          self.log_date_time_string(), format % args)) | ||||||
| 
 | 
 | ||||||
|     def log_error(self, format, *args): |     def log_error(self, format, *args): | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue