auth_proxy doesn't understand padding characters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
New
|
Undecided
|
Unassigned |
Bug Description
I've set up ldap authentication through my institution. However, the 'id number' that it provides is not _exactly_ what Evergreen needs.
I'm getting the 'id number' from a different ldap field than our patrons use as their campus login, so i'm using bind_attr and id_attr. However, the campus started zero-padding id numbers, so instead of '123456' (my opac login), LDAP provides '0123456'.
I've got a sloppy fix where in AuthProxy.pm I do an extra check - if the user is not found in evergreen, strip leading zeros from the $args->{'username'} and try again.
But is "I need to transform what i get from auth_proxy" a more common issue? Would there be a better way to solve it?
thanks.
evergreen 3.4.2.