| Intro | LDAP to AD Part I |
| LDAP to AD Part II | LDAP to AD Part III |
| LDAP to AD Part IV | LDAP to AD Part V |
| Misc | ADmitMac |
| -- Miscellaneous Tidbits -- |
killall DirectoryService
will force the DirectoryService daemon to restart before "it goes stupid".nicl . append /groups/admin users <username>
where <username> is the short name of the directory account you want to have local admin rights.
In short what the command says is to execute NICL, tell NICL we are working with the local NetInfo(.), we want to add something (append), we want to add this something to the admin group (/groups/admin), we are adding a user (users) and the name of that user is <username>.
To remove the account simply enter:
nicl . delete /groups/admin users <username>
/Users/ricore.
As long as the ricore folder is not found OS X will autocreate
the directory with the appropriate UID and rights. The big plus of a local
home directory is that you don't have to worry about the browser cache trying
to span a network connection with a server based home directory. Server access
can be handled via Applescripts setup as either icons or entries in the Login
Items system preferences.Okay, okay, for those who can't get AD and ldap over ssl to work, check
this out!
I have finally solved the puzzle. The connection hostname that you
entered in LDAPv3 settings has to be the full hostname of the AD server.
For example, my-server.dept.mycompany.com.
Yes, I know that both my-server.dept.mycompany.com and dept.mycompany.com
hosts could point to the same machine, but LDAP over SSL will not work unless
the connecting hostname matches to the certificate's hostname. If my-server.dept.mycompany.com
is not a valid DNS record, just add it to your /etc/hosts file. For example:
# echo "your_ad_server_ip my-server.dept.mycompany.com"
>> /etc/hosts
This is how you get the correct and "working" CA certificate.
Open up a terminal and enter:
# openssl s_client -connect your_ad_server_ip:636
{a lot of information}
type QUIT
Select from "-----BEGIN CERTIFICATE-----" to "-----END
CERTIFICATE-----" and copy and paste it into a local file (anywhere
you want). For example, /System/Library/OpenSSL/certs/my-server.pem. Edit
/etc/openldap/ldap.conf and add "TLS_CACERT /System/Library/OpenSSL/certs/my-server.pem"
(without quotes). Reboot.
On how to get the correct and "working" CA certificate...
This
information was incorrect and did not work for me. This step actually
retrieved the signed certificate, not the CA certificate.
I had my SSL certificate signed by equifax. I had to go to their
site
and download their CA certificate to put on the OSX client. After
which, ldap/ssl started working for me.
Email: Chuck Simciak