rewrite.php

June 6th, 2012 by Idris

#!/usr/bin/php
<?php

$con=mysql_connect(”localhost”,”coba”,”cobaa”);
$db=mysql_selectdb(”coba”);
$temp = array();
while ( $input = fgets(STDIN) ) {
$status=false;
$temp = split(’ ‘, $input);
$ips = split(’/',$temp[1]);
$ip = $ips[0];
$uri=$temp[0];
$qq=mysql_query(”SELECT ip FROM logon where status=’1′ and ip=’$ip’”);
$dt=mysql_num_rows($qq);
if($dt >= 1)
$status=true;

$host=parse_url($uri, PHP_URL_HOST);
if($host==”202.9.85.3″)
$status=true;

if (strlen(strstr($host,”eepis-its.edu”))>0)
$status=true;

if ($status==true)
{
$output = $temp[0].”\n”;
}
else {
$output = “302:http://galatea.eepis-its.edu/squid/?j=”.base64_encode($ip).”&i=”.base64_encode($uri).”\n”;
}
echo $output;
}

Protected: file codeigniter

May 29th, 2012 by Idris

This post is password protected. To view it please enter your password below:


  • Enter your password to view comments
  • Posted in Info umum

import cert ke JRE supaya TRUSTED

May 20th, 2012 by Idris

jadikan DER dulu

openssl x509 -in /etc/digicert/eepis-its.edu.pem -out /tmp/eepis-its.edu.der -outform DER

nah sekarang import

keytool -import -keystore $JAVA_HOME/jre/lib/security/cacerts -file tmp/incommon-root-cert.der -alias incommon

setelah itu cek apakah sudah masuk

keytool -v -list -keystore $JAVA_HOME/jre/lib/security/cacerts

biasanya password (kalau di tanyakan): changeit

LDAPS pada zimbra

May 20th, 2012 by Idris

biasanya zimbra pada saat install lupa ldap nya tidak di set ldaps kalau lupa silahkan di set seperti berikut ini:
su - zimbra
zmlocalconfig -e ldap_master_url=ldaps://mymaster.somewhere.com:636
zmlocalconfig -e ldap_url=ldaps://myreplica.somewhere.com:636
zmlocalconfig -e ldap_starttls_supported=0
zmlocalconfig -e ldap_port=636
zmcontrol stop
zmcontrol start

SSL Tomcat pakai Digicert

May 19th, 2012 by Idris

Walah settingnya ternyata mbulet.com

<Connector port=”8443″ maxHttpHeaderSize=”8192″
maxThreads=”150″ minSpareThreads=”25″
enableLookups=”false” disableUploadTimeout=”true”
acceptCount=”100″ scheme=”https” secure=”true”
SSLEnabled=”true”
SSLCertificateFile=”/etc/digicert/eepis-its.edu.pem”
SSLCertificateKeyFile=”/etc/digicert/eepis-its.edu.key”
SSLCertificateChainFile=”/etc/digicert/eepis-its.edu-ca.crt” />

« Previous Entries Next Entries »