Closed Dacha204 closed 7 years ago
I managed to make it work on Ubuntu 16.04. Check: https://github.com/Dacha204/pam-imap
Thanks for your fixes. I adapted your build-step fixes and committed them.
Please try the latest version and see if it works for you.
I'll try to merge some of your other commits too, but not right now :)
Ok. I think I fixed the important stuff.
If you want your documentation additions/changes merged, please file a PR for those changes. Thanks!
It works now :+1:
TY for confirming.
I managed to compile it, but can't make it work.
What I've done:
Copy
pam_imap.so
to/lib/x86_64-linux-gnu/security/pam_imap.so
Copy
pam_imap.conf
to/etc/pam.d/pam_imap.conf
Changed variables in
pam_imap.conf
:Created
check_user
in/etc/pam.d/
folder:Generated
imapd.pem
in/etc/ssl/certs/imapd.pem
usingopenssl req -newkey rsa:4096 -nodes -sha512 -x509 -days 3650 -nodes -out /etc/ssl/certs/imapd.pem -keyout /etc/ssl/private/imapd.pem
Then I tried _checkuser utility and failed.
/var/log/auth.log
inspection shows:Also tried to play with
/etc/pam.d/sshd
, but then i got this error inauth.log
:Working config examples would be very helpful. Distro: Ubuntu Server 16.04.3 LTS