the env retrun by root user is: [root@kamailio3p1 kamailio]# env HOSTNAME=kamailio3p1.emslabw3.local TERM=xterm SHELL=/bin/bash HISTSIZE=1000 SSH_CLIENT=10.10.2.28 49471 22 SSH_TTY=/dev/pts/5 USER=root 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: MAIL=/var/spool/mail/root PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin INPUTRC=/etc/inputrc PWD=/etc/kamailio LANG=en_US.UTF-8 SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass SHLVL=1 HOME=/root LOGNAME=root CVS_RSH=ssh SSH_CONNECTION=10.10.2.28 49471 10.10.5.214 22 LESSOPEN=|/usr/bin/lesspipe.sh %s DISPLAY=localhost:15.0 G_BROKEN_FILENAMES=1 OLDPWD=/root _=/bin/env
while env -i is empty.
Should I need to set a some special environment variable to load ldap.so in the /etc/init.d/kamailio?
Thanks, Laura
On Tue, Jun 21, 2011 at 4:23 PM, Andrew Pogrebennyk < andrew.pogrebennyk@portaone.com> wrote:
On 21.06.2011 17:08, laura testi wrote:
Yes, it can be read by all user like other configuration file: -rw-r--r-- 1 root root 566 Jun 20 18:56 ldap.cfg
Just in case, have you set perhaps any of the environment variables manually for working with ldap? 'service' 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.
-- Sincerely, Andrew Pogrebennyk