Compiling the OpenLDAP Proxy

 < Day Day Up > 



Similar to the BerkeleyDB, the OpenLDAP software also needs to be configured before compilation. The configure tools create the necessary makefiles for you, which is very helpful because there is more than one makefile. OpenLDAP offers you two proxy back ends, or one basic back end and two extensions. We will install the basic one first and have a look at the extensions later. Following is an example of a script to configure compilation of the proxy back end:

 #!/usr/bin/sh # # Name        : ConfigLdapServer.sh # Author      : Reinhard E. Voglmaier # Date        : 27.04.2003 # Version     : 2.1 # Description : Configure OpenLDAP compilation/installation # # Server Name, used latger in the configure switches Server=proxy Main=ldap CC=gcc                                                     \ CPPFLAGS="-I/usr/local/BerkeleyDB.4.1/include"             \ LDFLAGS="-L/usr/local/BerkeleyDB.4.1/lib"                  \ ./configure                                                \   --bindir=/usr/local/${Server}/bin                        \   --sbindir=/usr/local/${Server}/sbin                      \   --libexecdir=/usr/local /$ {Server} /libexec             \   --libdir=/usr/local/${Server}/lib                        \   --localstatedir=/usr/local/${Server}/var                 \   --sysconfdir=/usr/local/${Server}/etc                    \   --mandir=/usr/local/${Main}/man                          \   --includedir=/usr/local/${Main}/include                  \   --datadir=/usr/local/$Main}/share                        \   --disable-bdb                                            \   --enable-ldap 

Notice that the proxy hack end is compiled into the server with the directive:

 --enable-ldap 

The name suggests what the proxy is doing: it executes requests against a directory server using the LDAP protocol. I have also disabled the compilation of the bdb back end, which otherwise would have been the default behavior.

Once you have launched the configuration script, you must launch a "make depend" to allow the procedure to resolve the dependencies. After that, you are ready to launch the make, which should now succeed without errors. However, if you get errors in the compilation phase, look first at the "how to" on the OpenLDAP Web site and then examine the archives of the OpenLDAP newsgroups. If you do not find the help you need, subscribe to the newsgroup and post your problem on the board.

Notice, however, that the usual make test would result in an error because you do not have a configured database back end you can test.



 < Day Day Up > 



The ABCs of LDAP. How to Install, Run, and Administer LDAP Services
The ABCs of LDAP: How to Install, Run, and Administer LDAP Services
ISBN: 0849313465
EAN: 2147483647
Year: 2003
Pages: 149

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net