I try to compile samba 3.0.7 with parameters "--with-ldap" and "--with-ldapsam" and got a messages: *************** checking for LDAP support... yes checking ldap.h usability... no checking ldap.h presence... yes configure: WARNING: ldap.h: present but cannot be compiled configure: WARNING: ldap.h: check for missing prerequisite headers? configure: WARNING: ldap.h: proceeding with the preprocessor's result checking for ldap.h... yes checking lber.h usability... yes checking lber.h presence... yes checking for lber.h... yes checking for ber_scanf in -llber... no checking for ldap_init in -lldap... yes checking for ldap_domain2hostlist... no checking for ldap_set_rebind_proc... yes checking whether ldap_set_rebind_proc takes 3 arguments... 3 checking for ldap_initialize... no configure: error: libldap is needed for LDAP support ************************* I check that libldap.so present in /usr/lib and /usr/lib path present in LD_LIBRARY_PATH: bash-2.03# find /usr -name libldap* -print /usr/lib/sparcv9/libldap.so /usr/lib/sparcv9/libldap.so.3 /usr/lib/sparcv9/libldap.so.4 /usr/lib/libldap.so /usr/lib/fn/sparcv9/libldap.so /usr/lib/fn/sparcv9/libldap.so.1 /usr/lib/fn/libldap.so /usr/lib/fn/libldap.so.1 /usr/lib/libldap.so.3 /usr/lib/libldap.so.4 bash-2.03# echo $LD_LIBRARY_PATH /usr/lib:/usr/include:/usr/local/lib:/usr/local/include Does anyone have idea what it mean?