[pve-devel] [PATCH access-control] jobs: realm sync: fix scheduled LDAP syncs not applying attributes correctly

Fiona Ebner f.ebner at proxmox.com
Tue Mar 19 15:57:34 CET 2024


Am 19.03.24 um 14:48 schrieb Christoph Heiss:
> This was reported by a user in the forum [0].
> 
> The cause was that the user-* standard options were not registered when
> the sync was called from the scheduler, resulting in the following
> error:
> 
>   pvescheduler[2849]: skipping attribute mapping 'cn'->'comment' for user 'test at samba0' - no such standard option 'user-comment'
> 
> Fix this by simply importing the PVE::API2::User module, thus ensuring
> the options get registered.
> 
> [0] https://forum.proxmox.com/threads/ldap-integration-comment-email-first-name-lastname.143490/
> 
> Signed-off-by: Christoph Heiss <c.heiss at proxmox.com>

Fixes: cb93636 ("LDAP sync: improve validation of synced attributes")
Reviewed-by: Fiona Ebner <f.ebner at proxmox.com>
Tested-by: Fiona Ebner <f.ebner at proxmox.com>

Thank you for the fix!

The schema for the user- properties could also be moved somewhere that
can be accessed by both API2::User module and Auth::LDAP module and
included there directly. That would be more future-proof, but as a quick
fix, this is fine too.




More information about the pve-devel mailing list