mirror of
https://github.com/lldap/lldap.git
synced 2026-04-25 16:25:55 +03:00
[GH-ISSUE #413] Add support for Proxmox VE #158
Labels
No labels
backend
blocked
bug
cleanup
dependencies
docker
documentation
duplicate
enhancement
enhancement
frontend
github_actions
good first issue
help wanted
help wanted
integration
invalid
ldap
pull-request
question
rust
rust
tests
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/lldap-lldap#158
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @compieter-gh on GitHub (Jan 7, 2023).
Original GitHub issue: https://github.com/lldap/lldap/issues/413
I've been trying to get Proxmox VE with LDAP working and it does work but also would like too have support added here.
I self have been mainly having issues with the group & user filtering. I dont understand LDAP that well.
Base Domain Name: dc=compieter,dc=local
Bind User: cn=auth,ou=people,dc=compieter,dc=local
User Filter: (&(objectClass=person))
Group Filter: (&(ObjectClass=groupofnames)(cn=proxmox_admin))
I've also tried:
User Filter: (&(memberOf=CN=proxmox_admin,OU=groups,DC=compieter,DC=local))
Group Filter: (&(distinguishedName=CN=proxmox_admin,OU=people,DC=compieter,DC=local))
Which all results in the groups and users getting added to both.

If anyone can add support and help with this thanks.
@nitnelave commented on GitHub (Jan 17, 2023):
Technically the group class is groupOfUniqueNames, but groupOfNames also works. You can use that in the
Group classesbox above.Could you link to the LLDAP logs (with --verbose) for when you try the import?
@pixelrazor commented on GitHub (Mar 21, 2023):
A good a ction item after sorting this out would be making an example_configs page for proxmox
@pixelrazor commented on GitHub (Mar 23, 2023):
Based off reading their docs (and if you could please confirm if this works):
I think this should be the Base Domain Name =
ou=people,dc=compieter,dc=local. This may not be needed or may even be incorrect (it's based off information from a screenshot in their docs)For the sync
User class should just be
personi think - i don't think lldap has auserobject class. If youur intention is to sync all users, then remove the user filter. did you wanttoo only add users that are in a certain group?Do you want to sync the lldap groups as well? if not, then definitely remove both group class and group filter. If you want to sync all groups, then remove the group filter and change group class to either
groupOfUniqueNamesorgroupOfNames.I don't currently see agood reason to use a group filter with lldap in the current state - maybe if groups could be members of groups that would be something for filtering
@compieter-gh commented on GitHub (Mar 25, 2023):
Idk how to do that i am running it inside a docker
@compieter-gh commented on GitHub (Mar 25, 2023):
Well yeah i wanted to apply permission to a specific group with the users in it but it either shows all users and group in both the user and groups of proxmox or only the users on both.
If i sync it with "ou=people,dc=compieter,dc=local" it will show only the users in users and the groups of proxmox
If i sync it just with the base "dc=compieter,dc=local" It will just do all in both. which seems like it isnt working the way it should?
besides that i am thinking maybe just applying the perms to only the users is gonna be the solution here?
I'm new with LDAP in general and kinda learning how the servers and stuff works so sorry if it seems stupid.
@pixelrazor commented on GitHub (Mar 25, 2023):
When I'm at my computer I think I actually wrapped my head around it and have a clear answer. Until then, if you could just answer some things:
What groups do you want? In your initial post you had a proxmox admin group specified. Did you want other groups with less permissions? Also, did you want to sync ALL users (even ones not in and proxmox groups), or only users that are part of proxmox_admins (and others if you wanted more groups to give other kinds of perms).
If I have that information when I have a spare moment, I think I can write up your config values and walk through/explain each of them
@compieter-gh commented on GitHub (Mar 27, 2023):
I would want two groups which is proxmox_admins & proxmox_users and the users that are part of that group.
i would just define the permissions in proxmox to the group itself which makes it easier than too the users individually
@pixelrazor commented on GitHub (Mar 27, 2023):
Okay, (hopefully) correct answers time! It's a bit easier if there's ONE group that determines proxmox membership, and then you can have additional groups to add extra permissions. For example with the two groups you gave:
User Bob is in proxmox_users and has no big permissions.
User Alice is in proxmoc_users and proxmox_admins - the admins group has priveledge.
TL;DR have all proxmox users in proxmox_users, then create extra groups to add permission on top of that. (this isn't a requirement, but just the way i'd personally organize it)
Your General settings look good to me in your initial picture - ignore my previous comments about changing base DN
Now for the sync:
mailoremail- both work)cn)persongroupofuniquenamesorgroupofnamesmemberOf=cn=proxmox_users,ou=groups,dc=compieter,dc=localproxmox_prefix, or explicitly list all of them. To sync the prefixed groups:cn=proxmox_*or to sync explicitly:(|(cn=proxmox_admins)(cn=proxmox_users))I actually didn't understand LDAP for a long time, but i think over the last few days things are starting to click for me. Please give this a shot and let me know how it goes! if there's any issues, let me know and please include some screenshots like the first post. If you have any questions about any of this, i can try my best to explain in more details. Also, note that according to the proxmox docs, your synced groups will be named
proxmox_admins-compieter.localandproxmox_users.compieter.local@pixelrazor commented on GitHub (Mar 27, 2023):
Just a note that the prefix filter with teh wildcard may not work depending on youur lldap version - you might want to use teh explicit filter
@compieter-gh commented on GitHub (Mar 27, 2023):
That actually works perfect. Thank you very much.
Indeed the prefix doesn't work with proxmox am just using the explicit groups.
@pixelrazor commented on GitHub (Mar 27, 2023):
Awesome, i'm glad i could help! I'll try to add a proxmox example config to the repo this week. Thanks for bearing with me as i also navigated how the heck lldap works! (and also not wanting to setup a proxmox vm to try myself)
@nitnelave commented on GitHub (Aug 3, 2023):
Any news on the proxmox configuration? @compieter-gh do you think you could write up a guide/give a sample config?
@lkmhaqer commented on GitHub (Aug 31, 2023):
Proposed a Proxmox VE example here: https://github.com/lldap/lldap/pull/662