0140.html 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. <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>Enabling LDAP/Active Directory Authentication in Apache Guacamole</h1>
  21. </div>
  22. <div></div>
  23. <div id="content">
  24. <ol>
  25. <li>Open a terminal and run the following commands:
  26. <div class="codeBlock">wget http://mirror.metrocast.net/apache/guacamole/1.2.0/binary/guacamole-auth-ldap-1.2.0.tar.gz<br />
  27. <b>tar</b> -xzf guacamole-auth-ldap-1.2.0.tar.gz<br />
  28. sudo mkdir /etc/guacamole/extensions<br />
  29. sudo cp ~/guacamole-auth-ldap-1.2.0/guacamole-auth-ldap-1.2.0.jar /etc/guacamole/extensions<br />
  30. sudo nano /etc/guacamole/guacamole.properties</div>
  31. </li>
  32. <li>Edit the guacamole.properties file adding the following values:
  33. <p>### LDAP SETTINGS<br />
  34. ldap-hostname:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; i12bretrodc.i12bretro.local<br />
  35. ldap-port:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 389<br />
  36. ldap-encryption-method: none</p>
  37. <p>ldap-user-base-dn:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DC=i12bretro,DC=local<br />
  38. ldap-username-attribute: sAMAccountName</p>
  39. <p>ldap-search-bind-dn:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CN=readonly_svc,CN=Users,DC=i12bretro,DC=local<br />
  40. ldap-search-bind-password: Read0nly!!<br />
  41. <br />
  42. ldap-user-search-filter: (&amp;(objectClass=user)(memberOf:1.2.840.113556.1.4.1941:=CN=GuacamoleUsers,CN=Users,DC=i12bretro,DC=local))</p>
  43. </li>
  44. <li>Press CTRL+O, Enter, CTRL+X to save the changes and exit</li>
  45. <li>Back in the terminal, run the following command to restart Tomcat
  46. <div class="codeBlock">sudo systemctl restart tomcat9</div>
  47. </li>
  48. <li>Open a web browser and navigate to Guacamole</li>
  49. <li>Test logging in with a valid Active Directory username and password
  50. <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>
  51. </li>
  52. </ol>
  53. <p>https://enterprise.glyptodon.com/doc/latest/authenticating-users-with-ldap-12812314.html<br />
  54. https://guacamole.apache.org/doc/gug/ldap-auth.html#ldap-downloading</p>
  55. </div>
  56. </div>
  57. </body>
  58. </html>