0788.html 4.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Setting Up LDAP Authentication for Kanboard</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Browser Based,Home Lab,Home Lab Ideas,LDAP,Self-Hosted,Web Based,Web Based Tools,Kanban,Kanboard,Task Management,Todo,Windows,Microsoft Windows,XAMPP,PHP Based Applications,PHP Based Task Management,PHP Based Kanban Board,Kanban Board,Kanban Task Management,AD,Active Directory,Administration,Web Server Administration,Web Server,Web Server Customization,System Administrator,System Administration,PHP,Microsoft,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Setting Up LDAP Authentication for Kanboard">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="08/10/2022 06:11:12 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>Setting Up LDAP Authentication for Kanboard</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <p>NOTE: This tutorial assumes Kanboard is already installed and running. If it isn&#39;t, follow one of these tutorials to install it<br />
  26. Linux: <a href="https://youtu.be/" target="_blank">https://youtu.be/</a><br />
  27. Windows: <a href="https://youtu.be/on_8FD3DRKk" target="_blank">https://youtu.be/on_8FD3DRKk</a></p>
  28. <h2>What is Kanboard?</h2>
  29. <blockquote><em>Kanboard is project management software that focuses on the Kanban methodology. -<a href="https://github.com/kanboard/kanboard" target="_blank">https://github.com/kanboard/kanboard</a></em></blockquote>
  30. <h2>Active Directory Setup</h2>
  31. <ol>
  32. <li>Open Active Directory Users and Computers</li>
  33. <li>Expand the domain &gt; Users</li>
  34. <li>Right Click Users &gt; New &gt; User</li>
  35. <li>Create a read only account to use for LDAP binding
  36. <p>First Name: Read<br />
  37. Last Name: Only<br />
  38. User logon name: readonly_svc</p>
  39. </li>
  40. <li>Click Next</li>
  41. <li>Set the user&#39;s password and confirm it</li>
  42. <li>Uncheck User must change password on next logon</li>
  43. <li>Check User cannot change password</li>
  44. <li>Check Password never expires &gt; Click Next</li>
  45. <li>Click Finish</li>
  46. <li>Right Click Users &gt; New &gt; Group</li>
  47. <li>Give the group a name (ie DevTeam) and click OK</li>
  48. <li>Right Click the newly created group &gt; Properties</li>
  49. <li>Select the Members tab &gt; Click Add...</li>
  50. <li>Add users that will be allowed access Kanboard</li>
  51. <li>Click OK</li>
  52. </ol>
  53. <h2>Configuring Kanboard for LDAP</h2>
  54. <ol>
  55. <li>Navigate to the PHP install directory in File Explorer</li>
  56. <li>Edit php.ini in a text editor</li>
  57. <li>Find the ldap extension and make sure it is enabled by removing the # at the start of the line
  58. <p>extension=ldap</p>
  59. </li>
  60. <li>Save the changes to php.ini</li>
  61. <li>Restart the Apache HTTPD service</li>
  62. <li>Navigate to the Kanboard installation directory</li>
  63. <li>Edit config.php in a text editor</li>
  64. <li>Edit the following fields to configure the LDAP connection
  65. <p>define(&#39;LDAP_AUTH&#39;, true);<br />
  66. define(&#39;LDAP_SERVER&#39;, &#39;ldap://i12bretro.local:389&#39;);<br />
  67. define(&#39;LDAP_BIND_TYPE&#39;, &#39;proxy&#39;);<br />
  68. define(&#39;LDAP_USERNAME&#39;, &#39;readonly_svc@i12bretro.local&#39;);<br />
  69. define(&#39;LDAP_PASSWORD&#39;, &#39;Read0nly!!&#39;);<br />
  70. define(&#39;LDAP_USER_BASE_DN&#39;, &#39;CN=Users,DC=i12bretro,DC=local&#39;);<br />
  71. define(&#39;LDAP_USER_FILTER&#39;, &#39;(&amp;(objectClass=user)(sAMAccountName=%s)(memberof=cn=DevTeam,CN=Users,dc=i12bretro,dc=local))&#39;);<br />
  72. define(&#39;LDAP_USER_ATTRIBUTE_USERNAME&#39;, &#39;sAMAccountName&#39;);</p>
  73. </li>
  74. <li>Save the changes to config.php</li>
  75. <li>Open a browser and navigate to the Kanboard URL</li>
  76. <li>Attempt logging in with a valid LDAP user name and password</li>
  77. </ol>
  78. <p>Documentation: <a href="https://docs.kanboard.org/en/latest/admin_guide/ldap_authentication.html" target="_blank">https://docs.kanboard.org/en/latest/admin_guide/ldap_authentication.html</a></p> </div>
  79. </div>
  80. </body>
  81. </html>