Skip to content

Commit

Permalink
Always normalize idmap upn inputs
Browse files Browse the repository at this point in the history
Otherwise '[email protected]' will
get a different uid than
'[email protected]'.

Signed-off-by: David Mulder <[email protected]>
  • Loading branch information
dmulder committed May 22, 2024
1 parent 69b64fe commit a5cd10d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/idmap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ impl SssIdmap {
})?;
let tenant_id_cstr =
CString::new(tenant_id).map_err(|_| IdmapError::IDMAP_OUT_OF_MEMORY)?;
let input_cstr = CString::new(input).map_err(|_| IdmapError::IDMAP_OUT_OF_MEMORY)?;
let input_cstr =
CString::new(input.to_lowercase()).map_err(|_| IdmapError::IDMAP_OUT_OF_MEMORY)?;
unsafe {
let mut id: u32 = 0;
match map_err(ffi::sss_idmap_gen_to_unix(
Expand Down

0 comments on commit a5cd10d

Please sign in to comment.