Roundcube Community Forum

 

Freebsd 9.0 with password plugin not working

Started by jowen, February 20, 2013, 12:57:11 PM

Previous topic - Next topic

jowen

Hello forum.

I have a server setup with freebsd 9.0 i386. My problem is that I cannot get the password plugin to work. My users will be system users.
My mail services are as follows:
sendmail, dovecot, postfix, sasl, clamav, spamassassin.

my dovecot uses pam to authenticate the IMAP and it works great. I receive and sendmail fine.

I have tried using pw_usermod and pam. Ive even tried a solution I found online using sudo passwd.

With the pw_usermod option I know the command works with sudo in a regular shell environment, (I take the completed command and execute it from the terminal and it works great), but when I try to execute in witth php script it tells me it cant save the password.

I added echo to a bunch of the commands and the only thing can think might be the problem is pclose gives me the error 127. I read that with freebsd you have to change the bytes, so now it doesnt give me any error, it saves saved password.  But it doesn't actually save the password in the system.

I also tried the pam option and it always said pam authentication failed. When I change the pam file for php to allow everything it didnt give me an error but it still wouldn't change the password.

The same thing happes with using the sudo passwd command, in shell it works but with the php script it doesn't.

I am completely lost and I would really like that this works for a limited amount of time after created the accounts I want to give them the option to change their password and then disable the functionality, And if they want to change the password again I can give them that access. 


Thank you for reading.

jowen

Encontré por fin el problema

Cuando instalé el PHP no había seleccionado la extensión GD y IMAP. despues de seleccionarlo ya está funcionando con pw_usermod. No funciona todavía en mi caso el PAM. Pero por lo menos está sí executando desde la página web los comandos.