Restored the moonshot VM configuration, retaining the upstream version in comments
authorDan Breslau <dbreslau@painless-security.com>
Mon, 8 May 2017 16:08:47 +0000 (12:08 -0400)
committerDan Breslau <dbreslau@painless-security.com>
Mon, 8 May 2017 16:08:47 +0000 (12:08 -0400)
raddb/mods-available/ntlm_auth

index 9ee11aa..bffdc5f 100644 (file)
@@ -8,5 +8,9 @@
 #
 exec ntlm_auth {
        wait = yes
-       program = "/path/to/ntlm_auth --request-nt-key --domain=MYDOMAIN --username=%{mschap:User-Name} --password=%{User-Password}"
+       # From upstream freeradius:
+       # program = "/path/to/ntlm_auth --request-nt-key --domain=MYDOMAIN --username=%{mschap:User-Name} --password=%{User-Password}"
+
+       # Moonshot VM configuration:
+       program = "/usr/bin/ntlm_auth --request-nt-key --domain=%{Realm} --username=%{%{Stripped-User-Name}:-%{%{User-Name}:-None}} --password=%{User-Password}"
 }