LDAP Client setup Setting up common LDAP clients Index How to enable other ldap software to use your directory. 11.. GGeenneerraall cclliieenntt sseettuupp Most clients need the same configuration to be used against a LDAP directory. Usually you need a _s_e_a_r_c_h _b_a_s_e, a _s_e_r_v_e_r name, and sometimes, if you need to authenticate your client to the server, a _b_i_n_d_d_n and a _b_i_n_d_p_a_s_s_w_o_r_d. In this examples we will be using configuration settings needed to browse the ldapconf demo server, if you already have access to a working LDAP directory you should just change this key information, if not, feel free to test your setup against the demoserver. · LDAP search base: _d_c_=_d_e_m_o_,_d_c_=_n_e_t_t_,_d_c_=_o_r_g · LDAP server: _l_d_a_p_._d_e_m_o_._n_e_t_t_._o_r_g 22.. LLDDAAPPccoonnff cclliieenntt sseettuupp · Setup · Start linuxconf, and enter the menu Config->Client->LDAP · In the server field, enter ldap.demo.nett.org · In the base field, enter dc=demo,dc=nett,dc=org · Usage · Currently you have to use ldapsearch from the command line, like this: · $ ldapsearch "(objectclass=person)" · You should now get some output viewing some person objects from the directory. 33.. OOppeennLLDDAAPP cclliieenntt sseettuupp · Setup · Open the file /etc/ldap/ldap.conf in a text editor (the location of this file may vary!). · Edit the file to look something like this: server ldap.demo.nett.org base dc=demo,dc=nett,dc=org · Save the file. · Usage · Then you may use ldapsearch from the command line: · $ ldapsearch "(objectclass=person)" · You should now get some output viewing some person objects from the directory. 44.. CCoommmmuunniiccaattoorr sseettuupp · Setup · Open the Communicator addressbook (from the "Communicator" menu) · Select New directory from the File menu · In the LDAP server field: ldap.demo.nett.org · In the Search Root field: dc=demo,dc=nett,dc=org · Usage · Open the Communicator addressbook · Select the directory you just configured from the list · Enter a name (or a wildcard) in the Show names containing field. · One or more names should show up in the addressbook window. 55.. OOuuttllooookk sseettuupp · Setup · Open the "Accounts" menu (from the "Tools" menu) · Select Add directory server · Set ldap servername: ldap.demo.nett.org · Click next,next,next and finish. · Important! You now have to set the search base: · Select the newly added directory from the list. · Select properties. Select Advanced. · Enter into the Search base field: dc=demo,dc=nett,dc=org · Select OK. · Usage · Open the addressbook from the tools menu. · Select Find from the Edit menu. · Select the directory you just configured from "Lookup in" list. · Enter a name (or a wildcard) in the "Find name" field. · One or more names should show up in the addressbook window.