I am currently running OS X Version 10.9.5 (Mavericks).
In the past I installed OS X server and had to sign some certificates so that users could authenticate with the VPN function (which is what I mostly used the server for), and later I removed OS X server from the OS.
However, upon further inspection some months later, I noticed that there were still traces of those certificates and/or services were still running unnoticed. I did an nmap scan against my machine to reassure myself that my observations were indeed correct. And correct they were. Here's the scan:
http://pastebin.com/raw.php?i=B3vbG8q6
So I looked around the web for some answers… came across a few that said I should remove the certificates from my Keychain Access, which I tried. That didn't work, got the same exact nmap scan result.
Then I thought that maybe there was a process (or processes) running that related to those open ports. In terminal I did:
sudo lsof -i :625
and
sudo lsof -i :636
and same with ports 749 and 3659 to get the processes that were associated with them.
Then I did:
sudo kill -9 PID
but it became apparent that those were persistent processes after conducting another nmap scan and further lsof -i commands, only to find myself looking at different numbers under PID :/
My desired result is for the mmap scan to not show any traces of there being a server on my system, or even a server installed in the past. I've looked everywhere and the very few clues that I've found didn't get me what I need.
Any help would be appreciated. Thanks in advance.
Best Answer
Just removing the Server.app (3.2.2) for 10.9 Mavericks isn't enough. You also have to unload several launch daemons.
By comparing all "System LaunchDaemons" in a basic Server.app install and an LDAP/VPN environment in two different VMs I assume that the following system launch daemons have to be unloaded permanently:
The most comfortable tool to do this is probably LaunchControl.
To completely remove all files and folders created by installing, launching and configuring Server.app I have to compile a list of files and folders to delete first (which will take some time).
Here is a list of newly created files and folders after installing and configuring OpenLDAP and VPN in Server.app (3.2.2):
keys:
Despite the greatest care taken in the creation of this list I cannot guarantee its accuracy. Delete those files at your own risk.