0278.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Setting up LDAP Authentication for NextCloud</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Linux,Nextcloud,PHP,Apache,Self-Hosted,Cloud Solution,HowTo,Web Based Tools,LDAP,Authentication,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Setting up LDAP Authentication for NextCloud">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="06/04/2022 07:44:26 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 NextCloud</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <ol>
  26. <li>Log into the Linux device</li>
  27. <li>Run the following commands in terminal to install the PHP LDAP module
  28. <div class="codeBlock"># update software repositories<br />
  29. sudo apt update<br />
  30. # install php-ldap module<br />
  31. sudo apt install php-ldap<br />
  32. # restart apache httpd service<br />
  33. sudo systemctl restart apache2</div>
  34. </li>
  35. <li>Launch a web browser and navigate to http://DNSorIP/nextcloud</li>
  36. <li>Log into NextCloud with an administrative account</li>
  37. <li>Click the settings gear menu &gt; Apps in the top right&nbsp;corner</li>
  38. <li>Press CTRL+F and search for LDAP</li>
  39. <li>Click the LDAP user and group backend app</li>
  40. <li>Install/Enable the&nbsp;LDAP user and group backend app</li>
  41. <li>Select settings gear menu &gt; Settings from the menu in the upper right hand corner</li>
  42. <li>Under Administration, Select LDAP / AD Integration&nbsp;in the left navigation menu</li>
  43. <li>Fill out the LDAP server form as follows:<br />
  44. Host: ldap://i12bretro.local<br />
  45. Port: 389<br />
  46. User DN: CN=readonly_svc,CN=Users,DC=i12bretro,DC=local<br />
  47. Password: Read0nly!!<br />
  48. Base DN:&nbsp;CN=users,DC=i12bretro,DC=local</li>
  49. <li>Click the Test Base DN button</li>
  50. <li>Click the Continue button</li>
  51. <li>Click the Continue button</li>
  52. <li>Check the LDAP / AD Email Address box and click the Continue button</li>
  53. <li>Select Username &gt; Logout from the menu in the upper right hand corner</li>
  54. <li>Log into NextCloud using LDAP user credentials</li>
  55. </ol>
  56. </div>
  57. </div>
  58. </body>
  59. </html>