Koozali.org: home of the SME Server

LDAP Global Contacts Contrib

mapangojoe

LDAP Global Contacts Contrib
« on: December 29, 2005, 01:06:16 AM »
Hello All.  I have SME setup with our Evolution users to access the LDAP dir for local user info.  I would like to set the LDAP dir so that users can add external business contacts to it for the entire company to use.  

I found the following contrib:

http://no.longer.valid/phpwiki/index.php/LDAP%20contacts

I attempted to install it, and received an error having to do with an incorrect version of Turba.  I noticed all the discussion on this contrib is more than a year old, with no new posts.

Can anyone tell me is there is a working contrib for using the SME LDAP system as a global address book?

Chris Curtis

Offline hmuhammad

  • ***
  • 65
  • +0/-0
LDAP Global Contacts Contrib
« Reply #1 on: December 29, 2005, 12:49:25 PM »
Upon a fresh CD install...
  e-smith-turba-1.3.0-06
...will be installed, while...
  e-smith-turba-1.4.0-01
...is required by smeserver-ldap-contacts-0.3.1-01hm.

The required version can be obtained by commandline execution of...
  yum update e-smith-turba
...after first ensuring that /etc/yum.conf is properly configured...
  see http://no.longer.valid/phpwiki/index.php/maintenace%20yum.conf
...also...
  see http://no.longer.valid/phpwiki/index.php/Maintenance%20Process
...............

mapangojoe

Thanks for getting back to me!
« Reply #2 on: December 29, 2005, 07:05:25 PM »
Hello hmuhammad.  I attempted to install your contrib on my SME6X server for testing.  I checked your Yum suggestions, and I had in fact mad those changes well before.  

When I installed the LDAP contribs, I received the following errors.

file /etc/e-smith/events/actions/conf-imp from install of smeserver-ldap-contacts-0.3.1-01hm conflicts with file from package e-smith-imp-1.10.0-04dm
file /etc/e-smith/templates/home/httpd/html/horde/imp/config/prefs.php/410addressbook from install of smeserver-ldap-contacts-0.3.1-01hm conflicts with file from package e-smith-imp-1.10.0-04dm
file /etc/e-smith/events/actions/conf-turba from install of smeserver-ldap-contacts-0.3.1-01hm conflicts with file from package e-smith-turba-1.4.0-01
file /etc/e-smith/templates/home/httpd/html/horde/turba/config/sources.php/40LocalSQL from install of smeserver-ldap-contacts-0.3.1-01hm conflicts with file from package e-smith-turba-1.4.0-01
file /etc/e-smith/templates/home/httpd/html/horde/turba/config/sources.php/50LocalLDAP from install of smeserver-ldap-contacts-0.3.1-01hm conflicts with file from package e-smith-turba-1.4.0-01

I attempted to update turba via Yum, but it said it did not find any packages.  

Any suggestions

Offline hmuhammad

  • ***
  • 65
  • +0/-0
LDAP Global Contacts Contrib
« Reply #3 on: December 29, 2005, 09:52:56 PM »
.
--create the 0.3.1.-02hm version of the install script (below) and run it

--it differs from version 0.3.1.-01hm by installing directly from the distro.ibiblio.org mirror site; rather than from mirror.contrib.org

--for some reason, remote RPM installing from mirror.contribs.org no longer works

--I plan to upload the 0.3.1-02hm versions of the install/uninstall scripts when I can again FTP access my contribs area

--the script uses the --force option (which should solve your problem) for the reasons explained in the RELEASE_NOTES

==========================================================================
smeserver-ldap-contacts-0.3.1-02hm.install.sh
==========================================================================
#!/bin/bash

VERSION='0.3.1'
HMUHAMMAD='http://mirror.contribs.org/smeserver/contribs/hmuhammad/'
RELEASES601='http://mirror.contribs.org/smeserver/releases/6.0.1/os/e-smith/RPMS/'
UPDATES60='http://mirror.contribs.org/smeserver/releases/6.0.1/updates-common/i386/'

echo
rpm -Uvh         ${HMUHAMMAD}e-smith-ldap-4.10.0-04.noarch.rpm

rpm -Uvh --force ${HMUHAMMAD}smeserver-ldap-contacts-0.3.1-01hm.noarch.rpm

echo
echo -e "1)\tInstallation is almost complete..."
echo -e "2)\tAbout to run the following command, please wait until it completes..."
echo
echo -e "\t/sbin/e-smith/signal-event bootstrap-console-save"
/sbin/e-smith/signal-event bootstrap-console-save
echo
echo -e "3)\tNow configure via Contacts panel in Configuration section of... \n\thttp://server/server-manager"
echo
echo -e "Configuration documentation available via... \n\tless /usr/share/doc/smeserver-ldap-contacts-${VERSION}/CONFIGURATION "
echo -e "Development documentation available via... \n\tless /usr/share/doc/smeserver-ldap-contacts-${VERSION}/DEVELOPMENT "
echo
echo Completed.
echo

exit 0
==========================================================================
...............

mapangojoe

