Bug 370621

Summary: some slapd command line tools for fedora-ds fail
Product: [Retired] 389 Reporter: Mark Slemko <mslemko>
Component: Command Line UtilitiesAssignee: Nathan Kinder <nkinder>
Status: CLOSED NOTABUG QA Contact: Chandrasekar Kannan <ckannan>
Severity: low Docs Contact:
Priority: low    
Version: 7.1CC: benl, rmeggins
Target Milestone: ---   
Target Release: ---   
Hardware: ia64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-26 17:23:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mark Slemko 2007-11-08 00:15:04 UTC
Description of problem:
command line tools don't work in 64-bit directory

Version-Release number of selected component (if applicable):
Name   : fedora-ds-base
Arch   : x86_64
Version: 1.1.0
Release: 1.2.fc7

How reproducible:
always

Steps to Reproduce:
1. try running /usr/lib/dirsrv/slapd-SERVER/monitor
  
Actual results:
./monitor: line 13: ldapsearch: command not found

Expected results:
a number of items listed from the ldap server

Additional info:
The shell scripts don't call the correct version of ldapsearch on 64 bit
machines. The correct path to the various ldap helper applications is:
PATH=$prefix/usr/lib64/mozldap:/usr/lib64/mozldap
instead of the wrong path being:
PATH=$prefix/usr/lib/mozldap:/usr/lib/mozldap

perhaps both paths could be added for these calls
PATH=$prefix/usr/lib/mozldap:/usr/lib/mozldap:$prefix/usr/lib64/mozldap:/usr/lib64/mozldap

Comment 1 Rich Megginson 2007-11-20 23:17:49 UTC
Are you using the 32bit fedora-ds-base on F7 64bit?  I don't think that is
supported.  You should use the 64bit fedora-ds-base on F7 64bit.

Comment 2 Mark Slemko 2007-11-21 04:55:01 UTC
(In reply to comment #1)
> Are you using the 32bit fedora-ds-base on F7 64bit?  I don't think that is
> supported.  You should use the 64bit fedora-ds-base on F7 64bit.

I am using the 64bit on Fedora 7.
installation by: yum install fedora-ds-base

it appears to me that the scripts do not reference the /usr/lib64... paths

Comment 3 Rich Megginson 2007-11-21 14:37:01 UTC
> Steps to Reproduce:
> 1. try running /usr/lib/dirsrv/slapd-SERVER/monitor

On my fedora-ds-base F7 x86_64 installation,
/usr/lib/dirsrv/slapd-SERVER/monitor does not exist - but
/usr/lib64/dirsrv/slapd-SERVER/monitor does, and it has the correct path.  So
I'm a little bit confused as to why you would have /usr/lib/dirsrv on a 64bit
system.

Comment 4 Mark Slemko 2007-11-22 06:26:56 UTC
that's interesting, when I did a yum install on Nov 7, it installed both i386
and x86_64 - also, the update today updated both. 

I did a check and I have both i386 and x86_64 installed. It appears that it
installed the system using i386 and wanted to use some i386 tools that didn't
exist except in the x86_64 - i.e. mozldap-tools.

I yum installed some samba tools yesterday -> smbldap-tools which may have
pulled in compatible tools. However, the install, and the update today did
"correct" the issue I reported:
/usr/lib/dirsrv/slapd-SERVER/monitor now works.

I think we can close this.

Comment 5 Rich Megginson 2007-11-26 17:23:16 UTC
Ok.  Thanks.