Issue #408 has been updated by Clément OUDOT.

Category set to OpenLDAP RPM
Status changed from New to Assigned
Assigned to set to Clément OUDOT

One solution could be to add /usr/local/openldap/bin to the beginning of the 
PATH variable, instead of the end.

This can be done in openldap.sh, by changing:
<pre>
PATH="$PATH:$OL_BIN"
</pre>

Into:
<pre>
PATH="$OL_BIN:$PATH"
</pre>

But I don't think it should be done by default, you can change it on your 
installation if needed.
----------------------------------------
Bug #408: Which ldap client is in use?
http://tools.lsc-project.org/issues/408

Author: Nick Milas
Status: Assigned
Priority: Normal
Assigned to: Clément OUDOT
Category: OpenLDAP RPM
Target version: 


I noticed that in some of my systems where LTB Openldap is installed, the 
client path is different than in others. For example:

System 1: 

<pre>
# rpm -qa | grep openldap
symas-openldap-silver-2.4.25-110503
openldap-devel-2.3.43-12.el5_7.10
openldap-ltb-debuginfo-2.4.30b3-2
openldap-ltb-contrib-overlays-2.4.30b3-2
openldap-ltb-check-password-1.1-5.el5
symas-openldap-silver-client-2.4.25-110503
openldap-2.3.43-12.el5_7.10
openldap-ltb-2.4.30b3-2
# 
# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/berkeleydb/bin:/usr/local/openldap/bin:/usr/local/openldap/sbin:/root/bin
#
# which ldapsearch
/usr/local/openldap/bin/ldapsearch
</pre>

System 2: 

<pre>
# rpm -qa | grep openldap
openldap-2.3.43-12.el5_7.10
openldap-clients-2.3.43-12.el5_7.10
openldap-ltb-2.4.30b3-2
openldap-ltb-debuginfo-2.4.30b3-2
# 
# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/berkeleydb/bin:/usr/local/openldap/bin:/usr/local/openldap/sbin:/root/bin
#
# which ldapsearch
/usr/bin/ldapsearch
</pre>

Can you please help me understand why there is this difference, and how we can 
correct things? I would expect all systems with ltb installed to use 
/usr/local/openldap/bin/ldapsearch.

Thanks,
Nick


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://tools.lsc-project.org/my/account
_______________________________________________
ltb-dev mailing list
[email protected]
http://lists.ltb-project.org/listinfo/ltb-dev

Reply via email to