I want to setup LDAP, initially for authentication (later for NIS like functions). I am having difficulty with the TLS feature in the Yast LDAP Server and Yast LDAP Client setup dialogs.
I have been operating two comparable openSUSE 12.2 (64) computers. At present the two machines are independent of each other and each uses it own password authentication.
What I want to do is to setup an LDAP server and LDAP client on one machine using the Yast LDAP Service and Yast LDAP Client setup dialogs. After I am comfortable with that installation and have experimented with LDAP on that machine, I want to create an LDAP client (with Yast LDAP Client) on the second machine and use then use the LDAP server to authenticate for both machines.
Both Yast LDAP Service and Yast LDAP Client require TLS to work. I am having difficulties setting up the TLS and getting the Yast LDAP Server and Yast LDAP Client installations on the same computer to recognize each other. So far the only internet information I can find about openSUSE and TLS for LDAP involves people who want an option to avoid TLS. I just want to set up the server and client in the manner set out in Chapter 4 of the openSUSE 12.2 Security Guide.
Using YAST LDAP Server, I think I have set up the LDAP Server properly. I created a Root CA and server certificate with YAST CA Management and imported that into YAST Common Server Certificate (generally as described in Chapter 15 of the Security Guide). YAST LDAP Server recognizes that a Common Server Certificate had been created and imported the Common Server Certificate information into the the TLS entry blocks in YAST LDAP Server dialog. The YAST LDAP Server dialog completed without error.
The Yast LDAP Client is different story. Frankly, I don’t understand enough about certificates, TLS, and the location of the pertinent files to know exactly what information should be entered in the Yast LDAP Client entry blocks for TLS. The Security Guide, p.55, merely states: “4. If TLS or SSL-protected communication with the server is required select* LDAP TLS/SSl*. Click Download CA Certificate to download a certificate in PEM format from a URL.” The dialog to do this asks for specific file locations** or** a URL. I don’t know what the properly file locations are. So far my guesses about the files have all resulted in a error message (after executing “finish” in the YAST LDAP Client dialogs) to the effect that the TLS information is incorrect and no connection with the server has been made.
What I need to know includes:
What TLS entries should be made in Yast LDAP Client dialogs?
Am I missing some important step,* e.g.* Yast CA Management allows a Root CA to create a “client certificate” (I didn’t create such a certificate because I didn’t see anything on how it is used)?
After I get the server and client on the first machine working, how do I configure YAST LDAP Client on the second machine to connect to the server on the first machine?
Any help will be appreciated.