]> git.proxmox.com Git - pve-access-control.git/commit - src/PVE/Auth/LDAP.pm
Auth/LDAP: add get_{users, groups} subs for syncing
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 13 Mar 2020 12:18:45 +0000 (13:18 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 21 Mar 2020 14:44:46 +0000 (15:44 +0100)
commit2c6e956e0a8e4153b09df7fa2543dbf6d5f183a3
treedf5dbd786c6ad8657af8b8cdd9970b8fcc972138
parenteba326d2df2cd567d511e4b114bfadabc05360a1
Auth/LDAP: add get_{users, groups} subs for syncing

this adds the subs which actually query the LDAP for users/groups
and returns the value in format which makes it easy to insert
in our parsed user.cfg

when we find a user/groupname which cannot be in our config,
we warn the verification error

for groups, we append "-$realm" to the groupname, to lower the chance of
accidental overwriting of existing groups (this will be documented
in the api call since it technically does not prevent overwriting, just
makes it more unlikely)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/Auth/LDAP.pm