Re: [RCD] [RCU] I try to implement the change password plugin { cross postvolontary of rondcube list

Re: [RCD] [RCU] I try to implement the change password plugin { cross postvolontary of rondcube list

am 22.04.2010 02:53:44 von fakessh

hello boys and girls
hello all users of this list
hello guru of php
hello much many people

here is my previous discution

Hi there,
You don't really need to write any line in C to change the password the
PAM way:

http://svn.php.net/viewvc/pecl/pam/trunk/README?view=3Dmarku p

This is a PECL module, so installation is easy: pecl install pam

See you!!
emi

2010/4/20 fakessh :

On Tue, 20 Apr 2010 14:09:07 +0200, "A.L.E.C" wrote:

fakessh wrote:

I try to implement the change password plugin I just watched
http://trac.roundcube.net/browser/trunk/plugins/password it does not seem
to have an option to change password when using=20

dovecot

I do not use sql or ldap. I use pam to store my password
through the authentication to postfix and dovecot: my passwords are login
or plain text if so, can you enlighten me how to use the change password
plugin=20

I don't know if there is a plugin or driver for PAM passwords
change. You need a command line tool for changing passwords e.g. chpasswd
and use it in PHP. For example see 'sasl' driver from 'password' plugin.
Programmers can take a look at http://www.unicom.com/sw/web-chpass. Also=20

virtualmin (which we support in virtualmin driver) probably is
working with PAM.=20

thank you A.L.E.C thanks you all users I just look at the code
http://trac.roundcube.net/browser/trunk/plugins/password/dri vers/sasl.php
to integrate easily into roundcube it is simply necessary to modify the
code web-chpass and the executable c nipasswd then plugin with a part in =
c
I'm afraid of writing this piece of c, I just perl the c is entirely take=
n
from http://www.unicom.com/sw/web-chpass I am afraid to make mistakes in
writing c them what someone feels able to write this plugin derives from
nipasswd _______________________________________________ List info:
http://lists.roundcube.net/dev/=20


i just perl and c
I do not know php
I want a little help to understand and run the documentation
I correctly installed pecl install pam

I have the following API

1 API
2 =09
3 bool pam_auth(string $username, string $password [, string &$error [
$checkacctmgmt =3D true ] ])
4 bool pam_chpass(string $username, string $oldpassword, string
$newpassword [, string &$error ])
5 =09
6 The parameters are
7 =09
8 username - Username to check
9 password - User supplied password
10 error - Output parameter to put any error messages in
11 checkacctmgmt - Call pam_acct_mgmt() to check account expiration and
access hours (requires root access!)
12 oldpassword - Current password on account
13 newpassword - Password to change to=20



can you give me a simple example using this API

bool pam_auth (string $username, string $password =
=20
[, string &$error [ $checkacctmgmt =3D true ] ])
^ ^ ^ ^ =
=20
^ ^
what it 's what it 's what it 's what it 's =
=20
what it 's what it 's


bool pam_chpass (string $username, string
$oldpassword, string $newpassword [, string &$error ])
^ ^ ^ ^ =
=20
^ ^
what it 's what it 's what it 's what it 's =
=20
what it 's what it 's



can you give me a simple example of how these functions
A simple example would allow me to easily write the plugin for
roundcubemail


thanks for your advice
thanks for all return


aka /fakessh/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php