Friday, July 20, 2012

How to patch apache


Apache setup

1, download apche source from apache.org

2. tar xvfz httpd-2.0.64.tar.gz

3, cd httpd-2.0.64

4. now copy config.nice from   /apps/oracle/product/apache-2.0/build/config.nice to httpd-2.0.64
   to enable SSL , please add ssl to the enable-modele i.e --enable-modules=rewrite proxy proxy_http maintainer-mode so deflate ssl
   ./config.nice
   make
   make install
 
5. shutdown and restart apache server
/apps/oracle/ stopproduct/apache-2.0/bin/apachectl stop
       /apps/oracle / stopproduct/apache-2.0/bin/apachectl start

Wednesday, July 11, 2012

How to Convert ldap timestamp to AD timestamp ( pwdLastSet etc..)

My time , you may find yourself in situation where you need to run query to find how may user have changed their password before or after specific time i.e. AD and AD LDS uses pwdLastSet field
(ldap timestamp +11644473600) *  10000000  = AD timestamp . Same way divided by  10000000 and then subtract   11644473600 .

To get the Epoh timestamp  , use this http://www.onlineconversion.com/unix_time.htm