From: Rommel R. T. <rom...@na...> - 2017-12-08 23:09:40
|
<div dir='auto'><br><div class="gmail_extra" dir="auto"><br><div class="gmail_quote">El dic. 6, 2017 2:20 PM, Ted Hatfield <te...@io...> escribió:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">On Wed, 6 Dec 2017, Rommel Rodriguez Toirac wrote: <br> <br> > <br> > El dic. 5, 2017 6:15 PM, Ted Hatfield <te...@io...> escribi?: <br> > <br> > On Tue, 5 Dec 2017, Rommel Rodriguez Toirac wrote: <br> > <br> > > Hello; <br> > > I have problem with this plugin, it do not change the password. <br> > > First when I run it from the command line I found a possible error and I make a little workaround. The mistake was this: <br> > > <br> > > [root@gtmem plugins]# ../plugins/change_passwd/chpasswd 'rommel' 'rty.fgh6' 'qaz*wsx5' 2>&1 <br> > > -bash: ../plugins/change_passwd/chpasswd: /lib/ld-linux.so.2: bad ELF interpreter: No existe el fichero o el directorio <br> > > <br> > > 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 <br> > link bettwen <br> > > /lib64/ld-linux.so.2 and /lib but the error now is different, now is (Accesing to a shared library that is corrupt): <br> > > <br> > > <br> > > [root@gtmem plugins]# ../plugins/change_passwd/chpasswd 'rommel' 'rty.fgh6' 'qaz*wsx5' 2>&1 <br> > > -bash: ../plugins/change_passwd/chpasswd: Accediendo a una biblioteca compartida que est? corrompida <br> > > <br> > > Could you please help me to find a solution? Thank a lot. <br> > > <br> > > This is some of datas that you asking for: <br> > > <br> > > [root@gtmem change_passwd]# cat version <br> > > Change Passwd <br> > > 4.0 <br> > > <br> > > [root@gtmem plugins]# uname --all <br> > > 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 <br> > GNU/Linux <br> > > <br> > > [root@gtmem plugins]# cat /etc/centos-release <br> > > CentOS Linux release 7.4.1708 (Core) <br> > > <br> > > [root@gtmem change_passwd]# httpd -v <br> > > Server version: Apache/2.4.6 (CentOS) <br> > > Server built: Aug 23 2017 15:47:21 <br> > > <br> > > [root@gtmem plugins]# egrep "^[Uu][Ss][Ee][Rr]" /etc/httpd/conf/httpd.conf | sed 's/^[^ ][^ ]* \([^ ][^ ]*\).*/\1/;q' <br> > > apache <br> > > <br> > > [root@gtmem plugins]# egrep "^[Gg][Rr][Oo][Uu][Pp]" /etc/httpd/conf/httpd.conf | sed 's/^[^ ][^ ]* \([^ ][^ <br> > ]*\).*/\1/;q' <br> > > apache <br> > > <br> > > [root@gtmem plugins]# php --version <br> > > PHP 5.4.16 (cli) (built: Nov 6 2016 00:29:02) <br> > > Copyright (c) 1997-2013 The PHP Group <br> > > Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies <br> > > <br> > > php is configured with the stantard configuration, except for the change that squirrelmail sugest: <br> > > short_open_tag = On <br> > > <br> > > [root@gtmem /]# cd /usr/share/squirrelmail/plugins/change_passwd <br> > > [root@gtmem change_passwd]# ls -alF <br> > > total 116 <br> > > drwxr-xr-x 3 root root 4096 nov 13 15:08 ./ <br> > > drwxr-xr-x 21 root root 4096 nov 27 12:04 ../ <br> > > -rwsr-x--- 1 root apache 17917 abr 25 2004 chpasswd* <br> > > -rw-r--r-- 1 root root 7094 abr 25 2004 chpasswd.c <br> > > -rw-r--r-- 1 root root 1528 nov 13 15:08 config.php <br> > > -rw-r--r-- 1 root root 1528 abr 23 2004 config.php.sample <br> > > -rw-r--r-- 1 root root 15802 abr 22 2004 COPYING <br> > > -rw-r--r-- 1 root root 610 abr 26 2004 exec_test.php <br> > > -rw-r--r-- 1 root root 1285 abr 25 2004 functions.php <br> > > -rwxr--r-- 1 root root 114 abr 23 2004 getpot* <br> > > -rw-r--r-- 1 root root 486 abr 9 2003 index.php <br> > > -rw-r--r-- 1 root root 2120 abr 23 2004 INSTALL <br> > > drwxr-xr-x 3 root root 4096 abr 25 2004 locale/ <br> > > -rw-r--r-- 1 root root 10064 abr 26 2004 options.php <br> > > -rw-r--r-- 1 root root 8771 abr 26 2004 README <br> > > -rw-r--r-- 1 root root 788 abr 22 2004 setup.php <br> > > <br> > > <br> > > <br> > > [root@gtmem plugins]# cat change_passwd/config.php <br> > > <?php <br> > > <br> > > global $confirmPass, $oldPass, $seeOutput, $pathToChpasswd, <br> > > $pathToPw, $debug, $minimumPasswordLength; <br> > > <br> > > $minimumPasswordLength = 8; <br> > > <br> > > $confirmNewPass = 1; <br> > > <br> > > $confirmOldPass = 1; <br> > > <br> > > $overridePathToChpasswd = ''; <br> > > <br> > > $pathToPw = ''; <br> > > <br> > > $seeOutput = 1; <br> > > <br> > > $debug = 1; <br> > > <br> > > ?> <br> > > <br> > > <br> > > Rommel Rodriguez Toirac <br> > > rom...@na... <br> > > <br> > > <br> > <br> > Rommel, <br> > <br> > This doesn't answer your question directly but I've had good luck with the <br> > change password plugin here. <br> > <br> > http://www.squirrelmail.org/plugin_view.php?id=21 <br> > <br> > It requires a poppassd daemon running on the server but it's been very <br> > stable for us. <br> > <br> > <br> > Ted Hatfield <br> > <br> > <br> > Hello Ted; <br> > thanks for answer me. <br> > Your users and password are local (/etc/passwd and /etc/shadow)? <br> > If no solutions with password change plugin that I asking for, I will try with these. <br> > poppassd server, where I can find it for CentOS 7? <br> > <br> > <br> > Rommel Rodriguez Toirac <br> > rom...@na... <br> > <br> > <br> > <br> > <br> > <br> <br> Rommel, <br> <br> I don't use centos 7, I use freebsd, but I think this will work. <br> <br> https://github.com/kravietz/poppassd-ceti <br> <br> A how-to is here. <br> <br> https://www.rootlinks.net/2017/03/21/install-poppassd-on-centos-7/ <br> <br> If you can get poppassd to work manually you should be able to get the <br> plugin to work. <br> <br> <br> Ted Hatfield<br> ------------------------------------------------------<br></p></blockquote></div></div><div dir="auto"><br></div><div dir="auto">My propouse is to use the passwd-change plugin. I still hope someone read the messages and sugest me how to fix my problem.</div><div dir="auto"> Next week I test with the plugin that use <span style="font-family: sans-serif;">poppassd daemon.</span></div><div dir="auto"><span style="font-family: sans-serif;"> Thank.</span></div><div class="gmail_extra" dir="auto"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr"></p></blockquote></div></div></div> |