|
Take care of file permissions, remember that php runs with apache privileges, normally a normal user account like www-data or so. If you plan to use PAM
against your system's users and your system uses shadowed password you should remember that /etc/shadow is only readable by root, so php won't be able to read it,
(the PAM library runs with the calling user privileges) so you'll have to workaround it, maybe letting your webserver's user read shadow file or so.
I'd be glad of any suggestions on that point
Security Issues
With a default PAM service any account will be granted (try user: nobody 😛 ) so here are a few things to take care about that:
I recomend you to make use of pam_require module to require a specific group to be in for the user. Also you can take a look at PAM Modules at kernel.org to refine a bit more your pam service for tiki.
Also take note that pam only receive a user/pass pair and checks it, it relays on your web server settings to handle a secure transaction of that pair from the browser to the server, I recommend SSL 😛
Thanks damian for advising me that two things.
Knowledgebase / tutorial / FAQ / How-to
TikiTeam
Who is working here generally? Link UserPage.
For more information
|