Get PDC SID value

To get the current SID (Security Identifier) value of running Windows service (Samba) in OSX server 10.4 (Tiger) or 10.5 (Leopard) server, you need to run following command with administrator (root/sudo) account:

net getdomainsid foo.com
    * where foo.com is the domain we are supporting, net is a samba command, and getdomainsid argument prints the local machine SID and the SID of the current domain.

The result is:

SID for domain FOO.COM is: F-7-9-19-899274321-7632837134-321543222