Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 209538

Summary: Allow mod_admserv to build with mozldap5/6
Product: [Retired] 389 Reporter: Rich Megginson <rmeggins>
Component: AdminAssignee: Rich Megginson <rmeggins>
Status: CLOSED CURRENTRELEASE QA Contact: Viktor Ashirov <vashirov>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0.2   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-07 16:57: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:
Bug Depends On:    
Bug Blocks: 152373, 208654, 240316    
Attachments:
Description Flags
diffs for fix
none
new diffs
none
cvs commit log none

Description Rich Megginson 2006-10-05 21:19:54 UTC
mod_admserv needs to be able to build with mozldap versions 5 or 6.

Comment 1 Rich Megginson 2006-10-05 21:19:54 UTC
Created attachment 137871 [details]
diffs for fix

Comment 2 Noriko Hosoi 2006-10-05 22:26:53 UTC
It may not be necessary to think of this possibility, but if there are multiple
versions of LDAP C SDK accidentally installed in $LDAPSDKLIBDIR, e.g.,
libldap50.so, and libldap60.so, then libldap50.so would be picked up first and
it sets ldapsdk_ver=50...  I think it'd be nice if we can do it with the
descendant order (or pick up the higher number?)

+if test -z "$ldapsdk_ver" ; then
+   # figure out version of ldapsdk
+    for file in $LDAPSDKLIBDIR/libldap??.so* ; do
+        case $file in
+        *libldap60.so*) ldapsdk_ver=60 ;;
+        *) ldapsdk_ver=50 ;;
+        esac
+        break
+    done   
+fi
+

Comment 3 Rich Megginson 2006-10-05 22:52:22 UTC
Created attachment 137879 [details]
new diffs

Thanks Noriko.	Here are the new diffs.  If it finds 60 libs, it breaks out of
the for loop.  Otherwise, it keeps looking for 50 libs.

Comment 4 Noriko Hosoi 2006-10-05 23:00:36 UTC
Looks cool!

Comment 5 Rich Megginson 2006-10-05 23:11:14 UTC
Created attachment 137881 [details]
cvs commit log

Reviewed by: nhosoi (Thanks!)
Files: see diff
Branch: HEAD
Fix Description: If there is a mozldap6 package on the system, assume
the lib suffix is 60, otherwise, 50.  If no mozldap package is on the
system, look for libldap60.so* in the given ldapsdk_lib directory.  If
found, assume 60, otherwise, 50.
There were also a few problems with the way we were looking for ICU,
mostly copy/paste errors, but one was that pkg-config does not have an
icu package on some systems, so you have to use icu-config instead.
Noriko pointed out that if both 50 and 60 libs are in the same dir, the 50 libs
will be selected first - we want 60 libs to have preference. The new diffs will
select 60 libs if found, or 50 libs if not.
Platforms tested: FC5
Flag Day: no
Doc impact: no

Comment 6 Anh Nguyen 2007-12-03 15:39:26 UTC
Changed QA Whiteboard to to_be_verified_by_dev.

Comment 7 Nathan Kinder 2007-12-14 23:58:40 UTC
We are currently building adminserver (which builds mod_admserv) using mozldap
version 6 as the default across numerous platforms, even if mozldap 5 is on the
system.  Marking as verified.