Bug 15786 - dcesrv_samr_LookupNames for UPN
Summary: dcesrv_samr_LookupNames for UPN
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: AD: LDB/DSDB/SAMDB (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-21 14:46 UTC by prohorp
Modified: 2025-02-12 07:14 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description prohorp 2025-01-21 14:46:02 UTC
for upn type names user1@test.abc you need to filter not on sAMAccountName, but on userPrincipalName.

https://gitlab.com/samba-team/samba/-/blob/master/source4/rpc_server/samr/dcesrv_samr.c?ref_type=heads#L2155

it was tested like this: id user1@test.abc on Linux. samba dc install
Comment 1 prohorp 2025-02-12 07:14:55 UTC
In winbind I can't pass authentication by UPN.

/etc/nsswitch.conf:
passwd:     files winbind systemd
shadow:     tcb files winbind
group:      files winbind systemd role

Or is there a way to enable upn for winbind?