|
|
|
I have wrote a vbs script that has been working nicely so far.
In the server config add the following line:
auth-user-pass-verify "D:\\OpenVPN\\config\\authAD.vbs" via-file
As a side note, the script failed when I had openvpn in the \\Program Files\\Openvpn, for some reason auth-user-pass-verify doesn't like space in the pathname.
here it is the script:
----
Dim fso
Dim f Dim strUsername Dim strPassword Dim strarq dim erro Const ADS_SCOPE_SUBTREE = 2 On Error Resume Next Set objArgs = WScript.Arguments Set fso = CreateObject("Scripting.FileSystemObject") Set objConnection = CreateObject("ADODB.Connection") objConnection.Properties("User ID") = strUsername objConnection.Open "Active Directory Provider" objCommand.Properties("Page Size") = 1000 objCommand.CommandText = _ if Err <> 0 Then wscript.quit (erro) On 9/6/06, Ken D'Ambrosio <ken@xxxxxxxx> wrote:
I've perused the docs, and don't see what (if any) mechanism can be used ------------------------------------------------------------------------- Get stuff done quickly with pre-integrated technology to make your job easier _______________________________________________ Openvpn-users mailing list Openvpn-users@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/openvpn-users Warning: require_once(../../../archive_common.php) [function.require-once]: failed to open stream: No such file or directory in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2006-09/msg00046.html on line 203 Fatal error: require_once() [function.require]: Failed opening required '../../../archive_common.php' (include_path='/usr/local/lib/php') in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2006-09/msg00046.html on line 203 |