0413.html 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Setting up LDAP Authentication for ProxMox VE</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Proxmox LDAP Authentication Setup,Proxmox Active Directory Setup,Proxmox VE,Proxmox,Authentication,Self-Hosted,Home Lab,LDAP,Active Directory,Debian,Linux,Hypervisor,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Setting up LDAP Authentication for ProxMox VE">
  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>Setting up LDAP Authentication for ProxMox VE</h1>
  21. </div>
  22. <div></div>
  23. <div id="content">
  24. <p><em>NOTE: ProxMox does not like spaces in user or group names</em></p>
  25. <h2>Create VMAdmins Group</h2>
  26. <ol>
  27. <li>Click the Start button &gt; Windows Administrative Tools &gt; Active Directory Users and Computers</li>
  28. <li>Expand the domain name</li>
  29. <li>Right click on the Users container &gt; New &gt; Group</li>
  30. <li>Name the group VMAdmins &gt; Click OK</li>
  31. <li>Double click the newly created VMAdmins group</li>
  32. <li>Select the Members tab &gt; Click the Add... button</li>
  33. <li>Add users who will be administrators for the ProxMox host</li>
  34. </ol>
  35. <h2>Configuring LDAP Authentication in ProxMox VE</h2>
  36. <ol>
  37. <li>Open a web browser and navigate to the ProxMox VE web UI</li>
  38. <li>Log in</li>
  39. <li>Select Datacenter in the left navigation menu</li>
  40. <li>Select Permissions &gt; Authentication in the left sub navigation menu</li>
  41. <li>Click the Add dropdown &gt; LDAP Server</li>
  42. <li>Fill out the LDAP Server form as shown below
  43. <p>Realm: i12bretro.local<br />
  44. Base Domain Name: CN=Users,DC=i12bretro,DC=local<br />
  45. Server: 10.10.27.1<br />
  46. User Attribute Name: sAMAccountName</p>
  47. </li>
  48. <li>Click the Sync Options button at the top</li>
  49. <li>Fill out the Sync Options form as shown below
  50. <p>Bind User: CN=readonly_svc,CN=Users,DC=i12bretro,DC=local<br />
  51. Bind Password: Read0nly!!<br />
  52. E-Mail attribute: mail<br />
  53. User classes: person, user<br />
  54. Group classes: group<br />
  55. User Filter: (&amp;(memberOf=CN=VMAdmins,CN=Users,DC=i12bretro,DC=local))<br />
  56. Group Filter: (&amp;(distinguishedName=CN=VMAdmins,CN=Users,DC=i12bretro,DC=local))<br />
  57. Scope: Users and Groups<br />
  58. Enable new users: Yes<br />
  59. Full: Yes<br />
  60. Purge: Yes</p>
  61. </li>
  62. <li>Click the Add button</li>
  63. <li>Back on the Authentication page, select the new ldap authentication and click the Sync button</li>
  64. <li>Click the Preview button to test the sync without creating or modifying anything</li>
  65. <li>If the users and groups display as expected, close the preview and re-run the sync to create the users and groups</li>
  66. <li>Select Permissions in the left sub navigation menu</li>
  67. <li>Click Add &gt; Group Permission from the dropdown at the top of the page</li>
  68. <li>Set the path to /, select the VMAdmins group from the dropdown and select the desired Role &gt; Click Add</li>
  69. <li>Select the user dropdown in the top right of the screen &gt; Logout</li>
  70. <li>Log in with one of the LDAP users in the VMAdmins group, making sure to set the Realm to the domain realm created earlier</li>
  71. </ol>
  72. </div>
  73. </div>
  74. </body>
  75. </html>