the env retrun by root user is:<br>[root@kamailio3p1 kamailio]# env<br>HOSTNAME=kamailio3p1.emslabw3.local<br>TERM=xterm<br>SHELL=/bin/bash<br>HISTSIZE=1000<br>SSH_CLIENT=10.10.2.28 49471 22<br>SSH_TTY=/dev/pts/5<br>USER=root<br>
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:<br>
MAIL=/var/spool/mail/root<br>PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin<br>INPUTRC=/etc/inputrc<br>PWD=/etc/kamailio<br>LANG=en_US.UTF-8<br>SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass<br>
SHLVL=1<br>HOME=/root<br>LOGNAME=root<br>CVS_RSH=ssh<br>SSH_CONNECTION=10.10.2.28 49471 10.10.5.214 22<br>LESSOPEN=|/usr/bin/lesspipe.sh %s<br>DISPLAY=localhost:15.0<br>G_BROKEN_FILENAMES=1<br>OLDPWD=/root<br>_=/bin/env<br>
<br><br>while env -i is empty.<br><br>Should I need to set a some special environment variable to load ldap.so in the /etc/init.d/kamailio?<br><br>Thanks,<br>Laura <br><br><div class="gmail_quote">On Tue, Jun 21, 2011 at 4:23 PM, Andrew Pogrebennyk <span dir="ltr">&lt;<a href="mailto:andrew.pogrebennyk@portaone.com">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 class="im">On <a href="tel:21.06.2011%2017" value="+12106201117" target="_blank">21.06.2011 17</a>:08, laura testi wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Yes, it can be read by all user like other configuration file:<br>
-rw-r--r--   1 root root   566 Jun 20 18:56 ldap.cfg<br>
</blockquote>
<br></div>
Just in case, have you set perhaps any of the environment variables manually for working with ldap? &#39;service&#39; command is a wrapper that calls env -i (start with an empty environment), maybe this is the reason it works differently for the root and kamailio users.<br>

<br>
-- <br>
Sincerely,<br><font color="#888888">
Andrew Pogrebennyk<br>
</font></blockquote></div><br>