Creating a Keystore for LDAP SSL

Exporting your Active Directory Certificate
As an Administrative user on your Active Directory server:

  1. Open the Microsoft Management Console by running mmc.exe.
  2. Add the Certificates snap-in for the Computer Account (select the Local Computer).
  3. Locate your certificate in the resulting tree. If you are using a self-signed certificate then this will appear under the Personal folder.
  4. Right click on the certificate, select All Tasks > Export.
  5. Export the certificate (without the private key but will all associated trusted certificates) in Base 64 format.

Creating a Keystore
Once the certificate has been exported you will be able to create a keystore with this certificate that you can use to access your Active Directory server.

  • To do this you will use the keytool (keytool.exe on Windows) utility supplied with your Java runtime with the following command:

keytool -import -alias ldap -file <certificate file> -keystore shdomain.ks

  • Enter a secure password for your keystore. This will create a keystore file called shdomain.ks
Continue Reading

Missing Sharing Tab in Windows 2003

Problem

I wanted  to share a certain folder in windows 2003 server, but when I entered the folder’s location > properties , I didn’t see the Sharing tab. (as shown below)

Resolution

Go to start > run > Services.msc > Start the Server service . (as shown below)

In my case , the Server service was stopped due to lack of certain security patches in that server. In order to solve this problem for good , update the server using Windows Update. In order to solve the problem temporarily, start the Server service.

Continue Reading

For the Kids: Want to start learning to develop Video Games?

My son recently attended the ID Tech Camp at Stanford, he just turned 10, and he LOVED it!  They used Multimedia Fusion Developer to design the self executable cames.  It is a remarkable product, and if you have a child that is interested in this, you may want to look into this product.

Multimedia Fusion Developer

If you are also interested in the great Summer time camps for your kid(s) of all ages go see: ID Tech Camps

Continue Reading

Installing SQL Server 2008 – reboot required check fails

When installing SQL Server 2008 one can run into “‘Reboot required check failed” situation.

After seeing it few times already, I think a solution is worth mentioning.

“Why don’t you just reboot?”, you say… Well, most likely it would not help you, but try it first.
If this would not help, then try the following:

  1. Start regedit.exe
  2. Navigate to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession Manager
  3. Locate PendingFileRenameOperations
  4. Remove any data associated with the value (you may want to export the value for later review)
  5. Reboot and rerun installation, check should pass.

Update. As a respond to some comments about solution above not always work you may consider the following:

  • Make sure that after you reboot entry in the registry does not reappear.
    If it does, remove it again, but do not reboot, just go ahead with installation process and click “ReRun”. Most likely you would be fine now.
  • You may also try and see that other ControlSet001, ControlSet002, etc do not suffer from the same problem (solution mentioned by Mike Hills below).
  • There was mentioning that some installations of Visual Studio 2008 could cause check to fail as well. So if nothing from above helped, uninstall Visual Studio (comes with light version of SQL Server), install SQL Server and then reinstall Visual Studio again.

Lets see why would entry reappear… This may happen if there is a driver or application which supports “recovery” mode or plain virus is around and after reboot it is trying to finish the deployment process again. In any situation try and look closer: what app file belongs to, if there are other solutions to the problem so that original process would finish properly, etc.

Update: Recently I was working on the unrelated setup automation for Visual Studio and stepped on a hidden gem which may work here as well: when running setup from command prompt, Windows Installer accepts a parameter called SkipRules. It worth mention the following “How to: Install SQL Server 2008 from the Command Prompt” first and then look at desired parameter

/SkipRules=VSShellInstalledRule RebootRequiredCheck

We can ignore first rule, since it is VS related, but second is the one you may want to try.

Continue Reading