diff --git a/nginx-ldap-auth-daemon.py b/nginx-ldap-auth-daemon.py index 4c79f8e..d4acec5 100755 --- a/nginx-ldap-auth-daemon.py +++ b/nginx-ldap-auth-daemon.py @@ -1,8 +1,7 @@ -#!/bin/sh -''''which python2 >/dev/null && exec python2 -u "$0" "$@" &>>$LOG # ''' -''''which python >/dev/null && exec python -u "$0" "$@" &>>$LOG # ''' - +#!/usr/bin/env python2 +# # Copyright (C) 2014-2015 Nginx, Inc. +# import sys, os, signal, base64, ldap, Cookie, argparse from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler