Hi Murugan, thanks for the log entries. There is a small compatibility issue with PHP < 5.5.
Please replace /usr/share/ldap-account-manager/lib/lamdaemon.inc with the attached file. This should fix it. Best regards Roland On 02.09.2016 06:09, cmurugan wrote: > Hello Roland, > > I have checked the error logs and shared logs below. I have used RPM package > to install LAM 5.5 RC1 in my Centos 7. > > [Thu Sep 01 21:52:43.185928 2016] [:error] [pid 14920] [client > 192.168.1.210:57239] PHP Fatal error: Can't use method return value in > write context in /usr/share/ldap-account-manager/lib/lamdaemon.inc on line > 106 > [Thu Sep 01 21:52:59.077564 2016] [:error] [pid 14921] [client > 192.168.1.210:57247] PHP Fatal error: Can't use method return value in > write context in /usr/share/ldap-account-manager/lib/lamdaemon.inc on line > 106, referer: http://192.168.1.77/lam/ > > Regards, > Murugan Chandrasekar > > -----Original Message----- > From: Roland Gruber [mailto:[email protected]] > Sent: Thursday, September 01, 2016 10:50 PM > To: [email protected] > Subject: Re: [Lam-public] up gradation error: from 5.4 to 5.5 RC1 > > Hi Murugan, > > please check your Apache error log file (e.g. > /var/log/apache/error.log). There should be a more detailed message about > the issue. > > Which package format do you use, DEB/RPM/tar.bz2? > > The error occurs on which page? > > > Best regards > > Roland > > > > On 01.09.2016 17:25, cmurugan wrote: >> Hello all, >> >> >> >> Recently I have upgraded the LAM from 5.4 to 5.5 RC1 but I'm getting >> error like below >> >> >> >> " The 192.168.1.77 page isn't working >> >> >> >> 192.168.1.77 is currently unable to handle this request. >> >> HTTP ERROR 500 " >> >> >> >> I've followed the below link: >> >> https://www.ldap-account-manager.org/static/doc/manual/ch02s02.html >> >> >> >> Please help me on this. >> >> >> >> Regards, >> >> Murugan Chandrasekar >> >> >> >> ---------------------------------------------------------------------- >> -------- >> >> >> >> _______________________________________________ >> Lam-public mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/lam-public >> > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Lam-public mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/lam-public >getMessage() . "," . $server); } $output = $handle->exec("sudo " . $_SESSION['config']->get_scriptPath() . ' ' . escapeshellarg($command)); return array($output); } /** * Connects to the given SSH server. * * @param String $server server name (e.g. localhost or localhost,1234) * @return object handle */ function lamConnectSSH($server) { // add phpseclib to include path set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) . '/3rdParty/phpseclib'); include_once('Net/SSH2.php'); include_once('Crypt/RSA.php'); $serverNameParts = explode(",", $server); $handle = false; if (sizeof($serverNameParts) > 1) { $handle = @new Net_SSH2($serverNameParts[0], $serverNameParts[1]); } else { $handle = @new Net_SSH2($server); } if (!$handle) { throw new Exception(_("Unable to connect to remote server!")); } lamLoginSSH($handle); return $handle; } /** * Performs a login to the provided SSH handle. * * @param handle $handle SSH handle * @throws Exception login failed */ function lamLoginSSH($handle) { $username = $_SESSION['config']->getScriptUserName(); $credentials = $_SESSION['ldap']->decrypt_login(); if (empty($username)) { // get user name from current LAM user $sr = @ldap_read($_SESSION['ldap']->server(), $credentials[0], "objectClass=posixAccount", array('uid'), 0, 0, 0, LDAP_DEREF_NEVER); if ($sr) { $entry = @ldap_get_entries($_SESSION['ldap']->server(), $sr); $username = $entry[0]['uid'][0]; } if (empty($username)) { throw new Exception(sprintf(_("Your LAM admin user (%s) must be a valid Unix account to work with lamdaemon!"), $credentials[0])); } } $password = $credentials[1]; $keyPath = $_SESSION['config']->getScriptSSHKey(); if (!empty($keyPath)) { // use key authentication if (!file_exists($keyPath) || !is_readable($keyPath)) { throw new Exception(sprintf(_("Unable to read %s."), htmlspecialchars($keyPath))); } $key = file_get_contents($keyPath); $rsa = new Crypt_RSA(); $keyPassword = $_SESSION['config']->getScriptSSHKeyPassword(); if (!empty($keyPassword)) { $rsa->setPassword($keyPassword); } if (!$rsa->loadKey($key)) { throw new Exception(sprintf(_("Unable to load key %s."), htmlspecialchars($keyPath))); } $password = $rsa; } $login = @$handle->login($username, $password); if (!$login) { throw new Exception(_("Unable to login to remote server!")); } } ?>
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------
_______________________________________________ Lam-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lam-public
