[PHP] Re: [RCD] [RCU] I try to implement the change password plugin { cross post volontary of rondcube list }

2010-04-21 Thread 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=markup

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

See you!!
emi

2010/4/20 fakessh fake...@fakessh.eu:

On Tue, 20 Apr 2010 14:09:07 +0200, A.L.E.C a...@alec.pl 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 

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 

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 

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

thank you A.L.E.C thanks you all users I just look at the code
http://trac.roundcube.net/browser/trunk/plugins/password/drivers/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 taken
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/ 


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   
3   bool pam_auth(string $username, string $password [, string $error [
$checkacctmgmt = true ] ])
4   bool pam_chpass(string $username, string $oldpassword, string
$newpassword [, string $error ])
5   
6   The parameters are
7   
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 



can you give me a simple example using this API

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


bool   pam_chpass(string $username,string
$oldpassword, string $newpassword [, string $error ])
^  ^^   ^ 
^   ^
what it 's what it 's   what it 's  what it 's
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



[PHP] Re: [RCD] [RCU] [bug of pecl pam ] I try to implement the change password plugin

2010-04-25 Thread fakessh
On Sun, 25 Apr 2010 00:38:17 +0200, fakessh fake...@fakessh.eu wrote:
 On Sat, 24 Apr 2010 06:00:55 +0200, fakessh fake...@fakessh.eu wrote:
 On Thu, 22 Apr 2010 17:58:43 +0200, fakessh fake...@fakessh.eu wrote:
 On Thu, 22 Apr 2010 13:15:42 +0200, A.L.E.C a...@alec.pl wrote:
 fakessh wrote:
 
 [r...@r13151 ~]# diff --text -u 
 /home/ftpchrootshell/fakessh/sasl.txt
 
 
 BTW, http://trac.roundcube.net/ticket/1486647 ;)
 
 
 pecl pam suffers from a known bug that prevents the proper use of driver
 pam
 that is right
 
 http://pecl.php.net/bugs/bug.php?id=16995
 
 
 ___
 List info: http://lists.roundcube.net/dev/

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



Re: [PHP] Re: [RCD] [RCU] [bug of pecl pam ] I try to implement the change password plugin

2010-04-25 Thread fakessh
On Sun, 25 Apr 2010 16:16:00 +0200, fakessh fake...@fakessh.eu wrote:
 On Sun, 25 Apr 2010 00:38:17 +0200, fakessh fake...@fakessh.eu wrote:
 On Sat, 24 Apr 2010 06:00:55 +0200, fakessh fake...@fakessh.eu wrote:
 On Thu, 22 Apr 2010 17:58:43 +0200, fakessh fake...@fakessh.eu
wrote:
 On Thu, 22 Apr 2010 13:15:42 +0200, A.L.E.C a...@alec.pl wrote:
 fakessh wrote:
 
 [r...@r13151 ~]# diff --text -u 
 /home/ftpchrootshell/fakessh/sasl.txt
 
 
 BTW, http://trac.roundcube.net/ticket/1486647 ;)
 
 
 pecl pam suffers from a known bug that prevents the proper use of
driver
 pam
 that is right
 
 http://pecl.php.net/bugs/bug.php?id=16995
 


after further research it is necessary to type ctrl D.
how to write in this code

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



[PHP] pecl install pam and the current bug

2010-05-01 Thread fakessh
hello list
hello guru of php


it is php pecl install pam.
and bugs that prevented the driver from running pam
the driver does not work
I site bug
http://pecl.php.net/bugs/bug.php?id=16995

thanks for advice

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



[PHP] how to run pecl install pam

2010-06-12 Thread fakessh
hi list php
hi network php
hi all the guru of php


how to run pecl pam
I own a system centos 5.5 with deposits remi for php
what are the specific changes to /etc/pam.d/ and php.ini


and can you give me an example that works with all the details

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



[PHP] required return on pecl install pam

2010-08-18 Thread fakessh

hello guru off php

pecl pam seems little buggy
http://pecl.php.net/bugs/bug.php?id=16995

you are coming to run this extension
I'm listening and indication of any return

please help me


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



[PHP] chat facebook

2011-02-19 Thread fakessh @
anyone have a recipe for it on facebook chat

and I request a second thing
how to install PHP API

this is not explained

nene question but I do not know

Friendship
-- 
gpg --keyserver pgp.mit.edu --recv-key 092164A7
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x092164A7


signature.asc
Description: Ceci est une partie de message	numériquement signée


Re: [PHP] chat facebook

2011-02-19 Thread fakessh @
I'm looking script already written to facebook chat.
I think it must already exist free applications for facebook chat

many return are welcome
Le samedi 19 février 2011 à 18:55 -0500, Brian Waters a écrit :
 2011/2/19 fakessh @ fake...@fakessh.eu:
  anyone have a recipe for it on facebook chat
 
 a recipe for what?
 
  and I request a second thing
  how to install PHP API
 
 you're going to have to be more specific than that.
 
 - BW
 
-- 
gpg --keyserver pgp.mit.edu --recv-key 092164A7
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x092164A7


signature.asc
Description: Ceci est une partie de message	numériquement signée


Re: [PHP] chat facebook

2011-02-19 Thread fakessh @
I just install 
jaxl [1]
http://abhinavsingh.com/blog/2010/08/jaxl-2-0-installation-usage-guide-and-example-apps/
and echobot.php 

and I test a connection with facebook. 
and oddly despite changes in the code echobot.php 
I can not make a connection to the facebook chat
with the correct authentification 

Le dimanche 20 février 2011 à 02:11 +0100, fakessh @ a écrit :
 I'm looking script already written to facebook chat.
 I think it must already exist free applications for facebook chat
 
 many return are welcome
 Le samedi 19 février 2011 à 18:55 -0500, Brian Waters a écrit :
  2011/2/19 fakessh @ fake...@fakessh.eu:
   anyone have a recipe for it on facebook chat
  
  a recipe for what?
  
   and I request a second thing
   how to install PHP API
  
  you're going to have to be more specific than that.
  
  - BW
  
-- 
gpg --keyserver pgp.mit.edu --recv-key 092164A7
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x092164A7


signature.asc
Description: Ceci est une partie de message	numériquement signée