0207.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Setup OpenVPN Access Server LDAP Authentication</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="How To,Tutorial,i12bretro,OpenVPN,OpenVPN Access Server,Access Server,LDAP,Authentication">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Setup OpenVPN Access Server LDAP Authentication">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  12. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  13. <script type="text/javascript" src="includes/js/steps.js"></script>
  14. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  15. </head>
  16. <body>
  17. <div id="gridContainer">
  18. <div class="topMargin"></div>
  19. <div id="listName" class="topMargin">
  20. <h1>Setup OpenVPN Access Server LDAP Authentication</h1>
  21. </div>
  22. <div></div>
  23. <div id="content">
  24. <ol>
  25. <li>Log into OpenVPN Access Server</li>
  26. <li>Click Authentication &gt; LDAP in the left navigation menu</li>
  27. <li>Click the Use these credentials toggle to Yes</li>
  28. <li>Fill in the LDAP configuration form as follows:
  29. <p>LDAP host: i12bretro.local<br />
  30. Base DN: CN=Users,DC=i12bretro,DC=local<br />
  31. Username Attribute: sAMAccountName<br />
  32. Bind DN: readonly_svc@i12bretro.local<br />
  33. Additional LDAP Requirements: memberOf=CN=VPN Users, CN=Users, DC=i12bretro, DC=local</p>
  34. </li>
  35. <li>Click the Save Settings button</li>
  36. <li>Click User Management &gt; User Permissions in the left navigation</li>
  37. <li>Create a new username matching an LDAP user name and click the Admin checkbox</li>
  38. <li>Click the Save Settings button</li>
  39. <li>Go back to Authentication &gt; LDAP in the left navigation menu</li>
  40. <li>Click the Use LDAP button</li>
  41. <li>Click the Update Running Server button</li>
  42. <li>Click Logout at the bottom of the left navigation</li>
  43. <li>Log back in with the newly created user and their Active Directory password</li>
  44. </ol>
  45. <p>Note: If LDAP authentication fails, revert back to local authentication using the following commands:<br />
  46. cd /usr/local/openvpn_as/scripts<br />
  47. ./sacli --key &quot;auth.module.type&quot; --value=&quot;local&quot; ConfigPut<br />
  48. ./scali start</p>
  49. <p>If you ever mess up the OpenVPN AS configuration beyond repair, run the following command to reset the configuration back to defaults and try again:<br />
  50. ovpn-init --force</p>
  51. </div>
  52. </div>
  53. </body>
  54. </html>