From: Rommel R. T. <rom...@na...> - 2017-12-19 15:34:35
|
<div dir='auto'><div data-smartmail="gmail_signature" dir="auto"><br></div><div class="gmail_extra" dir="auto"><div class="gmail_quote">El dic. 18, 2017 11:16 AM, Rommel Rodriguez Toirac <rom...@na...> escribió:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><br><div dir="auto"><br><div class="elided-text">El dic. 10, 2017 12:40 PM, Ted Hatfield <te...@io...> escribió:<br><blockquote style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr"> <br> <br> On Fri, 8 Dec 2017, Rommel Rodriguez Toirac wrote: <br> <br> > <br> > <br> > El dic. 6, 2017 2:20 PM, Ted Hatfield <te...@io...> escribi?: <br> > <br> > 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. <br> > 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 <br> > 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 <br> > 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 <br> > 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) <br> > 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/^[^ ][^ ]* \([^ <br> > ][^ ]*\).*/\1/;q' <br> > > > apache <br> > > > <br> > > > [root@gtmem plugins]# egrep "^[Gg][Rr][Oo][Uu][Pp]" /etc/httpd/conf/httpd.conf | sed 's/^[^ ][^ ]* <br> > \([^ ][^ <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> > <br> > <br> > My propouse is to use the passwd-change plugin. I still hope someone read the messages and sugest me how to fix my <br> > problem. <br> > Next week I test with the plugin that use poppassd daemon. <br> > Thank. <br> > <br> > <br> > <br> <br> Rommel, <br> <br> It appears that you will need to compile the chpasswd.c source code <br> included with the plugin. If the date on the webpage is accurate the <br> chpasswd executable included with the plugin was last compiled in Apr 23, <br> 2004. <br> <br> The error message you are getting <br> <br> ./chpasswd: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory <br> <br> tells us that the software was compiled on a machine that doesn't match <br> yours for library compability. <br> <br> The problem of course is that centos 7 doesn't include gcc by default. <br> You will need to install the build/development tools for centos 7 before <br> you can attempt to compile the chpasswd.c program. <br> <br> A quick google search came up with this page. <br> <br> https://www.digitalocean.com/community/tutorials/how-to-compile-and-install-packages-from-source-using-make-on-a-vps <br> <br> Or <br> <br> https://www.cyberciti.biz/faq/centos-rhel-7-redhat-linux-install-gcc-compiler-development-tools/ <br> <br> I hope this helps. <br> <br> If nothing else you can ask the maintainer/developer Paul Lesniewski to <br> see if he can include a newer compiled binary in the package specifically <br> for centos 7. <br> <br> Ted Hatfield<br> -----------------------------------------------------------------------------<br></p></blockquote></div></div><div dir="auto"><br></div><div dir="auto"> Thank for answer me Ted. I will study how to compile the chpasswd.c and let you know how it was.</div><div dir="auto"> I wrote already to <span style="font-family:sans-serif">Paul Lesniewski and he let me know that the best help is with the mailing list. Also tell me that there is a new version of the plugin but not released yet.</span></div><div dir="auto"><br style="font-family:sans-serif;font-size:13.696px"><font face="sans-serif"><span style="font-size:13.696px">Rommel Rodriguez Toirac</span></font></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><div class="elided-text"><blockquote style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr"></p></blockquote></div></div></div></blockquote></div> Hello;</div><div class="gmail_extra" dir="auto">in the file chpasswd.c are some example of how to compile it.</div><div class="gmail_extra" dir="auto">I use the two examples an get a file generate of name chpasswd.</div><div class="gmail_extra" dir="auto"> When make the test it do not work correctly at all. Allways said: "Current password is incorrect"</div><div class="gmail_extra" dir="auto">and do not chage the password.</div><div class="gmail_extra" dir="auto"> But, the error of the "Access to a shared library corrupted" is not showed, it detect when the user is incorrect, when the new password do not match in the 'Confirm' step.</div><div class="gmail_extra" dir="auto"> So, now I have another problem, the plugin always say "Current password is incorrect"</div><div class="gmail_extra" dir="auto"><br></div><div class="gmail_extra" dir="auto">Rommel Rodriguez Toirac</div><div class="gmail_extra" dir="auto"><br></div></div> |