Skip to content

Commit

Permalink
Merge pull request #138 from himmelblau-idm/dmulder/normalize_idmap_i…
Browse files Browse the repository at this point in the history
…nputs

Always normalize idmap upn inputs
  • Loading branch information
dmulder authored May 22, 2024
2 parents 5b92042 + 3884264 commit 48d666b
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 48d666b

Please sign in to comment.