Friday, 12 June 2015

Tutorial : Setting up Active Directory on a Mac OSX

Recently I has to write some Java code to integrate with ActiveDirectory.

My first problem was setting up an environment on my machine (a MBP) where I could test my code.

Turns out this is not too tricky if you follow the right steps.

1) Install VirtualBox (Here's a blog I wrote on this subject)

2) Download and install Windows Server 2012 (This link for 180 day free eval period) into VirtualBox.

3) Before you start Windows Server 2012 run this command on your Mac (This took me a while to figure out):

VBoxManage setextradata 2012Server VBoxInternal/CPUM/CMPXCHG16B 1

4) Once Windows 2012 is installed you need to setup ActiveDirectory.  Carefully follow the directions in this excellent tutorial.

And there you have it Active Directory running on your Mac.

In the next article I'll post the Java code you need to connect to Active Directory.

No comments:

Post a Comment