Archive for the ‘software’ Category

Adding and troubleshooting KMS keys

Thursday, October 29th, 2015

On the KMS host:

Use Volume Activation Tools to add a new host key or:

  1. cscript.exe c:\windows\system32\slmgr.vbs -ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

To see what keys have been deployed and what the status is:

  1. cscript.exe c:\windows\system32\slmgr.vbs /dlv all

To activate (requires http/s access from the KMS host):

  1. cscript.exe c:\windows\system32\slmgr.vbs /ato activation.ID

where Activation ID is a string you get from running ‘cscript slmgr.vbs /dlv all’.

On the KMS client:

To manually force the activation of Windows OS (requires 1688/tcp access to the KMS host):

  1. cscript.exe c:\windows\system32\slmgr.vbs /ato

To manually force the activation of Windows Office (requires 1688/tcp access to the KMS host):

  1. cscript.exe c:\"program files (x86)"\"microsoft office"\office14\ospp.vbs /act

SharePoint 2010 with OpenLDAP authentication

Wednesday, July 18th, 2012

A relevant piece from web.config that worked for me allowing SharePoint 2010 authenticate against OpenLDAP. OpenLDAP is powered by Ubuntu 10.04.2 LTS (lucid) and OpenLDAP 2.4.21 (installed from packages).

  1. <membership>
  2.   <providers>
  3.   <add name="membership"
  4.     type="Microsoft.Office.Server.Security.LDAPMembershipProvider,Microsoft.Office.Server, Version=, Culture=neutral,PublicKeyToken=71e9bce111e9429c"
  5.     server=""
  6.     port="636"
  7.     useSSL="true"
  8.     connectionUsername="cn=agentname,ou=Agents,dc=domain,dc=org"
  9.     connectionPassword= "xxxxxxxxx"
  10.     useDNAttribute="false"
  11.     userNameAttribute="uid"
  12.     userContainer="ou=People,dc=domain,dc=org"
  13.     userObjectClass="person"
  14.     userFilter="(objectClass=person)"
  15.     scope="Subtree"
  16.     otherRequiredUserAttributes="uid,cn" />
  17.   </providers>
  18. </membership>

Three points to mention:

1. As you can see I’m using SSL — make sure to import your certificates through mmc.

2. agentname is allowed to search ‘ou=People,dc=domain,dc=org’. In ACL language:

  1.  access to dn.subtree="ou=People,dc=domain,dc=org"
  2.     by dn.regex="cn=(.*),ou=Agents,dc=domain,dc=org" read
  3.     by * none

3. I had to enable ‘allow bind_v2’ in slapd.conf to allow agentname to query OpenLDAP, otherwise I was getting ‘historical protocol version requested, use LDAPv3 instead‘.

All in all it was a hell of an exercise!

Opening OpenOffice (odt) files without OO installed

Wednesday, October 8th, 2008

Got odt file and don’t want to install OpenOffice just to open it? Here is a nice piece of software that could allow you to open, view and print odt files (and many more!). It’s called TextMaker Viewer and it’s free. Here is the current list of supported file formats:

.doc (Microsoft Word 6.0 up to Word 2007), .rtf (Rich Text Format), .dot (Microsoft Word templates 6.0 up to 2007), .psw (Pocket Word (Pocket PC)), .tmd (TextMaker 6.0 up to 2008, .pwd (Pocket Word (Handheld PC)), .odt (OpenDocument Text), .htm/html (HTML documents), .sxw ( Text), .txt (Text files (DOS, Windows, Unicode, UTF-8)).


How to insert image into PDF file

Saturday, July 19th, 2008

Yesterday, I’ve been asked a question about how to insert an image into PDF file with Adobe Acrobat installed? Well, it came out that it’s not as straightforward as it supposes to be. Anyway, here we go.


Dealing with Cannot delete file: Access is denied error

Wednesday, June 25th, 2008

This morning I’ve been fighting with “Cannot delete file: Access is denied” error under Vista Enterprise while trying to reinstall Adobe Acrobat 7.0 Professional. Don’t know what went wrong initially but activation get corrupted and Adobe was closing immediately after opening any pdf file. While trying to uninstall the package it failed to delete several dll files leaving Adobe half-removed. There was nothing wrong with permissions, nor I was able to trace by whom this dlls were locked. After googling and reading several similar cases on Adobe forum I came across to small piece of code which did the trick for me. The software is called Unlocker and it’s free. Try it – it worked for me, so I was finally able to delete and reinstall Adobe.