0140.html 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Enabling LDAP/Active Directory Authentication in Apache Guacamole</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,Guacamole,Apache,LDAP,Active Directory,Microsoft,Linux,Authentication">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Enabling LDAP/Active Directory Authentication in Apache Guacamole">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  12. <script type="text/javascript" src="includes/js/steps.js"></script>
  13. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  14. </head>
  15. <body>
  16. <div id="gridContainer">
  17. <div class="topMargin"></div>
  18. <div id="listName" class="topMargin">
  19. <h1>Enabling LDAP/Active Directory Authentication in Apache Guacamole</h1>
  20. </div>
  21. <div></div>
  22. <div id="content">
  23. <ol>
  24. <li>Open a terminal and run the following commands:
  25. <div class="codeBlock">wget http://mirror.metrocast.net/apache/guacamole/1.2.0/binary/guacamole-auth-ldap-1.2.0.tar.gz<br />
  26. <b>tar</b> -xzf guacamole-auth-ldap-1.2.0.tar.gz<br />
  27. sudo mkdir /etc/guacamole/extensions<br />
  28. sudo cp ~/guacamole-auth-ldap-1.2.0/guacamole-auth-ldap-1.2.0.jar /etc/guacamole/extensions<br />
  29. sudo nano /etc/guacamole/guacamole.properties</div>
  30. </li>
  31. <li>Edit the guacamole.properties file adding the following values:
  32. <p>### LDAP SETTINGS<br />
  33. ldap-hostname:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; i12bretrodc.i12bretro.local<br />
  34. ldap-port:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 389<br />
  35. ldap-encryption-method: none</p>
  36. <p>ldap-user-base-dn:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DC=i12bretro,DC=local<br />
  37. ldap-username-attribute: sAMAccountName</p>
  38. <p>ldap-search-bind-dn:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CN=readonly_svc,CN=Users,DC=i12bretro,DC=local<br />
  39. ldap-search-bind-password: Read0nly!!<br />
  40. <br />
  41. ldap-user-search-filter: (&amp;(objectClass=user)(memberOf:1.2.840.113556.1.4.1941:=CN=GuacamoleUsers,CN=Users,DC=i12bretro,DC=local))</p>
  42. </li>
  43. <li>Press CTRL+O, Enter, CTRL+X to save the changes and exit</li>
  44. <li>Back in the terminal, run the following command to restart Tomcat
  45. <div class="codeBlock">sudo systemctl restart tomcat9</div>
  46. </li>
  47. <li>Open a web browser and navigate to Guacamole</li>
  48. <li>Test logging in with a valid Active Directory username and password
  49. <p>Note: to use an Active Directory account in Guacamole as a Guacamole administrator you must manually create the User in Guacamole &gt; Settings &gt; Users. After logging in with the account it will see Active Directory and Guacamole specific users simultaneously</p>
  50. </li>
  51. </ol>
  52. <p>https://enterprise.glyptodon.com/doc/latest/authenticating-users-with-ldap-12812314.html<br />
  53. https://guacamole.apache.org/doc/gug/ldap-auth.html#ldap-downloading</p>
  54. </div>
  55. </div>
  56. </body>
  57. </html>