Repository navigation
|
Hi, I've setup Himmelblau and got it all working to the point that I invited colleagues to try it, then I discovered that it only works for me! All other users fail to authenticate with a "no token available" message. Our config is: This is on a SLES 15 SP7 machine running v3.1.14. The bit that fails is the initial: For me "pam authenticate linux" goes straight to "unix_user_online_auth_init" and doesn't call "unix_user_get". Thanks, Paul. |
Replies: 2 comments 3 replies
|
I've done an "aad-tool cache-clear --full" and deleted the device from Entra... and now I'm getting the error too:
At least now it's consistent, though I'm back to square one. |
|
Hi Paul, your log shows the cause, and it is a configuration pairing rather than anything silly. The failing call is the one that maps a user's UPN to an object id before authentication, and it only runs because of id_attr_map = uuid. What the log says With id_attr_map = uuid, a user who is not yet in the local id cache has to be resolved to an object id before PAM can continue. That is the unix_user_get branch and the Failed mapping UPN to Object Id line. Set id_attr_map = name. The configuration documentation recommends name or rfc2307 over uuid, and name mapping never calls that endpoint, so colleagues authenticate without the pre-auth lookup. This is the change I would make first. After aad-tool cache-clear --full and deleting the device from Entra, the machine is no longer enrolled, which is what NotFound: token in AuthSession reports. https://github.com/himmelblau-idm/himmelblau/blob/main/man/man5/himmelblau.conf.5 My own work is at github.com/tltaylor1, and a ⭐ on any repo you find interesting is always appreciated. |
Hi Paul, your log shows the cause, and it is a configuration pairing rather than anything silly. The failing call is the one that maps a user's UPN to an object id before authentication, and it only runs because of id_attr_map = uuid.
What the log says
With id_attr_map = uuid, a user who is not yet in the local id cache has to be resolved to an object id before PAM can continue. That is the unix_user_get branch and the Failed mapping UPN to Object Id line.
That lookup is a request to Entra's sidtoname endpoint, signed with the device's enrolment key. Entra answered 400, so it refused that request from this device identity.
Your own account never takes that branch, because it was cached wh…