Found the problem after some investigation based on your suggestions. In the openldap configuration file /etc/openldap/ldap.conf, the entry TLS_CACERT is pointed to a certificate file in a directory which is accessible only by root user. After I move the file to a directory which all user can access it, now it works. I can start the kamailio as a service with &quot;service kamailio start&quot; with the running user and group is kamailio.<br>
<br>Thank you all for your helps and suggestions!<br><br>Best Regards,<br>Laura<br><br><div class="gmail_quote">On Tue, Jun 21, 2011 at 5:44 PM, laura testi <span dir="ltr">&lt;<a href="mailto:lau.testi@gmail.com">lau.testi@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">The SELinux is disabled.<div><div></div><div class="h5"><br><br><br><br><div class="gmail_quote">On Tue, Jun 21, 2011 at 5:26 PM, Andrew Pogrebennyk <span dir="ltr">&lt;<a href="mailto:andrew.pogrebennyk@portaone.com" target="_blank">andrew.pogrebennyk@portaone.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On <a href="tel:21.06.2011%2017" value="+12106201117" target="_blank">21.06.2011 17</a>:30, laura testi wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Should I need to set a some special environment variable to load ldap.so<br>
in the /etc/init.d/kamailio?<br>
</blockquote>
<br></div>
The env output for root does not confirm my theory :) I&#39;m not sure what is preventing kamailio from communication with LDAP, could it be that SELinux is enabled and denying it in some way?<br>
<br>
-- <br>
Sincerely,<br><font color="#888888">
Andrew Pogrebennyk<br>
</font></blockquote></div><br>
</div></div></blockquote></div><br>