Re: Plugin passwd-change not work

Ted Hatfield <[email protected]> Wed, 6 Dec 2017 13:20:06 -0600 (CST)
Newsgroups gmane.mail.squirrelmail.plugins
Message-ID <[email protected]>
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--===============1700610930844449726==
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8BIT
Content-ID: <[email protected]>

On Wed, 6 Dec 2017, Rommel Rodriguez Toirac wrote:

> 
> El dic. 5, 2017 6:15 PM, Ted Hatfield <[email protected]> escribi?:
>
>       On Tue, 5 Dec 2017, Rommel Rodriguez Toirac wrote:
>
>       >  Hello;
>       > I have problem with this plugin, it do not change the password.
>       > First when I run it from the command line I found a possible error and I make a little workaround. The mistake was this:
>       >
>       > [root@gtmem plugins]# ../plugins/change_passwd/chpasswd 'rommel' 'rty.fgh6' 'qaz*wsx5' 2>&1
>       > -bash: ../plugins/change_passwd/chpasswd: /lib/ld-linux.so.2: bad ELF interpreter: No existe el fichero o el directorio
>       >
>       > The PC have a 64 bit filesystem, so the path /lib/ld-linux.so.2 do not exist, to solve this problem I make a symbolic
>       link bettwen
>       > /lib64/ld-linux.so.2 and /lib but the error now is different, now is (Accesing to a shared library that is corrupt):
>       >
>       >
>       > [root@gtmem plugins]# ../plugins/change_passwd/chpasswd 'rommel' 'rty.fgh6' 'qaz*wsx5' 2>&1
>       > -bash: ../plugins/change_passwd/chpasswd: Accediendo a una biblioteca compartida que est? corrompida
>       >
>       > Could you please help me to find a solution? Thank a lot.
>       >
>       > This is some of datas that you asking for:
>       >
>       > [root@gtmem change_passwd]# cat version
>       > Change Passwd
>       > 4.0
>       >
>       > [root@gtmem plugins]# uname --all
>       > Linux gtmem.gtm.onat.gob.cu 4.4.83-1-pve #1 SMP PVE 4.4.83-96 (Tue, 19 Sep 2017 10:30:12 +0200) x86_64 x86_64 x86_64
>       GNU/Linux
>       >
>       > [root@gtmem plugins]# cat /etc/centos-release
>       > CentOS Linux release 7.4.1708 (Core) 
>       >
>       > [root@gtmem change_passwd]# httpd -v
>       > Server version: Apache/2.4.6 (CentOS)
>       > Server built:   Aug 23 2017 15:47:21
>       >
>       > [root@gtmem plugins]# egrep "^[Uu][Ss][Ee][Rr]" /etc/httpd/conf/httpd.conf | sed 's/^[^ ][^ ]* \([^ ][^ ]*\).*/\1/;q'
>       > apache
>       >
>       > [root@gtmem plugins]# egrep "^[Gg][Rr][Oo][Uu][Pp]" /etc/httpd/conf/httpd.conf | sed 's/^[^ ][^ ]* \([^ ][^
>       ]*\).*/\1/;q'
>       > apache
>       >
>       > [root@gtmem plugins]# php --version
>       > PHP 5.4.16 (cli) (built: Nov  6 2016 00:29:02) 
>       > Copyright (c) 1997-2013 The PHP Group
>       > Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
>       >  
>       >  php is configured with the stantard configuration, except for the change that squirrelmail sugest: 
>       > short_open_tag = On
>       >
>       > [root@gtmem /]# cd /usr/share/squirrelmail/plugins/change_passwd
>       > [root@gtmem change_passwd]# ls -alF
>       > total 116
>       > drwxr-xr-x  3 root root    4096 nov 13 15:08 ./
>       > drwxr-xr-x 21 root root    4096 nov 27 12:04 ../
>       > -rwsr-x---  1 root apache 17917 abr 25  2004 chpasswd*
>       > -rw-r--r--  1 root root    7094 abr 25  2004 chpasswd.c
>       > -rw-r--r--  1 root root    1528 nov 13 15:08 config.php
>       > -rw-r--r--  1 root root    1528 abr 23  2004 config.php.sample
>       > -rw-r--r--  1 root root   15802 abr 22  2004 COPYING
>       > -rw-r--r--  1 root root     610 abr 26  2004 exec_test.php
>       > -rw-r--r--  1 root root    1285 abr 25  2004 functions.php
>       > -rwxr--r--  1 root root     114 abr 23  2004 getpot*
>       > -rw-r--r--  1 root root     486 abr  9  2003 index.php
>       > -rw-r--r--  1 root root    2120 abr 23  2004 INSTALL
>       > drwxr-xr-x  3 root root    4096 abr 25  2004 locale/
>       > -rw-r--r--  1 root root   10064 abr 26  2004 options.php
>       > -rw-r--r--  1 root root    8771 abr 26  2004 README
>       > -rw-r--r--  1 root root     788 abr 22  2004 setup.php
>       >
>       >
>       >
>       > [root@gtmem plugins]# cat change_passwd/config.php
>       > <?php 
>       >
>       > global $confirmPass, $oldPass, $seeOutput, $pathToChpasswd, 
>       >        $pathToPw, $debug, $minimumPasswordLength;
>       >
>       > $minimumPasswordLength = 8;
>       >
>       > $confirmNewPass = 1;
>       >
>       > $confirmOldPass = 1;
>       >
>       > $overridePathToChpasswd = '';
>       >
>       > $pathToPw = '';
>       >
>       > $seeOutput = 1;
>       >
>       > $debug = 1;
>       >
>       > ?>
>       >
>       >
>       > Rommel Rodriguez Toirac
>       > [email protected]
>       >
>       >
>
>       Rommel,
>
>       This doesn't answer your question directly but I've had good luck with the
>       change password plugin here.
>
>       http://www.squirrelmail.org/plugin_view.php?id=21
>
>       It requires a poppassd daemon running on the server but it's been very
>       stable for us.
> 
>
>       Ted Hatfield
> 
> 
>  Hello Ted;
> thanks for answer me.
>  Your users and password are local (/etc/passwd and /etc/shadow)?
>  If no solutions with password change plugin that I asking for, I will try with these.
>  poppassd server, where I can find it for CentOS 7?
> 
> 
> Rommel Rodriguez Toirac
> [email protected]
> 
> 
> 
> 
>

Rommel,

I don't use centos 7, I use freebsd, but I think this will work.

https://github.com/kravietz/poppassd-ceti

A how-to is here.

https://www.rootlinks.net/2017/03/21/install-poppassd-on-centos-7/

If you can get poppassd to work manually you should be able to get the 
plugin to work.


Ted Hatfield
--===============1700610930844449726==
Content-Type: text/plain; charset=us-ascii
Content-ID: <[email protected]>
Content-Description: 
Content-Disposition: inline

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
--===============1700610930844449726==
Content-Type: text/plain; charset=us-ascii
Content-ID: <[email protected]>
Content-Description: 
Content-Disposition: inline

-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [email protected]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins
--===============1700610930844449726==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
--===============1700610930844449726==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [email protected]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins
--===============1700610930844449726==--