You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: server/common/oursrc/scripts-proxy/main.go
+28-2Lines changed: 28 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,20 +8,24 @@ import (
8
8
"net"
9
9
"strings"
10
10
11
+
ldap "gopkg.in/ldap.v3"
11
12
"inet.af/tcpproxy"
12
13
)
13
14
14
15
var (
15
16
httpAddrs=flag.String("http_addrs", ":80", "comma-separated addresses to listen for HTTP traffic on")
16
17
sniAddrs=flag.String("sni_addrs", ":443,:444", "comma-separated addresses to listen for SNI traffic on")
18
+
ldapServer=flag.String("ldap_server", "scripts-ldap.mit.edu:389", "LDAP server to query")
17
19
defaultHost=flag.String("default_host", "scripts.mit.edu", "default host to route traffic to if SNI/Host header cannot be parsed or cannot be found in LDAP")
20
+
baseDn=flag.String("base_dn", "ou=VirtualHosts,dc=scripts,dc=mit,dc=edu", "base DN to query for hosts")
0 commit comments