When running on Rocky 9.6, I get the following error.
Attempt to bind app custom auth failed error="Authentication failure" binddn=cn=joeblogs,dc=glauth,dc=com src=[::1]:42768
I have disabled SELinux to ensure it is not the problem. Same configuration on Ubuntu 22.04.5 LTS works like a charm. At this point, glauth is being run as root, so access to /etc/shadow shouldn't be an issue.
Poking around in the code, I suspect the issue lies in authenticateUserPAM, but, not having any experience in Go, it is challenging to pinpoint precisely where it is failing.
Would you happen to have any suggestions on the next step in debugging it?
PS. poking around in the code, what is the rationale behind constructing a GECOS field from the username rather than returning the actual GECOS field from /etc/passwd?
When running on Rocky 9.6, I get the following error.
Attempt to bind app custom auth failed error="Authentication failure" binddn=cn=joeblogs,dc=glauth,dc=com src=[::1]:42768
I have disabled SELinux to ensure it is not the problem. Same configuration on Ubuntu 22.04.5 LTS works like a charm. At this point, glauth is being run as root, so access to /etc/shadow shouldn't be an issue.
Poking around in the code, I suspect the issue lies in authenticateUserPAM, but, not having any experience in Go, it is challenging to pinpoint precisely where it is failing.
Would you happen to have any suggestions on the next step in debugging it?
PS. poking around in the code, what is the rationale behind constructing a GECOS field from the username rather than returning the actual GECOS field from /etc/passwd?