Background

After using and falling in love with DokuWiki and it's elegant simplicity and extensibility, I found myself wanting to be able to create links in my Wiki pages that I could click on and immediately Remote Desktop into a server. There wasn't anything out there (that I could find), so I created this plugin.

Installation

This plugin is now hosted at GitHub, code has been removed from this page (but still available in “Old Revisions”):

PASSSTRING must be pre-encrypted (if you create your own Windows Program, use AES via Microsoft crypt32.dll), or use one like Remko's RDP PW Encrypter

There is a password encryption utility included in the plugin package, along with source code for the command-line version.

Known Issues

If you find that the <?=…?> lines don't parse for you, change them to <?php … ?> and it should work.

Suggestions for Improvement

from Alex Bailey - alex[dot]bailey[at]interfacia[dot] co.uk

I had to alter the last 2 lines as follows to make it work otherwise the server name was not inserted into the RDP file content. The blank line before “domain” was necessary and I think this parameter is not used anyway. I've never written any PHP before but I had a good guess at fixing it!

full address:s:<?phpecho$_GET['server']?>
domain:s:<?phpecho$_GET['domain']?>

from [[gut.kevin@gmail.com]]

Some Remote Desktop clients need a file with Windows Line Breaks, so instead of

<?phpecho$_GET['server']."\n"?>

use

<?phpecho$_GET['server']."\r\n"?>

for all fields and it should work.

Blank page on save

If you get a blank page on save (coupled with an error in the logs similar to:)

Cannot modify header information - headers already sent by (output started at /lib/plugins/rdplink/syntax.php:1) in /inc/common.php on line 1825