0207.html 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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="OpenVPN,OpenVPN Access Server,Access Server,LDAP,Authentication,How To,Tutorial,i12bretro">
  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. <meta name="revised" content="06/01/2022 06:18:36 PM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Setup OpenVPN Access Server LDAP Authentication</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <ol>
  26. <li>Log into OpenVPN Access Server</li>
  27. <li>Click Authentication &gt; LDAP in the left navigation menu</li>
  28. <li>Click the Use these credentials toggle to Yes</li>
  29. <li>Fill in the LDAP configuration form as follows:
  30. <p>LDAP host: i12bretro.local<br />
  31. Base DN: CN=Users,DC=i12bretro,DC=local<br />
  32. Username Attribute: sAMAccountName<br />
  33. Bind DN: readonly_svc@i12bretro.local<br />
  34. Additional LDAP Requirements: memberOf=CN=VPN Users, CN=Users, DC=i12bretro, DC=local</p>
  35. </li>
  36. <li>Click the Save Settings button</li>
  37. <li>Click User Management &gt; User Permissions in the left navigation</li>
  38. <li>Create a new username matching an LDAP user name and click the Admin checkbox</li>
  39. <li>Click the Save Settings button</li>
  40. <li>Go back to Authentication &gt; LDAP in the left navigation menu</li>
  41. <li>Click the Use LDAP button</li>
  42. <li>Click the Update Running Server button</li>
  43. <li>Click Logout at the bottom of the left navigation</li>
  44. <li>Log back in with the newly created user and their Active Directory password</li>
  45. </ol>
  46. <p>Note: If LDAP authentication fails, revert back to local authentication using the following commands:<br />
  47. cd /usr/local/openvpn_as/scripts<br />
  48. ./sacli --key &quot;auth.module.type&quot; --value=&quot;local&quot; ConfigPut<br />
  49. ./scali start</p>
  50. <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 />
  51. ovpn-init --force</p>
  52. </div>
  53. </div>
  54. </body>
  55. </html>