LDAP Global Contacts Contrib
« Reply #4 on: December 30, 2005, 08:03:42 PM »
Quote from: "hmuhammad"
.
--create the 0.3.1.-02hm version of the install script (below) and run it



Thanks for getting back to me HM.  I installed your new script on my 6.1 server, and it worked like a charm.   I installed it on my production server, and it seemed to install fine, but the "contacts" menu item in server-manager never appeared.

I'm a little worried that having something installed but not working may be an issue.  Can I uninstall by typing:

rpm -e filename

Will that remove the changes cleanly?

When I looked at the logs I seem many errors having to do with FormMagick.  

I also think I have not updated the production server from 6.0 to 6.1.  Could that be my trouble.  

Sorry to keep pestering you.  I'll gladly pay you for your time to assist!

Offline hmuhammad

  • ***
  • 65
  • +0/-0
LDAP Global Contacts Contrib
« Reply #5 on: December 30, 2005, 11:08:58 PM »
.
--other than a refresh/reload of the server-manager page, I don't know off-hand how to get 'contacts' to appear

--I do know that FormMagic has been updated from the version provided on the CD (check the UPDATES directory shown in the script below)

--I tested to ensure that smeserver-ldap-contacts-0.3.1-01hm cleanly installs and uninstalls with SME 6.0.1-01

--I got it to work with a Mitel supported SME 6.0 server but not cleanly (meaning additional steps are required after the scripts are run--if your production server is one on those, reread the RELEASE_NOTES)

--the uninstall script (below) will restore packages to the versions installed with a 'prestine' 6.0.0-01 server

--however, I notice from the error messages listed above that...
e-smith-imp-1.10.0-02
...has been superceded on your server by
e-smith-imp-1.10.0-04dm
...probably from a package by Darrel May

--therefore you should probably edit the uninstall script (below) to restore the e-smith-imp-1.10.0-04dm package

--even if the refresh/reload worked and smeserver-ldap-contacts installed cleanly, you would need to reconcile the changes in the version of the files...
/etc/e-smith/events/actions/conf-imp
/etc/e-smith/templates/home/httpd/html/horde/imp/config/prefs.php/410addressbook
...provided in
smeserver-ldap-contacts-0.3.1-01hm
...with the versions of those files provided in...
e-smith-imp-1.10.0-04dm
...in order to get the desired functionality from both packages

--its a good thing that you first tried to manually install the RPM, because you got the above error messages telling which files would be over-written with the --force option in my install script

--the unistall scripts attempts to restore the over-written files, but it assumes a prestine 6.0.1-01 installation (at least regarding the smeserver-ldap-contacts relevant packages)

--in the case of non-prestine installations, the uninstall script needs to edited to account for other add-ons

--even though this situation is explained in the RELEASE_NOTES, its probably a good idea for the next version of my install script to a) explicitly list the about-to-be-over-written files, to b) required an explicit acknowledgement from the sysadmin, and to c) backup those files somewhere

--I hope the above tips are helpful in getting your production server to work the way you need

==============================================================
smeserver-ldap-contacts-0.3.1-02hm.uninstall.sh
==============================================================
#!/bin/bash

HMUHAMMAD='http://mirror.contribs.org/smeserver/contribs/hmuhammad/'
RELEASES601='http://mirror.contribs.org/smeserver/releases/6.0.1/os/e-smith/RPMS/'
UPDATES60='http://mirror.contribs.org/smeserver/releases/6.0.1/updates-common/i386/'

echo
rpm -e smeserver-ldap-contacts

echo
rpm -Uvh --force ${RELEASES601}imp-3.2.1-2es01.noarch.rpm
rpm -Uvh --force ${RELEASES601}turba-1.2-1es00.noarch.rpm
rpm -Uvh --force ${RELEASES601}e-smith-imp-1.10.0-02.noarch.rpm
rpm -Uvh --force ${UPDATES60}e-smith-turba-1.4.0-01.noarch.rpm
rpm -Uvh --force ${RELEASES601}e-smith-ldap-4.10.0-03.noarch.rpm

echo
echo -e "About to run the following command, please wait until it completes..."
echo
echo -e "\t/sbin/e-smith/signal-event bootstrap-console-save"
/sbin/e-smith/signal-event bootstrap-console-save
echo
echo Completed.

exit 0
==============================================================
...............

Offline kruhm

  • *
  • 680
  • +0/-0
LDAP Global Contacts Contrib
« Reply #6 on: January 01, 2006, 02:22:20 PM »
Quote
-other than a refresh/reload of the server-manager page, I don't know off-hand how to get 'contacts' to appear  


/etc/e-smith/events/actions/navigation-conf      

recreates right-hand menu

Offline kruhm

  • *
  • 680
  • +0/-0
LDAP Global Contacts Contrib
« Reply #7 on: January 01, 2006, 02:27:11 PM »
Quote
-other than a refresh/reload of the server-manager page, I don't know off-hand how to get 'contacts' to appear  


/etc/e-smith/events/actions/navigation-conf      

recreates right-hand menu