Saturday, 27 May 2006

Playing with Exchange 12

I had my first look at Exchange 12 yesterday and had huge problems getting it to install. You have to have MMC 3.0 installed but even though it was installed, the install claimed it wasn't.

I found the answer on the Exchange EHLO blog.

Create this registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MMC30Core

Blocking hackers access to SSH

Since putting a Suse 10 box on the internet and allowing SSH through the firewall we have been getting attempts like this on a regular basis:

May 27 09:14:20 nprobe sshd[689]: Did not receive identification string from 140.136.158.182
May 27 09:20:40 nprobe sshd[816]: Invalid user aaa from 140.136.158.182
May 27 09:20:43 nprobe sshd[818]: Invalid user aaa from 140.136.158.182
May 27 09:20:46 nprobe sshd[820]: Invalid user aaa from 140.136.158.182
May 27 09:20:49 nprobe sshd[822]: Invalid user aaaudio from 140.136.158.182
May 27 09:20:52 nprobe sshd[824]: Invalid user aaaudio from 140.136.158.182
May 27 09:20:55 nprobe sshd[826]: Invalid user aaaudio from 140.136.158.182

Found a cool script on the Novell cool solutions web site that scans the system logfile and then blocks access from the systems that have been trying to gain access with invalid user names.

I followed the reccomendation to modify the script for Suse 10 and this worked for me:

#!/bin/bash
LAST_IP=0.0.0.0
COUNT=1

# Set MAXCOUNT to the maximum failures allowed before blacklisting
MAXCOUNT=5

#
# The three lines below put the leading lines in /etc/hosts.allow
# Note: This script overwrites the entire /etc/hosts.allow file.
#

echo '
# /etc/hosts.deny
# See "man tcpd" and "man 5 hosts_access" as well as /etc/hosts.allow
# for a detailed description.
http-rman : ALL EXCEPT LOCAL' > /etc/hosts.deny

#
# Scan the /var/log/messages file for failed login attempts via ssh.
# Parse out the IP address, and count the failure occurances from that IP
# If the IP fails more than 5 times - deny further access
#

for IP in `/bin/grep sshd /var/log/messages|/bin/grep "Invalid user"|/bin/sed 's/^.*from //'` 0.0.0.0; do
if [ ${LAST_IP} == ${IP} ]; then
let COUNT=${COUNT}+1
else
if [ ${COUNT} -ge ${MAXCOUNT} ]; then
echo "ALL: ${LAST_IP}/32" >> /etc/hosts.deny
fi
LAST_IP=${IP}
COUNT=1
fi
done

Thursday, 13 April 2006

PC line PCL-RP100 Rumble Game Pad

I always like to install the latest drivers but when buying OEM hardware it proves difficult to track down the drivers.

For this particular device it proved to be a company called Ruling Technologies.
I am also informed by Glen that:
Is the manufacturer, drivers are by Padix (same company)
Work fine with XP but not with Vista
Enjoy :-)

Blog Offline

Ooops. Blog has been offline for a couple of days because I had a server issue. Seems one of my recurring SQL jobs didn't finish within 24 hours and got it's knickers in a right old twist. Disk utilisation was through the roof and I stopped IIS services as a troubleshooting step. Problem was, I forgot to restart them!

Strange thing with the SQL job was I restared SQL server and the job (SMTP Log Trim) ran manually fine..... Hmmmm....

Wednesday, 29 March 2006

Updating the Java plugin in Firefox

 I was trying to use Logmein from my Suse 10 Linux laptop but the Java viewer kept crashing. Despite installing JVM 1.5 the plugin was still showing v1.4.2. I eventually found the plugin directory was /usr/lib/firefox/plugins and had to create a link from here to replace the Java v1.4.2 one.

The command I used was:
ln -s /usr/java/jre1.5.0_06/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox/plugins/libjavaplugin_oji.so

The Mozilla plugin directory is /opt/mozilla/lib/plugins so adjust accordingly.

The Java verifier now shows both browsers using JRE 1.5.0_06 and Logmein works!

Thursday, 16 March 2006

OES and Imanager not working

Playing with OES and could not get iManager working. Turns out you have to disable IPv6.

Novell TID 10098152 tells you how:

