Help Setting up openLDAP/Samba on Ubuntu 8.04
looking at the response from your attempts to get the sid you have not set the dc correctly in one or more config files.
"failed to bind to server ldap://localhost/ with dn="cn=admin,dc=example,dc=local" Error: Invalid credentials"
shows that you have used the default settings from the howto.
I would suggest going back over it and changing every instance of dc=example, dc=local with dc=csts, dc=local.
Then carry on the installation from where you left off.
Hope this helps