Redmine PAM authentication plugin
That recipe shows how to configure redmine to use PAM authentication. It includes the PAM authentication plugin code.
- a working redmine installation
- libpam0g-dev (debian package)
- rpam (gem)
Write that in a
And run it with:
Following the instruction of Alternative (custom) Authentication HowTo, I wrote that trivial (but working) plugin:
Put that file in
/usr/share/redmine/app/models/ (in the case of Debian)
Register the plugin
Like the Authentication HowTo say, you must insert a record in the auth_sources database table. I use sqlite3 so in my case I did:
Selecting authentication method
Now, you must restart redmine and go to the user administration page. In the “Authentication” section there is now a new option called “Authentication mode” and you may select among “internal” or “Pam”. That is all.
I’m sorry if the plugin code contains errors, but it is my very first Ruby program. Please, comment if you have some suggestion or problem.