0391.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Setting up LDAP Authentication for OPNSense</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 Configure OPNSense LDAP,How To Configure OPNSense Active Directory,How To Setup OPNSense LDAP,How To Setup OPNSense Active Directory,OPNSense LDAP Authentication,OPNSense Active Directory Authentication,OPNSense Windows User Auth,OPNSense,Network,Home Networking,LDAP,Home Lab,Self-Hosted,Lightweight Directory Access Protocol,Authentication,OPNSense Authentication,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Setting up LDAP Authentication for OPNSense">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="03/21/2022 09:16:25 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>Setting up LDAP Authentication for OPNSense</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <ol>
  26. <li>Open a web browser and navigate to the OPNSense web UI</li>
  27. <li>Log in to OPNSense</li>
  28. <li>Select System &gt; Access &gt; Servers from the left navigation menu</li>
  29. <li>Click the Add button in the top right of the screen</li>
  30. <li>Complete the form with the following information<br />
  31. <em><span style="font-size:12px;">The setup below will allow members of the DnsAdmins AD group to authenticate, tweak as needed</span></em>
  32. <p>Descriptive name: i12bretro.local<br />
  33. Type: LDAP<br />
  34. Hostname or IP address&nbsp;&nbsp; &nbsp;<br />
  35. i12bretro.local<br />
  36. Port value:&nbsp;389<br />
  37. Transport:&nbsp;TCP - Standard<br />
  38. Protocol version:&nbsp;3<br />
  39. Bind credentials:<br />
  40. &nbsp; &nbsp;&nbsp;User DN:&nbsp;CN=Readonly SVC,CN=Users,DC=i12bretro,DC=local<br />
  41. &nbsp; &nbsp; Password:&nbsp;Read0nly!!<br />
  42. Search scope: Entire Subtree<br />
  43. Base DN:&nbsp;DC=i12bretro,DC=local<br />
  44. Authentication containers:&nbsp;CN=Users,DC=i12bretro,DC=local<br />
  45. Extended Query:&nbsp; &nbsp;&nbsp;<br />
  46. &amp;(memberOf=CN=DnsAdmins,CN=Users,DC=i12bretro,DC=local)<br />
  47. User naming attribute: sAMAccountName</p>
  48. </li>
  49. <li>Scroll to the bottom of the page and click the Save button</li>
  50. <li>Select System &gt; Access &gt; Tester from the left navigation menu</li>
  51. <li>Test the login capability of an LDAP user meeting the group requirements set above</li>
  52. <li>Select System &gt; Settings &gt; General from the left navigation menu</li>
  53. <li>Scroll down to the Authentication section</li>
  54. <li>Click the Server dropdown and enable authentication against the LDAP server</li>
  55. <li>Scroll to the bottom of the page and click the Save button</li>
  56. <li>Select System &gt; Access &gt; Users from the left navigation menu</li>
  57. <li>Click the cloud button at the bottom right of the user table</li>
  58. <li>Select users from LDAP to allow access to OPNSense</li>
  59. <li>Click the edit button next to each user and add the appropriate&nbsp;Group Memberships&nbsp;</li>
  60. <li>Click Lobby &gt; Logout from the left navigation menu</li>
  61. <li>Test logging in as an LDAP authenticated user</li>
  62. </ol> </div>
  63. </div>
  64. </body>
  65. </html>