Forum OpenACS Q&A: Re: Can OpenACS and Aolserver be successfully compiled and installed on FC4?
You have to tell the compile process of, what, I guess nsldap? where is aolserver installed. see the docs for how and where.
In the same way, you have to first find everything that nsldap needs and also tell the nsldap build process where it can find those. Maybe you do that by running configure, maybe you have to edit files, like the makefile.
Once those things are done, try compiling again. If problems with compiling it, post again.
There are already posts having to do with helping you use ldap, I'm not going there at all because I don't know about using it or about using it with openacs.