]> git.proxmox.com Git - pve-access-control.git/commit
Auth/AD: make PVE::Auth::AD a subclass of PVE::Auth::LDAP
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 13 Mar 2020 12:18:46 +0000 (13:18 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 21 Mar 2020 14:44:46 +0000 (15:44 +0100)
commite65b53c6a9039e6e1665903e2128d8ac25268e2a
treec04a092595d15a90477385d747aa152decd754bc
parent2c6e956e0a8e4153b09df7fa2543dbf6d5f183a3
Auth/AD: make PVE::Auth::AD a subclass of PVE::Auth::LDAP

this makes it much easier to reuse the sync code from LDAP in AD.
The 'authenticate_user' sub is still the same, but we now
can still use the get_users and get_groups functionality of LDAP

in the case of AD, the user_attr is optional in the config
(would have been a breaking change) but we set it
to default to 'sAMAccountName'

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