I compiled LDAP XPCOM for Linux (see Using LDAP XPCom with standard XULRunner).

mozldap.xpt and libmozldap_stub.so must be copied in the components directory of your xul app. libmozldap.so, libldap50.so and libprldap50.so must be copied in the libraries directory of your xul app.