The following steps should be followed to disable IPV6 on SuSE Linux Enterprise Server 9:
1- Modify /etc/modprobe.conf.local by adding the following:
#
# please add local extensions to this file
#
install ipv6 /bin/false
2- reboot

*** In some circumstances, it is also necessary to modify the /etc/modprobe.conf and change the following:

alias net-pf-10 ipv6
to
alias net-pf-10 off

Sunday, 12 February 2006

ClustrMaps Beta

Just added ClustrMaps Beta to the blog - Just to get an idea where hits are coming from.

Thanks to Dugie for the idea.

Monday, 9 January 2006

How to remove ADC-GLOBAL-NAMES attribute

Had a problem with a mixed Exchange 5.5/2003 system where some Exchange 5.5 directory entries were refusing to synch into the Active Directory. Turns out the 5.5 directory entries were pointing to non-existent AD entries. I had to remove the ADC-GLOBAL-NAMES attributes by running Exchange 5.5 Administrator in raw mode (c:\exchsrvr\bin\admin.exe /r). Having done this, a full sync of the ADC got everything working again.

More details in Micrsoft support article 319474.

Unable to install Microsoft .Net 2.0 Framework

I've had a Windows update refuse to install on a couple of machines which are used for software testing. Turns out these machines had Microsoft .Net Framework 2.0 beta1 and Visual J# Redistributable beta1 installed.

Machine #1 was easy, I just went to add/remove programs and removed the beta stuff but machine #2 did not show the beta software to remove.

I found a Microsoft KB article Q320112 but I am always squeamish about manually deleting stuff from the registry so I did it a slightly different way.

Firstly I downloaded beta1 of .Net 2.0 and J# packages from here and here.

Then I used the installer cache to uninstall J#
  • Start > Run > Installer
  • Right Click Date Modified
  • Select Comments
  • Click Comments
  • Scroll down to find Visual J# Beta
  • Right click and uninstall
Then I installed it from the downloaded file

Then I uninstalled it from add/remove programs.

Repeat for Microsoft .NET Framework 2.0 beta1.

Finally I manually installed Microsoft .Net Framework 2.0 from here.

CS Gallery Upload Manager Added

I've added the rather awesome CS Gallery Upload Manager to this CS 1.1 based site. It allows bulk photo uploads from Windows into CS.

You can find CHiwi's Blog here.

CS 1.1 Gallery Service Extension is here.

CS Gallery Upload Manager (Works with CS 2.0 and 1.1 with above extenstion) can be found here.

Monday, 18 July 2005

Windows Server 2003 Access-based Enumeration

Ever wanted to hide the files and folders that a user did not have access too (just like them old NetWare days?), well now you can with Windows Server 2003 Access-based Enumeration.

Thanks to Brian McCann for this one.

Download the Admin tool.
Download the readme here.

Tuesday, 5 July 2005

Citrix ICA Web Client

This client needs either local administrator or power users rights to run correctly on the workstation. To allow normal users to run it, edit the permissions on this registry key:
HKLM\Software\Microsoft\MSLicensing - Users - Full control

You could this either manually or through group policy.

Monday, 4 July 2005

Installing Windows Sharepoint Services v2 to use SQL Server

You need to do two things:

1. Extract files to temp directory:
stsv2 /c /t:c:\temp\wssv2

2. Install to use external SQL:
c:\temp\wssv2\setupsts remotesql=true

Sunday, 3 July 2005

Upgraded to CS v1.1

I've upgraded the Server to CS v1.1.

It wasn't without problems - The main one was that the tables aspnet_Membership, aspnet_Users and cs_Userprofile did not agree with each other before the upgrade.

Thanks to Derek Larkin for the answer! He also has a blog here.

Saturday, 2 July 2005

MOM 2005 error SQL Server 2000 SP3 or later not detected

Trying to install MOM 2005 on a test 2003 Server only to receive the error message "SQL Server 2000 SP3 or later not detected".

Because I have SQL 2000 SP4 installed as an upgrade of an earlier MSDE incidence (and it seems MOM 2005 install does not detect SQL 2000 SP4 correctly) I had to temporarily change the following reg key:

HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\MSDE\MSSQLServer\CurrentVersion"
CSDVersion REG_SZ change from "8.00.2039" to "8.00.761"

Do not be confused by the MSDE term - This was what the incidence was called before being upgraded to SQL Server 2000.

Don't forget to change it back!

Wednesday, 27 April 2005

Building an MS Cluster with VMWare Workstation 4.5.2

I used to be able to build clusters in VMWare Workstation 4, I'm sure, but when I recently tried it didn't seem to work any more. I found someone (sorry - lost the URL) on the VMWare forums who claimed to have created one on VMWare workstation 5. I tried thier suggestions on VMWare 4.5.2 and with a few changes it worked for me. I created the quorum (100MB) and shared disk (2GB) as fixed size SCSI devices.

Here are the important lines from my node_1.vmx file:

diskLib.dataCacheMaxSize = "0"
diskLib.dataCacheMaxReadAheadSize = "0"
diskLib.dataCacheMinReadAheadSize = "0"
diskLib.dataCachePageSize = "4096"
diskLib.maxUnsyncedWrites = "0"

disk.locking=FALSE

scsi0.present = "TRUE"
scsi0.virtualDev = "lsilogic"
scsi0:0.present = "TRUE"
scsi0:0.fileName = "Disk1.vmdk"
scsi1.present = "TRUE"
scsi1.virtualDev = "lsilogic"
scsi1.sharedBus = "virtual"

scsi1:1.present = "TRUE"
scsi1:1.fileName = "..\shared\quorum.vmdk"
scsi1:1.redo = ""
scsi1:1.mode = "independent-persistent"
scsi1:1.deviceType = "plainDisk"

scsi2.present = "TRUE"
scsi2.virtualDev = "lsilogic"
scsi2.sharedBus = "virtual"
scsi2:1.present = "TRUE"
scsi2:1.fileName = "..\shared\shared.vmdk"
scsi2:1.redo = ""
scsi2:1.mode = "independent-persistent"
scsi2:1.deviceType = "plainDisk"

Wednesday, 6 April 2005

Remove non-existant DFS root

I had to rebuild a DFS root but the 2000/2003 Servers and AD insisted the old one was there though it wasn't! I eventually found this KB article at Microsoft to fix it:
Article ID: 224384

Quickly reset users home directory permissions

This is not my work but that of Shawn Hopkins that I found on Google Groups.

I faced a situation where my users home and profile directories were ok but the users had simply lost their permissions (importing foreign disk, long story....). Shawn's scripts were written for NT but they worked fine with Server 2003. I did the following:

Gave Administrators full access to d:\home and d:\profiles.

Ran this:
net user /domain >> users.txt

Then ran this script:
for /f "eol=; tokens=1,2*" %%i in (users.txt) do cacls d:\home\%%i /T /E /G %%i:C
for /f "eol=; tokens=1,2*" %%j in (users.txt) do cacls c:\home\%%j /T /E /G %%j:C
for /f "eol=; tokens=1,2*" %%k in (users.txt) do cacls c:\home\%%k /T /E /G %%k:C

Then this script:
for /f "eol=; tokens=1,2*" %%i in (users.txt) do cacls d:\profiles\%%i /T /E /G %%i:C
for /f "eol=; tokens=1,2*" %%j in (users.txt) do cacls d:\profiles\%%j /T /E /G %%j:C
for /f "eol=; tokens=1,2*" %%k in (users.txt) do cacls d:\profiles%%k /T /E /G %%k:C

Monday, 21 March 2005

One of those D'OH! moments

Sometime last night (or more accurately in the early hours of the morning) my Server 2003 box decided it wasn't going to have a default gateway anymore. The problem first made itself known when we started getting "Mail Delayed" messages back from Exchange. On investigating the problem using Remote Desktop I found that even though a default gateway was set in the LAN properties, "ipconfig /all" and "route print" showed that the box wasn't honouring it. I then made the brilliant decision to disable and re-enable the LAN card.

D'OH! Remember, I was using Remote Desktop to do this! Luckily I had an EMS connection to the Server so I was able to re-enable the connection from there. I'm lucky that 2003 supports this, unlike 2000, else I would have to crawl around attaching cables to my headless server.
(Image lost due to Blog move)