0063.html 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Setting Up LDAP Authentication in Subsonic</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Windows,Subsonic,Media Streamer,Self-hosted,MP3,Tomcat,Active Directory,LDAP,AD,Web Based,Web Based Tools,Self-Hosted,Streaming,Music,Microsoft Windows,Music Streamer,Music Streaming,Network,Microsoft,Media Center,Media Server,Lightweight Directory Access Protocol,Apache Tomcat,Airsonic,Apache,Free Software,Home Lab,Install Guide,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Setting Up LDAP Authentication in Subsonic">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="03/29/2022 08:16:51 PM" />
  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 in Subsonic</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <h2>Active Directory Setup</h2>
  26. <ol>
  27. <li>Open Active Directory Users and Computers</li>
  28. <li>Expand the domain &gt; Users</li>
  29. <li>Right Click Users &gt; New &gt; User</li>
  30. <li>Create a read only account to use for LDAP binding<br />
  31. First Name: Read<br />
  32. Last Name: Only<br />
  33. User logon name: readonly_svc</li>
  34. <li>Click Next</li>
  35. <li>Set the user&#39;s password and confirm it</li>
  36. <li>Uncheck User must change password on next logon</li>
  37. <li>Check User cannot change password</li>
  38. <li>Check Password never expires</li>
  39. <li>Click Next</li>
  40. <li>Click Finish</li>
  41. <li>Right Click Users &gt; New &gt; Group</li>
  42. <li>Give the group a name and click OK</li>
  43. <li>Right Click the newly created group &gt; Properties</li>
  44. <li>Select the Members tab &gt; Click Add...</li>
  45. <li>Add users that will be allowed access to the web application</li>
  46. <li>Click OK</li>
  47. </ol>
  48. <h2>Configuring Subsonic</h2>
  49. <ol>
  50. <li>Open a web browser and navigate to http://DNSorIP:Port</li>
  51. <li>Login with the Subsonic admin account (admin/admin by default)</li>
  52. <li>Select Settings &gt; Advanced</li>
  53. <li>Check the Enable LDAP authentication box</li>
  54. <li>Fill out the LDAP setup fields below:<br />
  55. LDAP URL: ldap://i12bretro.local:389/dc=i12bretro,dc=local<br />
  56. LDAP search filter: (&amp;(sAMAccountName={0})(&amp;(objectCategory=user)(memberof=cn=Subsonic Users,CN=Users,dc=i12bretro,dc=local)))<br />
  57. LDAP manager DN (Optional): i12bretro.local\readonly_svc<br />
  58. Password: %readonly_svc password%<br />
  59. Check the Automatically create users in Subsonic box</li>
  60. <li>Click the Save button</li>
  61. <li>Click Users in the top navigation</li>
  62. <li>Make sure the Select user dropdown says -- New user --</li>
  63. <li>Check all the boxes for the permissions you&#39;d like the new user to have</li>
  64. <li>Set the username field</li>
  65. <li>Check the box to Authenticate user in LDAP</li>
  66. <li>Click the Save button</li>
  67. <li>Click Logout of admin from the left navigation</li>
  68. <li>Sign in with the active directory username and password</li>
  69. </ol>
  70. </div>
  71. </div>
  72. </body>
  73. </html>