0140.html 3.7 KB

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