initial commit of file from CVS for e-smith-turba on Wed 12 Jul 09:11:40 BST 2023

This commit is contained in:
Brian Read 2023-07-12 09:11:40 +01:00
parent e4f24e34e7
commit 420341c17f
67 changed files with 3168 additions and 2 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
*.rpm
*.log
*spec-20*
*.tar.xz

21
Makefile Normal file
View File

@ -0,0 +1,21 @@
# Makefile for source rpm: e-smith-turba
# $Id: Makefile,v 1.1 2016/02/05 16:53:16 stephdl Exp $
NAME := e-smith-turba
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View File

@ -1,3 +1,17 @@
# e-smith-turba
# <img src="https://www.koozali.org/images/koozali/Logo/Png/Koozali_logo_2016.png" width="25%" vertical="auto" style="vertical-align:bottom"> e-smith-turba
SMEServer Koozali developed git repo for e-smith-turba smeserver
SMEServer Koozali developed git repo for e-smith-turba smeserver
## Wiki
<br />https://wiki.koozali.org/
## Bugzilla
Show list of outstanding bugs: [here](https://bugs.koozali.org/buglist.cgi?component=e-smith-turba&product=SME%20Server%2010.X&query_format=advanced&limit=0&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=CONFIRMED)
## Description
<br />*This description has been generated by an LLM AI system and cannot be relied on to be fully correct.*
*Once it has been checked, then this comment will be deleted*
<br />
E-smith-Turba is a powerful open source software solution for contact management. It offers a suite of features, all designed to make it easier to organize and manage contacts, while also providing an admin-friendly interface for easy configuration and maintenance. It offers a wide range of contact fields, including email addresses, phone numbers, and physical addresses, as well as custom data fields. It is also easy to integrate with other software solutions, including email clients and customer relationship management systems. E-smith-Turba offers a secure platform to protect data, and the ability to quickly search and filter contacts. For those looking for an easy-to-use contact management solution, E-smith-Turba is an excellent choice.

340
additional/COPYING Normal file
View File

@ -0,0 +1,340 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) 19yy <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) 19yy name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.

1
contriborbase Normal file
View File

@ -0,0 +1 @@
sme10

50
createlinks Normal file
View File

@ -0,0 +1,50 @@
#!/usr/bin/perl -w
# This script creates the symlinks needed by this RPM
use esmith::Build::CreateLinks qw(:all);
#
# Install the Turba tables into mysql and expand the config files
# We only need to do this once.
#
foreach (qw(conf.php prefs.php sources.php attributes.php))
{
templates2events("/home/httpd/html/horde/turba/config/$_",
qw(email-update bootstrap-console-save));
}
foreach (qw(conf.php prefs.php sources.php attributes.php))
{
safe_symlink("/etc/e-smith/templates-default/template-begin-php",
"root/etc/e-smith/templates/home/httpd/html/horde/turba/config/$_/template-begin");
safe_symlink("/etc/e-smith/templates-default/template-end-php",
"root/etc/e-smith/templates/home/httpd/html/horde/turba/config/$_/template-end");
}
foreach (qw(
40mysql.create.turba
50turba_upgrade
57turba_mysql_reset_addressbook_pref
60migrate-imp-to-turba
))
{
templates2events(
"/etc/e-smith/sql/init/$_",
qw(post-install));
}
foreach (qw(
40mysql.create.turba
50turba_upgrade
57turba_mysql_reset_addressbook_pref
60migrate-imp-to-turba
))
{
templates2events(
"/etc/e-smith/sql/init/$_",
qw(post-upgrade));
}

129
e-smith-turba.spec Normal file
View File

@ -0,0 +1,129 @@
# $Id: e-smith-turba.spec,v 1.2 2016/02/05 16:57:44 stephdl Exp $
Summary: e-smith module to configure Turba 1.0
%define name e-smith-turba
Name: %{name}
%define version 3.6.0
%define release 2
Version: %{version}
Release: %{release}%{?dist}
License: GPL
Group: Networking/Daemons
Source: %{name}-%{version}.tar.xz
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
BuildRequires: e-smith-devtools
BuildArchitectures: noarch
Requires: e-smith-base, e-smith-lib, e-smith >= 4.1
Requires: turba-h3 >= 2.2
AutoReqProv: no
Obsoletes: dcb-e-smith-turba
Obsoletes: smeserver-turba-menuarray
%changelog
* Wed Jul 12 2023 cvs2git.sh aka Brian Read <brianr@koozali.org> 3.6.0-2.sme
- Roll up patches and move to git repo [SME: 12338]
* Wed Jul 12 2023 BogusDateBot
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
by assuming the date is correct and changing the weekday.
* Fri Feb 05 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 3.6.0-1.sme
- Initial release to sme10
* Wed Feb 13 2013 Shad L. Lords <slords@mail.com> 3.4.0-1
- Roll new stream for sme9
* Sat Nov 13 2010 John H. Bennett III <bennettj@johnbennettservices.com> 3.2.0-17
- Fix bug in refactored code used to set ldap base dn. [SME: 2939]
* Fri Nov 12 2010 John H. Bennett III <bennettj@johnbennettservices.com> 3.2.0-16
- Refactored code used to set ldap base dn. Thanks Shad Lords [SME: 2939]
* Sun Aug 1 2010 John H. Bennett III <bennettj@johnbennettservices.com> 3.2.0-15
- Update to remove turbaContact info that SME is not using [SME: 5942]
* Mon May 10 2010 John H. Bennett III <bennettj@johnbennettservices.com> 3.2.0-14
- Patch that adds the ability to have a local LDAP Group Address book. [SME: 5944]
* Mon May 10 2010 John H. Bennett III <bennettj@johnbennettservices.com> 3.2.0-13
- Patch to template attributes.php to add ability to have multiple email values
for a contact. Separate entries with a comma and a space [SME: 5943]
* Mon May 10 2010 John H. Bennett III <bennettj@johnbennettservices.com> 3.2.0-12
- Update to freebusy info in sources.php [SME 5942]
* Sat Feb 13 2010 John H. Bennett III <bennettj@johnbennettservices.com> 3.2.0-11
- Update to fix turbatype error when using turba LDAP address search [SME: 5772]
* Sat Feb 13 2010 John H. Bennett III <bennettj@johnbennettservices.com> 3.2.0-10
- Update LDAP for changed scope [SME: 2939]
* Sat Feb 13 2010 John H. Bennett III <bennettj@johnbennettservices.com> 3.2.0-9
- Updated template files to reflect changes in Turba 2.3.3 [SME: 5778]
- Remove previous patch. Will add new partial patch for bug 2939
* Sat Feb 13 2010 Stephen Noble <support@dungog.net> 3.2.0-8
- Update LDAP for changed schema [SME: 2939]
* Tue Oct 13 2009 John H. Bennett III <bennettj@johnbennettservices.com> 3.2.0-7
- Updated template files to reflect changes in Turba 2.3.2 [SME: 5512]
* Wed Apr 8 2009 John H. Bennett III <bennettj@johnbennettservices.com> 3.2.0-6
- Remove redundant 49turba_migrate_contacts template fragments [SME: 5148]
* Sun Jan 4 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 3.2.0-5
- Fix date in previous changelog entry [SME: 4910]
* Sun Jan 4 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 3.2.0-4
- Fix turba.sql patch to prevent creating a .orig file [SME: 4910]
* Fri Jan 2 2009 John H. Bennett III <bennettj@johnbennettservices.com> 3.2.0-3
- Updated template files to reflect changes in Turba 2.3.1
* Sat Dec 06 2008 John H. Bennett III <bennettj@johnbennettservices.com> 3.2.0-2
- Updated template files to reflect changes in Turba 2.3 [SME: 4833]
* Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 3.2.0-1.sme
- Roll new stream to separate sme7/sme8 trees [SME: 4633]
* Fri Jul 11 2008 John H. Bennett III <bennettj@johnbennettservices.com> 2.2-3
- Patch to fix 49turba_migrate_contacts to not run on post-install
* Fri Jun 20 2008 John H. Bennett III <bennettj@johnbennettservices.com> 2.2-2
- Upgrade patch for Turba 2.2.1
* Sat Jun 7 2008 John H. Bennett III <bennettj@johnbennettservices.com> 2.2-1
- Initial production build
* Sat May 24 2008 John H. Bennett III <bennettj@johnbennettservices.com> 2.2-02
- Updated to include changes in Turba 2.2 RC4
- Re-rolled tarball
* Fri Apr 11 2008 John H. Bennett III <bennettj@johnbennettservices.com> 2.2-01
- Initial build
- Jump in package name to reflect new version of turba
%description
This package adds necessary templates and configuration items
so that Turba will work properly on SME Server
%prep
%setup
%build
perl createlinks
%install
rm -rf $RPM_BUILD_ROOT
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
rm -f %{name}-%{version}-filelist
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
echo "%doc COPYING" >> %{name}-%{version}-filelist
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}-%{version}-filelist
%defattr(-,root,root)

View File

@ -0,0 +1,7 @@
{
my $i2t = $DB->get('migrate-imp-to-turba');
if ($i2t)
{
$i2t->delete;
}
}

View File

@ -0,0 +1,111 @@
#!/usr/bin/perl -wT
#----------------------------------------------------------------------
# copyright (C) 2002 Mitel Networks Corporation
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Technical support for this program is available from Mitel Networks
# Please visit our web site www.mitel.com/sme/ for details.
#----------------------------------------------------------------------
# Derived from imp2turba.pl-txt contrib script from horde.org
# Modified for SME Server 5.5 by Mark Knox <markk@e-smith.com>
use strict;
use esmith::ConfigDB;
use DBI;
# Exit early if there is nothing to do
exit 0 unless (-f '/var/lib/mysql/horde/imp_addr.frm');
die("horde db must exist") unless ( -d "/var/lib/mysql/horde/");
die("turba db must exist") unless ( -f "/var/lib/mysql/horde/turba_objects.frm");
my $conf = esmith::ConfigDB->open() || die 'Unable to open config db';
# FIXME - what are these for?
$ENV{'PATH'} = '';
$ENV{'SHELL'} = '/bin/bash';
delete $ENV{'ENV'};
delete $ENV{'BASH_ENV'};
our $location = 'localhost';
our $port_num = '3306';
our $username = 'horde';
our $password = $conf->get_prop('horde', 'DbPassword') || 'horde';
our $IMP_DATABASE = 'horde';
our $IMP_TABLE = 'imp_addr';
our $TURBA_DATABASE = 'horde';
our $TURBA_TABLE = 'turba_objects';
our $domain = $conf->get('DomainName') || 'localhost';
unless ($domain eq "localhost")
{
$domain = $domain->value || "localhost";
}
our $dbi_options = {RaiseError => 1, ChopBlanks => 1, AutoCommit => 1};
my $db_imphandle = DBI->connect
("DBI:mysql:$IMP_DATABASE:$location:$port_num",
$username, $password, $dbi_options )
|| die ("Connection error: $DBI::errstr");
my $db_turbahandle = DBI->connect
("DBI:mysql:$TURBA_DATABASE",
$username, $password, $dbi_options )
|| die ("Connection error: $DBI::errstr");
my $imp_statement = $db_imphandle->prepare("SELECT * FROM $IMP_TABLE");
$imp_statement->execute();
my $turba_statement;
while (my ($owner, $address, $nickname, $fullname) =
$imp_statement->fetchrow_array())
{
my @chars = ( "A" .. "Z", "a" .. "z", 0 .. 9, qw(! @ $ % ^ & *) );
my $unique_key = join("", @chars[ map { rand @chars } ( 1 .. 31 ) ]);
# Remove the @domain.com part from the $owner, doesn't work in Turba
$owner =~ s/\@.*$//;
$owner .= "\@$domain";
# Quote the strings appropriately for the database
my $quoted_key = $db_imphandle->quote($unique_key);
my $quoted_owner = $db_imphandle->quote($owner);
my $quoted_fullname = $db_imphandle->quote($fullname);
my $quoted_address = $db_imphandle->quote($address);
my $quoted_nickname = $db_imphandle->quote($nickname);
$turba_statement = "INSERT INTO $TURBA_TABLE VALUES
($quoted_key, $quoted_owner, $quoted_fullname,
$quoted_nickname,$quoted_address, '','','','','','','','','','','')";
$turba_statement = $db_turbahandle->prepare($turba_statement)
|| die "prepare: $$turba_statement: $DBI::errstr";
$turba_statement->execute || die "execute: $$turba_statement: $DBI::errstr";
}
$imp_statement = "DROP TABLE $IMP_TABLE";
$imp_statement = $db_imphandle->prepare($imp_statement)
|| die "prepare: $$imp_statement: $DBI::errstr";
$imp_statement->execute || die "execute: $$imp_statement: $DBI::errstr";
$imp_statement->finish();
# turba_statement will be undef if the imp_addr table is empty, so we check
$turba_statement->finish() if $turba_statement;
$db_imphandle->disconnect;
$db_turbahandle->disconnect;

View File

@ -0,0 +1,598 @@
#!/usr/bin/perl -w
#----------------------------------------------------------------------
# copyright (C) 2002-2005 Mitel Networks Corporation
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Technical support for this program is available from Mitel Networks
# Please visit our web site www.mitel.com/sme/ for details.
#----------------------------------------------------------------------
use strict;
use DBI;
use esmith::ConfigDB;
use esmith::util;
# Exit early if there is nothing to do
die("horde db must exist") unless ( -d "/var/lib/mysql/horde/");
die("turba db must exist") unless ( -f "/var/lib/mysql/horde/turba_objects.frm");
# This is a translation of the script 'mysql_upgrade_1.1_to_1.2.sql
# that is safe to run multiple times, and which can be run on a 1.2
# installation without barfing.
my $conf = esmith::ConfigDB->open_ro
or die "Can't open configuration database: $!\n";
our $username = 'root';
our $password = esmith::util::LdapPassword();
our $TURBA_DATABASE = 'horde';
our $dbi_options = {RaiseError => 1, ChopBlanks => 1, AutoCommit => 1};
my $db_turbahandle = DBI->connect
("DBI:mysql:$TURBA_DATABASE",
$username, $password, $dbi_options )
|| die ("Connection error: $DBI::errstr");
#This section commented out for Turba 2.2 since on a new install this isn't needed
#and on a 6.x and 7.x install, this would have already been run. John H. Bennett III
# These are all safe to run multiple times
my @statements = (
"ALTER TABLE turba_shares CHANGE share_owner share_owner VARCHAR(255)",
"ALTER TABLE turba_shares CHANGE share_flags share_flags SMALLINT DEFAULT 0 NOT NULL",
"ALTER TABLE turba_shares CHANGE perm_creator perm_creator SMALLINT DEFAULT 0 NOT NULL",
"ALTER TABLE turba_shares CHANGE perm_default perm_default SMALLINT DEFAULT 0 NOT NULL",
"ALTER TABLE turba_shares CHANGE perm_guest perm_guest SMALLINT DEFAULT 0 NOT NULL",
"ALTER TABLE turba_shares_users CHANGE user_uid user_uid VARCHAR(255)",
"ALTER TABLE turba_shares_groups CHANGE group_uid group_uid VARCHAR(255)",
);
foreach my $statement (@statements)
{
$statement =
$db_turbahandle->prepare("$statement")
or die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
# We now need to create some columns, but we need to first check
# whether they exist already
my $sth = $db_turbahandle->prepare("show columns from turba_objects");
$sth->execute;
my $turba_objects = $sth->fetchall_hashref('Field');
my $sth1 = $db_turbahandle->prepare("show columns from turba_shares");
$sth1->execute;
my $turba_shares = $sth1->fetchall_hashref('Field');
my $sth2 = $db_turbahandle->prepare("show columns from turba_shares_groups");
$sth2->execute;
my $turba_shares_groups = $sth2->fetchall_hashref('Field');
my $sth3 = $db_turbahandle->prepare("show columns from turba_shares_users");
$sth3->execute;
my $turba_shares_users = $sth3->fetchall_hashref('Field');
#print "Field object_type is ",
# defined $turba_objects->{object_type} ? "already " : "un",
# "defined\n";
# We need to be careful about these as they will fail if the
# column exists, so we check the error.
unless (defined $turba_objects->{object_firstname})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_firstname ".
"VARCHAR(255)";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
unless (defined $turba_objects->{object_lastname})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_lastname ".
"VARCHAR(255)";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
my $statement1 =
"UPDATE turba_objects SET object_lastname = object_name";
$statement1 = $db_turbahandle->prepare($statement1) or
die "prepare: $$statement1: $DBI::errstr";
$statement1->execute or die "execute: $$statement1: $DBI::errstr";
}
unless (!defined $turba_objects->{object_name})
{
my $statement =
"ALTER TABLE turba_objects DROP COLUMN object_name";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
unless (defined $turba_objects->{object_middlenames})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_middlenames ".
"VARCHAR(255)";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
unless (defined $turba_objects->{object_nameprefix})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_nameprefix ".
"VARCHAR(255)";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
unless (defined $turba_objects->{object_namesuffix})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_namesuffix ".
"VARCHAR(32)";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
unless (defined $turba_objects->{object_phototype})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_phototype ".
"VARCHAR(10)";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
unless (defined $turba_objects->{object_bday})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_bday ".
"VARCHAR(10)";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
unless (defined $turba_objects->{object_spouse})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_spouse ".
"VARCHAR(255)";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
unless (defined $turba_objects->{object_anniversary})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_anniversary ".
"VARCHAR(10)";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
unless (defined $turba_objects->{object_children})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_children ".
"VARCHAR(255)";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
unless (defined $turba_objects->{object_homestreet})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_homestreet ".
"VARCHAR(255)";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
my $statement1 =
"UPDATE turba_objects SET object_homestreet = object_homeaddress";
$statement1 = $db_turbahandle->prepare($statement1) or
die "prepare: $$statement1: $DBI::errstr";
$statement1->execute or die "execute: $$statement1: $DBI::errstr";
}
unless (!defined $turba_objects->{object_homeaddress})
{
my $statement =
"ALTER TABLE turba_objects DROP COLUMN object_homeaddress";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
unless (defined $turba_objects->{object_homepob})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_homepob ".
"VARCHAR(10)";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
unless (defined $turba_objects->{object_homecity})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_homecity ".
"VARCHAR(255)";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
unless (defined $turba_objects->{object_homeprovince})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_homeprovince ".
"VARCHAR(255)";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
unless (defined $turba_objects->{object_homepostalcode})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_homepostalcode ".
"VARCHAR(255)";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
unless (defined $turba_objects->{object_homecountry})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_homecountry ".
"VARCHAR(255)";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
unless (defined $turba_objects->{object_workstreet})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_workstreet ".
"VARCHAR(255)";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
my $statement1 =
"UPDATE turba_objects SET object_workstreet = object_workaddress";
$statement1 = $db_turbahandle->prepare($statement1) or
die "prepare: $$statement1: $DBI::errstr";
$statement1->execute or die "execute: $$statement1: $DBI::errstr";
}
unless (!defined $turba_objects->{object_workaddress})
{
my $statement =
"ALTER TABLE turba_objects DROP COLUMN object_workaddress";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
unless (defined $turba_objects->{object_workpob})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_workpob ".
"VARCHAR(10)";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
unless (defined $turba_objects->{object_workcity})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_workcity ".
"VARCHAR(255)";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
unless (defined $turba_objects->{object_workprovince})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_workprovince ".
"VARCHAR(255)";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
unless (defined $turba_objects->{object_workpostalcode})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_workpostalcode ".
"VARCHAR(255)";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
unless (defined $turba_objects->{object_workcountry})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_workcountry ".
"VARCHAR(255)";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
unless (defined $turba_objects->{object_tz})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_tz ".
"VARCHAR(32)";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
unless (defined $turba_objects->{object_geo})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_geo ".
"VARCHAR(255)";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
unless (defined $turba_objects->{object_pager})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_pager ".
"VARCHAR(25)";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
unless (defined $turba_objects->{object_role})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_role ".
"VARCHAR(255)";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
unless (defined $turba_objects->{object_logotype})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_logotype ".
"VARCHAR(10)";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
unless (defined $turba_objects->{object_category})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_category ".
"VARCHAR(80)";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
unless (defined $turba_objects->{object_url})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_url ".
"VARCHAR(255)";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
unless (defined $turba_objects->{object_photo})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_photo BLOB";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
unless (defined $turba_objects->{object_logo})
{
my $statement =
"ALTER TABLE turba_objects ADD COLUMN object_logo BLOB";
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
# Create an index for owner_id if needed
unless ($turba_objects->{owner_id}->{Key})
{
my $statement = 'alter table turba_objects ' .
'add index turba_owner_idx (owner_id)';
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
# Create an index for object_email_id if needed
unless ($turba_objects->{object_email}->{Key})
{
my $statement = 'alter table turba_objects ' .
'add index turba_email_idx (object_email)';
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
# Create an index for object_firstname if needed
unless ($turba_objects->{object_firstname}->{Key})
{
my $statement = 'alter table turba_objects ' .
'add index turba_firstname_idx (object_firstname)';
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
# Create an index for owner_lastname needed
unless ($turba_objects->{object_lastname}->{Key})
{
my $statement = 'alter table turba_objects ' .
'add index turba_lastname_idx (object_lastname)';
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
# Create an index for share_name if needed
unless ($turba_shares->{share_name}->{Key})
{
my $statement = 'alter table turba_shares ' .
'add index turba_shares_share_name_idx (share_name)';
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
# Create an index for share_owner if needed
unless ($turba_shares->{share_owner}->{Key})
{
my $statement = 'alter table turba_shares ' .
'add index turba_shares_share_owner_idx (share_owner)';
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
# Create an index for perm_creator if needed
unless ($turba_shares->{perm_creator}->{Key})
{
my $statement = 'alter table turba_shares ' .
'add index turba_shares_perm_creator_idx (perm_creator)';
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
# Create an index for perm_default if needed
unless ($turba_shares->{perm_default}->{Key})
{
my $statement = 'alter table turba_shares ' .
'add index turba_shares_perm_default_idx (perm_default)';
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
# Create an index for perm_guest if needed
unless ($turba_shares->{perm_guest}->{Key})
{
my $statement = 'alter table turba_shares ' .
'add index turba_shares_perm_guest_idx (perm_guest)';
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
# Create an index for share_id if needed
unless ($turba_shares_groups->{share_id}->{Key})
{
my $statement = 'alter table turba_shares_groups ' .
'add index turba_shares_groups_share_id_idx (share_id)';
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
# Create an index for group_uid if needed
unless ($turba_shares_groups->{group_uid}->{Key})
{
my $statement = 'alter table turba_shares_groups ' .
'add index turba_shares_groups_group_uid_idx (group_uid)';
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
# Create an index for perm if needed
unless ($turba_shares_groups->{perm}->{Key})
{
my $statement = 'alter table turba_shares_groups ' .
'add index turba_shares_groups_perm_idx (perm)';
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
# Create an index for share_id if needed
unless ($turba_shares_users->{share_id}->{Key})
{
my $statement = 'alter table turba_shares_users ' .
'add index turba_shares_users_share_id_idx (share_id)';
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
# Create an index for user_uid if needed
unless ($turba_shares_users->{user_uid}->{Key})
{
my $statement = 'alter table turba_shares_users ' .
'add index turba_shares_users_user_uid_idx (user_uid)';
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}
# Create an index for perm if needed
unless ($turba_shares_users->{perm}->{Key})
{
my $statement = 'alter table turba_shares_users ' .
'add index turba_shares_users_perm_idx (perm)';
$statement = $db_turbahandle->prepare($statement) or
die "prepare: $$statement: $DBI::errstr";
$statement->execute or die "execute: $$statement: $DBI::errstr";
}

View File

View File

View File

View File

@ -0,0 +1 @@
PERMS=0544

View File

@ -0,0 +1,2 @@
PERMS=0640
GID="www"

View File

@ -0,0 +1,2 @@
PERMS=0640
GID="www"

View File

@ -0,0 +1,2 @@
PERMS=0640
GID="www"

View File

@ -0,0 +1,2 @@
PERMS=0640
GID="www"

View File

@ -0,0 +1,3 @@
#! /bin/sh
#test -f /var/lib/mysql/horde/turba_objects.frm && exit 0
exec mysql horde < /home/httpd/html/horde/smeserver/turba.sql

View File

@ -0,0 +1,2 @@
#! /bin/sh
exec /etc/e-smith/events/actions/turba_upgrade

View File

@ -0,0 +1,2 @@
#! /bin/sh
exec mysql < /home/httpd/html/horde/smeserver/turba_mysql_reset_addressbook_pref.sql

View File

@ -0,0 +1,3 @@
#! /bin/sh
test -f /var/lib/mysql/horde/imp_addr.frm && exit 0
exec /etc/e-smith/events/actions/migrate-imp-to-turba

View File

@ -0,0 +1,29 @@
{
my $status = $imp{status} || 'disabled';
if ($status eq 'enabled')
{
$OUT .= qq(
# IMP specific access configuration
<Directory /home/httpd/html/horde/turba/config>
order deny,allow
deny from all
</Directory>
<Directory /home/httpd/html/horde/turba/lib>
order deny,allow
deny from all
</Directory>
<Directory /home/httpd/html/horde/turba/locale>
order deny,allow
deny from all
</Directory>
<Directory /home/httpd/html/horde/turba/templates>
order deny,allow
deny from all
</Directory>
);
}
}

View File

@ -0,0 +1,5 @@
{
my $TurbaMenu = $turba{MenuArray} || "enabled"; return "" unless ($TurbaMenu eq "enabled");
$apps{turba} = 1;
$OUT = '';
}

View File

@ -0,0 +1,17 @@
// 210AppRegistryTurba
$this->applications['turba'] = array(
'fileroot' => dirname(__FILE__) . '/../turba',
'webroot' => $this->applications['horde']['webroot'] . '/turba',
'name' => _("Address Book"),
'status' => 'active',
'provides' => array('contacts', 'clients/getClientSource', 'clients/clientFields', 'clients/getClient', 'clients/getClients', 'clients/addClient', 'clients/updateClient', 'clients/deleteClient', 'clients/searchClients'),
'menu_parent' => 'organizing'
);
$this->applications['turba-menu'] = array(
'status' => 'block',
'app' => 'turba',
'blockname' => 'tree_menu',
'menu_parent' => 'turba',
);

View File

@ -0,0 +1,611 @@
/**
* Turba Attributes File.
*
* This file contains examples of attributes that Turba understands, and their
* types. It may be safely edited by hand. Use attributes.php.dist as a
* reference.
*
* The syntax of this array is as follows:<pre>
* label - The text that the user will see attached to this
* field.
* type - One of the following:
* - spacer - header
* - description - html
* - number - int
* - intlist - text
* - longtext - countedtext
* - address - file
* - boolean - link
* - email - emailconfirm
* - password - passwordconfirm
* - enum - multienum
* - radio - set
* - date - time
* - monthyear - monthdayyear
* - colorpicker - sorter
* - creditcard - invalid
* - stringlist - addresslink (requires Horde-3.2)
* required - Boolean whether this field is mandatory.
* readonly - Boolean whether this field is editable.
* desc - Any help text attached to the field.
* time_object_label - The text to describe the time object category.
* Only valid for monthdayyear types and removing this
* from a monthdayyear type will hide it from the
* listTimeObjects api.
* params - Any other parameters that need to be passed to the
* field. For a documentation of available field
* paramaters see
* http://wiki.horde.org/Doc/Dev/FormTypes.
* </pre>
*
* $Horde: turba/config/attributes.php.dist,v 1.36.6.18 2008-11-12 06:29:26 wrobel Exp $
*/
/* Personal stuff. */
$attributes['name'] = array(
'label' => _("Name"),
'type' => 'text',
'required' => true,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['firstname'] = array(
'label' => _("First Name"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['lastname'] = array(
'label' => _("Last Name"),
'type' => 'text',
'required' => true,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['middlenames'] = array(
'label' => _("Middle Names"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['namePrefix'] = array(
'label' => _("Name Prefixes"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 32, 'maxlength' => 32)
);
$attributes['nameSuffix'] = array(
'label' => _("Name Suffixes"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 32, 'maxlength' => 32)
);
$attributes['alias'] = array(
'label' => _("Alias"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 32)
);
$attributes['nickname'] = array(
'label' => _("Nickname"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 32, 'maxlength' => 32)
);
$attributes['birthday'] = array(
'label' => _("Birthday"),
'type' => 'monthdayyear',
'required' => false,
'params' => array('start_year' => 1900, 'end_year' => null, 'picker' => true, 'format_in' => '%Y-%m-%d', 'format_out' => $GLOBALS['prefs']->getValue('date_format')),
'time_object_label' => _("Birthdays"),
);
$attributes['anniversary'] = array(
'label' => _("Anniversary"),
'type' => 'monthdayyear',
'params' => array('start_year' => 1900, 'end_year' => null, 'picker' => true, 'format_in' => '%Y-%m-%d', 'format_out' => $GLOBALS['prefs']->getValue('date_format')),
'required' => false,
'time_object_label' => _("Anniversaries"),
);
$attributes['spouse'] = array(
'label' => _("Spouse"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['children'] = array(
'label' => _("Children"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['photo'] = array(
'label' => _("Photo"),
'type' => 'image',
'required' => false,
'params' => array('show_upload' => true, 'show_keeporig' => true, 'max_filesize' => null),
);
$attributes['phototype'] = array(
'label' => _("Photo MIME Type"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
/* Locations, addresses. */
$attributes['homeAddress'] = array(
'label' => _("Home Address"),
'type' => 'address',
'required' => false,
'params' => array('rows' => 3, 'cols' => 40)
);
$attributes['homeStreet'] = array(
'label' => _("Home Street Address"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['homePOBox'] = array(
'label' => _("Home Post Office Box"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 10, 'maxlength' => 10)
);
$attributes['homeCity'] = array(
'label' => _("Home City"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['homeProvince'] = array(
'label' => _("Home State/Province"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['homePostalCode'] = array(
'label' => _("Home Postal Code"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 10, 'maxlength' => 10)
);
$attributes['homeCountry'] = array(
'label' => _("Home Country"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
/* If using Horde 3.2 or higher, you can display a drop down with a country
* list. */
// $attributes['homeCountry'] = array(
// 'label' => _("Home Country"),
// 'type' => 'country',
// 'required' => false,
// 'params' => array('prompt' => true)
// );
$attributes['workAddress'] = array(
'label' => _("Work Address"),
'type' => 'address',
'required' => false,
'params' => array('rows' => 3, 'cols' => 40)
);
$attributes['workStreet'] = array(
'label' => _("Work Street Address"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['workPOBox'] = array(
'label' => _("Work Post Office Box"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 10, 'maxlength' => 10)
);
$attributes['workCity'] = array(
'label' => _("Work City"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['workProvince'] = array(
'label' => _("Work State/Province"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['workPostalCode'] = array(
'label' => _("Work Postal Code"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 10, 'maxlength' => 10)
);
$attributes['workCountry'] = array(
'label' => _("Work Country"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
/* If using Horde 3.2 or higher, you can display a drop down with a country
* list. */
// $attributes['workCountry'] = array(
// 'label' => _("Work Country"),
// 'type' => 'country',
// 'required' => false,
// 'params' => array('prompt' => true)
// );
$attributes['companyAddress'] = array(
'label' => _("Company Address"),
'type' => 'address',
'required' => false,
'params' => array('rows' => 3, 'cols' => 40)
);
$attributes['timezone'] = array(
'label' => _("Time Zone"),
'type' => 'enum',
'params' => array('values' => $GLOBALS['tz'], 'prompt' => true),
'required' => false
);
/* Communication. */
$attributes['email'] = array(
'label' => _("Email"),
'type' => 'email',
'required' => false,
'params' => array('allow_multi' => true, 'strip_domain' => false, 'link_compose' => true)
);
$attributes['emails'] = array(
'label' => _("Emails"),
'type' => 'email',
'required' => false,
'params' => array('allow_multi' => true, 'strip_domain' => false, 'link_compose' => true)
);
$attributes['homePhone'] = array(
'label' => _("Home Phone"),
'type' => 'phone',
'required' => false
);
$attributes['workPhone'] = array(
'label' => _("Work Phone"),
'type' => 'phone',
'required' => false
);
$attributes['cellPhone'] = array(
'label' => _("Mobile Phone"),
'type' => 'cellphone',
'required' => false
);
$attributes['fax'] = array(
'label' => _("Fax"),
'type' => 'phone',
'required' => false
);
$attributes['pager'] = array(
'label' => _("Pager"),
'type' => 'phone',
'required' => false
);
/* Job, company, organization. */
$attributes['title'] = array(
'label' => _("Job Title"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['role'] = array(
'label' => _("Occupation"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['businessCategory'] = array(
'label' => _("Business Category"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['company'] = array(
'label' => _("Company"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['department'] = array(
'label' => _("Department"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['office'] = array(
'label' => _("Office"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['logo'] = array(
'label' => _("Logo"),
'type' => 'image',
'required' => false,
'params' => array('show_upload' => true, 'show_keeporig' => true, 'max_filesize' => null),
);
$attributes['logotype'] = array(
'label' => _("Logo MIME Type"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
/* Other */
$attributes['notes'] = array(
'label' => _("Notes"),
'type' => 'longtext',
'required' => false,
'params' => array('rows' => 3, 'cols' => 40)
);
$attributes['website'] = array(
'label' => _("Website URL"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['freebusyUrl'] = array(
'label' => _("Freebusy URL"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['pgpPublicKey'] = array(
'label' => _("PGP Public Key"),
'type' => 'longtext',
'required' => false,
'params' => array('rows' => 3, 'cols' => 40)
);
$attributes['smimePublicKey'] = array(
'label' => _("S/MIME Public Certificate"),
'type' => 'longtext',
'required' => false,
'params' => array('rows' => 3, 'cols' => 40)
);
/* If using Horde 3.3 or later, you can enable the following attributes to
* enable pretty rendering of PGP and S/MIME keys. */
// $attributes['pgpPublicKey'] = array(
// 'label' => _("PGP Public Key"),
// 'type' => 'pgp',
// 'required' => false,
// 'params' => array('gpg' => '/usr/bin/gpg', 'temp_dir' => Horde::getTempDir(), 'rows' => 3, 'cols' => 40)
// );
// $attributes['smimePublicKey'] = array(
// 'label' => _("S/MIME Public Certificate"),
// 'type' => 'smime',
// 'required' => false,
// 'params' => array('temp_dir' => Horde::getTempDir(), 'rows' => 3, 'cols' => 40)
// );
/* This attribute uses Horde's categories and is an example how to use an enum
* field. Don't forget to add a 'map' entry to config/sources.php if you want
* to use this attribute. */
require_once 'Horde/Prefs/CategoryManager.php';
require_once 'Horde/Array.php';
$cManager = new Prefs_CategoryManager();
$attributes['category'] = array(
'label' => _("Category"),
'type' => 'enum',
'params' => array(
'values' => array_merge(array('' => _("Unfiled")), Horde_Array::valuesToKeys($cManager->get())),
'prompt' => false),
'required' => false
);
/* If using Horde 3.2 or later, you can use the following category attribute
* instead which shows category colors and allows to add new categories. */
// $attributes['category'] = array(
// 'label' => _("Category"),
// 'type' => 'category',
// 'params' => array(),
// 'required' => false
// );
/* Additional attributes supported by Kolab */
$attributes['kolabHomeServer'] = array(
'label' => _("Kolab Home Server"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['initials'] = array(
'label' => _("Initials"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['instantMessenger'] = array(
'label' => _("Instant Messenger"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['manager'] = array(
'label' => _("Manager"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['assistant'] = array(
'label' => _("Assistant"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['gender'] = array(
'label' => _("Gender"),
'type' => 'enum',
'required' => false,
'params' => array('values' => array(_("male"), _("female")), 'prompt' => true),
);
$attributes['language'] = array(
'label' => _("Language"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['latitude'] = array(
'label' => _("Latitude"),
'type' => 'number',
'required' => false,
);
$attributes['longitude'] = array(
'label' => _("Longitude"),
'type' => 'number',
'required' => false,
);
/* Additional attributes supported by some SyncML clients */
$attributes['workEmail'] = array(
'label' => _("Work Email"),
'type' => 'email',
'required' => false,
'params' => array('allow_multi' => false, 'strip_domain' => false, 'link_compose' => true)
);
$attributes['homeEmail'] = array(
'label' => _("Home Email"),
'type' => 'email',
'required' => false,
'params' => array('allow_multi' => false, 'strip_domain' => false, 'link_compose' => true)
);
$attributes['phone'] = array(
'label' => _("Common Phone"),
'type' => 'phone',
'required' => false
);
$attributes['workFax'] = array(
'label' => _("Work Fax"),
'type' => 'phone',
'required' => false
);
$attributes['homeFax'] = array(
'label' => _("Home Fax"),
'type' => 'phone',
'required' => false
);
$attributes['workCellPhone'] = array(
'label' => _("Work Mobile Phone"),
'type' => 'cellphone',
'required' => false
);
$attributes['homeCellPhone'] = array(
'label' => _("Home Mobile Phone"),
'type' => 'cellphone',
'required' => false
);
$attributes['videoCall'] = array(
'label' => _("Common Video Call"),
'type' => 'phone',
'required' => false
);
$attributes['workVideoCall'] = array(
'label' => _("Work Video Call"),
'type' => 'phone',
'required' => false
);
$attributes['homeVideoCall'] = array(
'label' => _("Home Video Call"),
'type' => 'phone',
'required' => false
);
$attributes['voip'] = array(
'label' => _("VoIP"),
'type' => 'phone',
'required' => false
);
$attributes['sip'] = array(
'label' => _("SIP"),
'type' => 'email',
'required' => false,
'params' => array('allow_multi' => true, 'strip_domain' => false, 'link_compose' => true)
);
$attributes['ptt'] = array(
'label' => _("PTT"),
'type' => 'phone',
'required' => false
);
$attributes['commonExtended'] = array(
'label' => _("Common Address Extended"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['commonStreet'] = array(
'label' => _("Common Street"),
'type' => 'address',
'required' => false,
'params' => array('rows' => 3, 'cols' => 40)
);
$attributes['commonPOBox'] = array(
'label' => _("Common Post Office Box"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 10, 'maxlength' => 10)
);
$attributes['commonCity'] = array(
'label' => _("Common City"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['commonProvince'] = array(
'label' => _("Common State/Province"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['commonPostalCode'] = array(
'label' => _("Common Postal Code"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 10, 'maxlength' => 10)
);
$attributes['commonCountry'] = array(
'label' => _("Common Country"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['workWebsite'] = array(
'label' => _("Work Website URL"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['workExtended'] = array(
'label' => _("Work Address Extended"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['workLatitude'] = array(
'label' => _("Work Latitude"),
'type' => 'number',
'required' => false,
);
$attributes['workLongitude'] = array(
'label' => _("Work Longitude"),
'type' => 'number',
'required' => false,
);
$attributes['homeWebsite'] = array(
'label' => _("Home Website URL"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['homeExtended'] = array(
'label' => _("Home Address Extended"),
'type' => 'text',
'required' => false,
'params' => array('regex' => '', 'size' => 40, 'maxlength' => 255)
);
$attributes['homeLatitude'] = array(
'label' => _("Home Latitude"),
'type' => 'number',
'required' => false,
);
$attributes['homeLongitude'] = array(
'label' => _("Home Longitude"),
'type' => 'number',
'required' => false,
);

View File

@ -0,0 +1,13 @@
/* SME Server attributes */
$attributes['groupdescription'] = array(
'label' => _("Group Description"),
'type' => 'text',
'required' => false
);
$attributes['groupmembers'] = array(
'label' => _("Group Members"),
'type' => 'text',
'required' => false
);

View File

@ -0,0 +1,3 @@
/* CONFIG START. DO NOT CHANGE ANYTHING IN OR AFTER THIS LINE. */
// $Horde: turba/config/conf.xml,v 1.6.2.6 2008/06/25 15:52:54 jan Exp $

View File

@ -0,0 +1,7 @@
// 100Conf
$conf['menu']['import_export'] = true;
$conf['client']['addressbook'] = 'localsql';
$conf['shares']['source'] = 'localsql';
$conf['comments']['allow'] = true;
$conf['documents']['type'] = 'horde';

View File

@ -0,0 +1,3 @@
// 120MenuSettings
include '/home/httpd/html/horde/conf.menu.apps.php';

View File

@ -0,0 +1,2 @@
// 999Footer
/* CONFIG END. DO NOT CHANGE ANYTHING IN OR BEFORE THIS LINE. */

View File

@ -0,0 +1,7 @@
//00header
/**
* $Horde: turba/config/prefs.php.dist,v 1.28.10.10 2008/07/10 22:52:41 jan Exp $
*
* See horde/config/prefs.php for documentation on the structure of this file.
*/

View File

@ -0,0 +1,8 @@
//100displayoptions
$prefGroups['addressbooks'] = array(
'column' => _("Display Options"),
'label' => _("Address Books"),
'desc' => _("Choose which address books to use."),
'members' => array('default_dir', 'addressbookselect', 'sync_books'),
);

View File

@ -0,0 +1,8 @@
//110columnoptions
$prefGroups['columns'] = array(
'column' => _("Display Options"),
'label' => _("Column Options"),
'desc' => _("Select which fields to display in the address lists."),
'members' => array('columnselect'),
);

View File

@ -0,0 +1,8 @@
//120display
$prefGroups['display'] = array(
'column' => _("Display Options"),
'label' => _("Display"),
'desc' => _("Select view to display by default and paging options."),
'members' => array('initial_page', 'maxpage', 'perpage'),
);

View File

@ -0,0 +1,8 @@
//130format
$prefGroups['format'] = array(
'column' => _("Display Options"),
'label' => _("Name Format"),
'desc' => _("Select which format to display names."),
'members' => array('name_format'),
);

View File

@ -0,0 +1,7 @@
//160addressbookselect
// Address Book selection widget
$_prefs['addressbookselect'] = array(
'locked' => false,
'type' => 'special',
);

View File

@ -0,0 +1,14 @@
//170addressbooks
// Address books to be displayed in the address book selection widget
// and in the Browse menu item. The address book name is stored using
// the source key from sources.php (e.g. "localsql"). Separate
// entries with "\n" , e. g. 'value' => "localsql\nlocalldap" (the
// double quotes are REQUIRED). If 'value' is empty (''), all address
// books that the user has permissions to will be listed.
$_prefs['addressbooks'] = array(
'value' => '',
'locked' => false,
'shared' => false,
'type' => 'implicit',
);

View File

@ -0,0 +1,10 @@
//180syncbooks
// Address books use for synchronization
$_prefs['sync_books'] = array(
'value' => 'a:0:\{\}',
'locked' => false,
'shared' => false,
'type' => 'multienum',
'desc' => _("Select the address books that should be used for synchronization with external devices:"),
);

View File

@ -0,0 +1,7 @@
//185columnselect
// columns selection widget
$_prefs['columnselect'] = array(
'locked' => false,
'type' => 'special',
);

View File

@ -0,0 +1,13 @@
//190columns
// Columns to be displayed in Browse and Search results, with entries
// for the columns displayed for each address book. Separate address
// book stanzas with \n and columns with \t. The "name" column is
// currently always displayed first and so cannot be modified here.
// Double quotes MUST be used as in the example.
$_prefs['columns'] = array(
'value' => "netcenter\temail\nverisign\temail\nlocalsql\temail",
'locked' => false,
'shared' => false,
'type' => 'implicit',
);

View File

@ -0,0 +1,10 @@
//200sortorder
// user preferred sorting column
// serialized array of hashes containing 'field' and 'ascending' keys
$_prefs['sortorder'] = array(
'value' => 'a:1:\{i:0;a:2:\{s:5:"field";s:8:"lastname";s:9:"ascending";b:1;\}\}',
'locked' => false,
'shared' => false,
'type' => 'implicit',
);

View File

@ -0,0 +1,10 @@
//220maxpage
// number of maximum pages and items per page
$_prefs['maxpage'] = array(
'value' => 10,
'locked' => false,
'shared' => false,
'type' => 'number',
'desc' => _("Maximum number of pages"),
);

View File

@ -0,0 +1,9 @@
//230perpage
$_prefs['perpage'] = array(
'value' => 20,
'locked' => false,
'shared' => false,
'type' => 'number',
'desc' => _("Number of items per page"),
);

View File

@ -0,0 +1,12 @@
//240initialpage
// the page to display. Either 'browse.php' or 'search.php'
$_prefs['initial_page'] = array(
'value' => 'search.php',
'locked' => false,
'shared' => false,
'type' => 'enum',
'desc' => _("View to display by default:"),
'enum' => array('browse.php' => _("Address Book Listing"),
'search.php' => _("Search")),
);

View File

@ -0,0 +1,13 @@
//250nameformat
// the format to display names. Either 'last_first' or 'first_last'
$_prefs['name_format'] = array(
'value' => 'last_first',
'locked' => false,
'shared' => false,
'type' => 'enum',
'desc' => _("Select the format used to display names:"),
'enum' => array('last_first' => _("\"Lastname, Firstname\" (ie. Doe, John)"),
'first_last' => _("\"Firstname Lastname\" (ie. John Doe)"),
'none' => _("no formatting")),
);

View File

@ -0,0 +1,11 @@
//260defaultdir
// Default directory
$_prefs['default_dir'] = array(
//'value' => '',
'value' => 'localsql',
'locked' => false,
'shared' => false,
'type' => 'select',
'desc' => _("This will be the default address book when adding or importing contacts."),
);

View File

@ -0,0 +1,9 @@
//265prefbooks
// preference for holding any preferences-based addressbooks.
$_prefs['prefbooks'] = array(
'value' => '',
'locked' => false,
'shared' => false,
'type' => 'implicit',
);

View File

@ -0,0 +1,9 @@
//270turbamaintenancetasks
// Used to keep track of which turba maintenance tasks have been run.
$_prefs['turba_maintenance_tasks'] = array(
'value' => 'a:0:\{\}',
'locked' => false,
'shared' => false,
'type' => 'implicit'
);

View File

@ -0,0 +1,10 @@
//275owncontact
// Personal contact.
$_prefs['own_contact'] = array(
// The format is 'source_name;contact_id'.
'value' => '',
'locked' => false,
'shared' => false,
'type' => 'implicit'
);

View File

@ -0,0 +1,6 @@
{
use esmith::util;
$basedn = esmith::util::ldapBase ($DomainName);
$OUT = '';
}

View File

@ -0,0 +1,4 @@
//00header
/**
* $Horde: turba/config/sources.php.dist,v 1.97.6.41 2009/08/05 21:06:10 jan Exp $
*/

View File

@ -0,0 +1,132 @@
//40LocalSQL
/**
* A local address book in an SQL database. This implements a private
* per-user address book. Sharing of this source with other users may be
* accomplished by enabling Horde_Share for this source by setting
* 'use_shares' => true.
*
* Be sure to create a turba_objects table in your Horde database from the
* schema in turba/scripts/db/turba.sql if you use this source.
*/
$cfgSources['localsql'] = array(
'title' => _("My Address Book"),
'type' => 'sql',
// The default connection details are pulled from the Horde-wide SQL
// connection configuration.
'params' => array_merge($GLOBALS['conf']['sql'], array('table' => 'turba_objects')),
// Using two tables as datasource.
// 'params' => array_merge($GLOBALS['conf']['sql'],
// array('table' => 'leaddetails LEFT JOIN leadaddress ON leaddetails.leadid = leadaddress.leadaddressid',
// 'filter' => 'leaddetails.converted = 0')),
'map' => array(
'__key' => 'object_id',
'__owner' => 'owner_id',
'__type' => 'object_type',
'__members' => 'object_members',
'__uid' => 'object_uid',
'firstname' => 'object_firstname',
'lastname' => 'object_lastname',
'middlenames' => 'object_middlenames',
'namePrefix' => 'object_nameprefix',
'nameSuffix' => 'object_namesuffix',
'name' => array('fields' => array('namePrefix', 'firstname',
'middlenames', 'lastname',
'nameSuffix'),
'format' => '%s %s %s %s %s',
'parse' => array(
array('fields' => array('firstname', 'middlenames',
'lastname'),
'format' => '%s %s %s'),
array('fields' => array('firstname', 'lastname'),
'format' => '%s %s'))),
// This is a shorter version of a "name" composite field which only
// consists of the first name and last name.
// 'name' => array('fields' => array('firstname', 'lastname'),
// 'format' => '%s %s'),
'alias' => 'object_alias',
'birthday' => 'object_bday',
'spouse' => 'object_spouse',
'anniversary' => 'object_anniversary',
'children' => 'object_children',
// The photo field requires at least Horde 3.3 and a matching type
// field.
'photo' => 'object_photo',
'phototype' => 'object_phototype',
'homeStreet' => 'object_homestreet',
'homePOBox' => 'object_homepob',
'homeCity' => 'object_homecity',
'homeProvince' => 'object_homeprovince',
'homePostalCode' => 'object_homepostalcode',
'homeCountry' => 'object_homecountry',
// This is an example composite field for addresses, so you can display
// the various map links. If you use this, be sure to add 'homeAddress'
// to the 'tabs' parameter below.
'homeAddress' => array('fields' => array('homeStreet', 'homeCity',
'homeProvince',
'homePostalCode'),
'format' => "%s \n %s, %s %s"),
'workStreet' => 'object_workstreet',
'workPOBox' => 'object_workpob',
'workCity' => 'object_workcity',
'workProvince' => 'object_workprovince',
'workPostalCode' => 'object_workpostalcode',
'workCountry' => 'object_workcountry',
'workAddress' => array('fields' => array('workStreet', 'workCity',
'workProvince',
'workPostalCode'),
'format' => "%s \n %s, %s %s"),
'timezone' => 'object_tz',
'email' => 'object_email',
'homePhone' => 'object_homephone',
'workPhone' => 'object_workphone',
'cellPhone' => 'object_cellphone',
'fax' => 'object_fax',
'pager' => 'object_pager',
'title' => 'object_title',
'role' => 'object_role',
'company' => 'object_company',
// The logo field requires at least Horde 3.3 and a matching type
// field.
'logo' => 'object_logo',
'logotype' => 'object_logotype',
'category' => 'object_category',
'notes' => 'object_notes',
'website' => 'object_url',
'freebusyUrl' => 'object_freebusyurl',
'pgpPublicKey' => 'object_pgppublickey',
'smimePublicKey' => 'object_smimepublickey',
),
'tabs' => array(
_("Personal") => array('firstname', 'lastname', 'middlenames',
'namePrefix', 'nameSuffix', 'name', 'alias',
'birthday', 'spouse', 'anniversary', 'children' , 'photo'),
_("Location") => array('homeStreet', 'homePOBox', 'homeCity',
'homeProvince', 'homePostalCode', 'homeCountry',
'homeAddress', 'workStreet', 'workPOBox', 'workCity',
'workProvince', 'workPostalCode', 'workCountry', 'workAddress',
'timezone'),
_("Communications") => array('email', 'homePhone', 'workPhone',
'cellPhone', 'fax', 'pager'),
_("Organization") => array('title', 'role', 'company', 'logo'),
_("Other") => array('category', 'notes', 'website', 'freebusyUrl',
'pgpPublicKey', 'smimePublicKey'),
),
'search' => array(
'name',
'email'
),
'strict' => array(
'object_id',
'owner_id',
'object_type',
),
'export' => true,
'browse' => true,
{
my $sab = ($horde{SharedAddressBooks} || 'disabled') eq 'enabled' ? 'true' : 'false';
$OUT = " 'use_shares' => $sab,";
}
'list_name_field' => 'lastname',
'alternative_name' => 'company',
);

View File

@ -0,0 +1,136 @@
//50LocalLDAP
/**
* A local address book in an LDAP directory. This implements a public
* (shared) address book.
*
* To store distribution lists in the LDAP directory, you'll need to include
* horde/scripts/ldap/horde.schema in your LDAP configuration.
*
* To store freebusy information in the LDAP directory, you'll need to include
* turba/scripts/ldap/rfc2739.schema in your LDAP configuration.
*/
$cfgSources['localldap'] = array(
'title' => _("Local LDAP"),
'type' => 'ldap',
'params' => array(
'server' => 'localhost',
'port' => 389,
'tls' => false,
{
$OUT .= qq( 'root' => '$basedn',);
}
// 'bind_dn' => 'cn=admin,ou=users,dc=example,dc=com',
// // For Active Directory:
// // 'bind_dn' => 'username@example.com',
// 'bind_password' => '********',
'sizelimit' => 200,
// // For Active Directory:
// // 'sizelimit' => 0,
'dn' => array('cn'),
'objectclass' => array('top',
'person',
'organizationalPerson',
{
if (($horde{freebusy} || "disabled") eq "enabled") {
$OUT =<<HERE;
'inetOrgPerson',
'calEntry'),
HERE
} else {
$OUT =<<HERE;
'inetOrgPerson'),
HERE
}
}
// Add 'turbaContact' to this array if using
// 'turbaType' attribute below, and 'calEntry'
// // if using 'freebusyUrl'.
// // For Active Directory:
// // 'objectclass' => array('organizationalPerson',
// // 'user',
// // 'group',
// // 'contact'),
'scope' => 'sub',
// // For Active Directory:
// // 'scope' => 'sub',
'charset' => 'UTF-8',
// // Consult the LDAP schema to verify that all required attributes for
// // an entry are set and add them if needed.
'checkrequired' => false,
// // Value used to fill in missing required attributes.
'checkrequired_string' => ' ',
// // Check LDAP schema for valid syntax. If this is false an address
// // field is assumed to have postalAddress syntax; otherwise the schema
// // is consulted for the syntax to use.
// 'checksyntax' => false,
'version' => 3,
'filter' => '&(!(mail=admin@{$DomainName}))',
//
// // For Active Directory you probably want to also set the following
// // parameters:
// // 'deref' => LDAP_DEREF_ALWAYS,
// // 'filter' => '&(SAMAccountName=*)(mail=*)',
// // 'referrals' => 0,
),
'map' => array(
'__key' => 'dn',
// // Remove this mapping if using Active Directory server:
// '__uid' => 'uid',
'__uid' => 'uid',
// // From horde.schema. Make sure you have 'turbaContact' objectClass
// // included above:
// '__type' => 'turbaType',
// '__members' => 'turbaMembers',
//
'name' => 'cn',
'email' => 'mail',
'homePhone' => 'homephone',
'workPhone' => 'telephonenumber',
'cellPhone' => 'mobiletelephonenumber',
'homeAddress' => 'street',
//
// // From rfc2739.schema:
{
if (($horde{freebusy} || "disabled") eq "enabled") {
$OUT =<<HERE;
'freebusyUrl\' => 'calFBURL',
HERE
} else {
$OUT =<<HERE;
#freebusy is currently not enabled. To enable - config setprop horde freebusy enabled
HERE
}
}
//
// // For Active Directory servers:
// // 'name' => 'displayname',
// // 'title' => 'title',
// // 'cellPhone' => 'mobile',
// // 'department' => 'department',
// // 'company' => 'company',
),
'search' => array(
'name',
'email',
'homePhone',
'workPhone',
'cellPhone',
'homeAddress'
),
'strict' => array(
'dn',
),
'approximate' => array(
'cn',
),
// // For Active Directory servers:
// // 'approximate' => array(
// // 'displayname',
// // 'samaccountname',
// // ),
'export' => true,
'browse' => true,
);

View File

@ -0,0 +1,53 @@
//60LocalLDAPGroups
/**
* A local address book in an LDAP directory. This implements a public
* (shared) address book.
*
* To store distribution lists in the LDAP directory, you'll need to include
* horde/scripts/ldap/horde.schema in your LDAP configuration.
*
* To store freebusy information in the LDAP directory, you'll need to include
* turba/scripts/ldap/rfc2739.schema in your LDAP configuration.
*/
$cfgSources['localldapgroups'] = array(
'title' => _("Local LDAP Groups"),
'type' => 'ldap',
'params' => array(
'server' => 'localhost',
'port' => 389,
'tls' => false,
{
$OUT .= qq( 'root' => '$basedn',);
}
'sizelimit' => 200,
'dn' => array('cn'),
'objectclass' => array('posixGroup'),
'scope' => 'sub',
'charset' => 'UTF-8',
'checkrequired' => false,
'checkrequired_string' => ' ',
'version' => 3,
),
'map' => array(
'__key' => 'dn',
'__uid' => 'uid',
'name' => 'cn',
'email' => 'mail',
'groupdescription' => 'description',
'groupmembers' => 'memberUid',
),
'search' => array(
'displayName',
'groupdescription',
'groupmembers',
),
'strict' => array(
'dn',
),
'approximate' => array(
'cn',
),
'export' => true,
'browse' => true,
);

View File

@ -0,0 +1,583 @@
# $Horde: horde/scripts/ldap/horde.schema,v 1.20.10.6 2007/12/20 15:03:02 jan Exp $
#
# The offical horde OID assigned by IANA is 13040.
#
# This schema depends on:
# - core.schema
#
#
# Horde attribute branch 1.3.6.1.4.1.13040.2.1.*
# IMP attribute branch 1.3.6.1.4.1.13040.3.1.*
# Turba attribute branch 1.3.6.1.4.1.13040.4.1.*
# Kronolith attribute branch 1.3.6.1.4.1.13040.5.1.*
# Nag attribute branch 1.3.6.1.4.1.13040.6.1.*
# Gollem attribute branch 1.3.6.1.4.1.13040.7.1.*
# Chora attribute branch 1.3.6.1.4.1.13040.8.1.*
# Mnemo attribute branch 1.3.6.1.4.1.13040.9.1.*
# Troll attribute branch 1.3.6.1.4.1.13040.10.1.*
# Klutz attribute branch 1.3.6.1.4.1.13040.11.1.*
# Jonah attribute branch 1.3.6.1.4.1.13040.12.1.*
# Hermes attribute branch 1.3.6.1.4.1.13040.13.1.*
# Juno attribute branch 1.3.6.1.4.1.13040.14.1.*
# Trean attribute branch 1.3.6.1.4.1.13040.15.1.*
# Whups attribute branch 1.3.6.1.4.1.13040.16.1.*
# Ingo attribute branch 1.3.6.1.4.1.13040.17.1.*
# Ansel attribute branch 1.3.6.1.4.1.13040.18.1.*
# Genie attribute branch 1.3.6.1.4.1.13040.19.1.*
# Scry attribute branch 1.3.6.1.4.1.13040.20.1.*
# Wicked attribute branch 1.3.6.1.4.1.13040.21.1.*
# Agora attribute branch 1.3.6.1.4.1.13040.22.1.*
# Goops attribute branch 1.3.6.1.4.1.13040.24.1.*
# Merk attribute branch 1.3.6.1.4.1.13040.25.1.*
# Mimp attribute branch 1.3.6.1.4.1.13040.26.1.*
# Mottle attribute branch 1.3.6.1.4.1.13040.27.1.*
# Nic attribute branch 1.3.6.1.4.1.13040.28.1.*
# Occam attribute branch 1.3.6.1.4.1.13040.29.1.*
# Odin attribute branch 1.3.6.1.4.1.13040.30.1.*
# Rakim attribute branch 1.3.6.1.4.1.13040.31.1.*
# Sesha attribute branch 1.3.6.1.4.1.13040.32.1.*
# Swoosh attribute branch 1.3.6.1.4.1.13040.33.1.*
# Thor attribute branch 1.3.6.1.4.1.13040.34.1.*
# Ulaform attribute branch 1.3.6.1.4.1.13040.35.1.*
# Volos attribute branch 1.3.6.1.4.1.13040.36.1.*
# Jeta attribute branch 1.3.6.1.4.1.13040.37.1.*
#
# Horde objectclass branch 1.3.6.1.4.1.13040.2.2.*
# IMP objectclass branch 1.3.6.1.4.1.13040.3.2.*
# Turba objectclass branch 1.3.6.1.4.1.13040.4.2.*
# Kronolith objectclass branch 1.3.6.1.4.1.13040.5.2.*
# NAG objectclass branch 1.3.6.1.4.1.13040.6.2.*
# Gollem objectclass branch 1.3.6.1.4.1.13040.7.2.*
# Chora objectclass branch 1.3.6.1.4.1.13040.8.2.*
# Mnemo objectclass branch 1.3.6.1.4.1.13040.9.2.*
# Troll objectclass branch 1.3.6.1.4.1.13040.10.2.*
# Klutz objectclass branch 1.3.6.1.4.1.13040.11.2.*
# Jonah objectclass branch 1.3.6.1.4.1.13040.12.2.*
# Hermes objectclass branch 1.3.6.1.4.1.13040.13.2.*
# Juno objectclass branch 1.3.6.1.4.1.13040.14.2.*
# Trean objectclass branch 1.3.6.1.4.1.13040.15.2.*
# Whups objectclass branch 1.3.6.1.4.1.13040.16.2.*
# Ingo objectclass branch 1.3.6.1.4.1.13040.17.2.*
# Ansel objectclass branch 1.3.6.1.4.1.13040.18.2.*
# Genie objectclass branch 1.3.6.1.4.1.13040.19.2.*
# Scry objectclass branch 1.3.6.1.4.1.13040.20.2.*
# Wicked objectclass branch 1.3.6.1.4.1.13040.21.2.*
# Agora objectclass branch 1.3.6.1.4.1.13040.22.2.*
# Goops objectclass branch 1.3.6.1.4.1.13040.24.2.*
# Merk objectclass branch 1.3.6.1.4.1.13040.25.2.*
# Mimp objectclass branch 1.3.6.1.4.1.13040.26.2.*
# Mottle objectclass branch 1.3.6.1.4.1.13040.27.2.*
# Nic objectclass branch 1.3.6.1.4.1.13040.28.2.*
# Occam objectclass branch 1.3.6.1.4.1.13040.29.2.*
# Odin objectclass branch 1.3.6.1.4.1.13040.30.2.*
# Rakim objectclass branch 1.3.6.1.4.1.13040.31.2.*
# Sesha objectclass branch 1.3.6.1.4.1.13040.32.2.*
# Swoosh objectclass branch 1.3.6.1.4.1.13040.33.2.*
# Thor objectclass branch 1.3.6.1.4.1.13040.34.2.*
# Ulaform objectclass branch 1.3.6.1.4.1.13040.35.2.*
# Volos objectclass branch 1.3.6.1.4.1.13040.36.2.*
# Jeta objectclass branch 1.3.6.1.4.1.13040.37.2.*
#
# Horde attribute branch 1.3.6.1.4.1.13040.2.1.*
#
attributetype ( 1.3.6.1.4.1.13040.2.1.1
NAME 'hordePrefs'
DESC 'Horde Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# IMP attribute branch 1.3.6.1.4.1.13040.3.1.*
#
attributetype ( 1.3.6.1.4.1.13040.3.1.1
NAME 'impPrefs'
DESC 'IMP Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Turba attribute branch 1.3.6.1.4.1.13040.4.1.*
#
attributetype ( 1.3.6.1.4.1.13040.4.1.1
NAME 'turbaPrefs'
DESC 'Turba Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
attributetype ( 1.3.6.1.4.1.13040.4.1.2
NAME 'turbaType'
DESC 'Turba Object Type: Contact/List'
EQUALITY caseIgnoreIA5Match
SUBSTR caseIgnoreIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{8} )
attributetype ( 1.3.6.1.4.1.13040.4.1.3
NAME 'turbaMembers'
DESC 'Encoded members of a Turba list'
SUP name )
attributetype ( 1.3.6.1.4.1.13040.4.1.4
NAME 'turbaPGPPublicKey'
DESC 'PGP/GPG Public Key'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{4000} )
#
# Kronolith attribute branch 1.3.6.1.4.1.13040.5.1.*
#
attributetype ( 1.3.6.1.4.1.13040.5.1.1
NAME 'kronolithPrefs'
DESC 'Kronolith Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Nag attribute branch 1.3.6.1.4.1.13040.6.1.*
#
attributetype ( 1.3.6.1.4.1.13040.6.1.1
NAME 'nagPrefs'
DESC 'Nag Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Gollem attribute branch 1.3.6.1.4.1.13040.7.1.*
#
attributetype ( 1.3.6.1.4.1.13040.7.1.1
NAME 'gollemPrefs'
DESC 'Gollem Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Chora attribute branch 1.3.6.1.4.1.13040.8.1.*
#
attributetype ( 1.3.6.1.4.1.13040.8.1.1
NAME 'choraPrefs'
DESC 'Chora Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Mnemo attribute branch 1.3.6.1.4.1.13040.9.1.*
#
attributetype ( 1.3.6.1.4.1.13040.9.1.1
NAME 'mnemoPrefs'
DESC 'Mnemo Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Troll attribute branch 1.3.6.1.4.1.13040.10.1.*
#
attributetype ( 1.3.6.1.4.1.13040.10.1.1
NAME 'trollPrefs'
DESC 'Troll Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Klutz attribute branch 1.3.6.1.4.1.13040.11.1.*
#
attributetype ( 1.3.6.1.4.1.13040.11.1.1
NAME 'klutzPrefs'
DESC 'Klutz Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Jonah attribute branch 1.3.6.1.4.1.13040.12.1.*
#
attributetype ( 1.3.6.1.4.1.13040.12.1.1
NAME 'jonahPrefs'
DESC 'Jonah Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Hermes attribute branch 1.3.6.1.4.1.13040.13.1.*
#
attributetype ( 1.3.6.1.4.1.13040.13.1.1
NAME 'hermesPrefs'
DESC 'Hermes Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Juno attribute branch 1.3.6.1.4.1.13040.14.1.*
#
attributetype ( 1.3.6.1.4.1.13040.14.1.1
NAME 'junoPrefs'
DESC 'Juno Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Trean attribute branch 1.3.6.1.4.1.13040.15.1.*
#
attributetype ( 1.3.6.1.4.1.13040.15.1.1
NAME 'treanPrefs'
DESC 'Trean Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Whups attribute branch 1.3.6.1.4.1.13040.16.1.*
#
attributetype ( 1.3.6.1.4.1.13040.16.1.1
NAME 'whupsPrefs'
DESC 'Whups Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Ingo attribute branch 1.3.6.1.4.1.13040.17.1.*
#
attributetype ( 1.3.6.1.4.1.13040.17.1.1
NAME 'ingoPrefs'
DESC 'Ingo Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Ansel attribute branch 1.3.6.1.4.1.13040.18.1.*
#
attributetype ( 1.3.6.1.4.1.13040.18.1.1
NAME 'anselPrefs'
DESC 'Ansel Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Genie attribute branch 1.3.6.1.4.1.13040.19.1.*
#
attributetype ( 1.3.6.1.4.1.13040.19.1.1
NAME 'geniePrefs'
DESC 'Genie Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Scry attribute branch 1.3.6.1.4.1.13040.20.1.*
#
attributetype ( 1.3.6.1.4.1.13040.20.1.1
NAME 'scryPrefs'
DESC 'Scry Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Wicked attribute branch 1.3.6.1.4.1.13040.21.1.*
#
attributetype ( 1.3.6.1.4.1.13040.21.1.1
NAME 'wickedPrefs'
DESC 'Wicked Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Agora attribute branch 1.3.6.1.4.1.13040.22.1.*
#
attributetype ( 1.3.6.1.4.1.13040.22.1.1
NAME 'agoraPrefs'
DESC 'Agora Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Goops attribute branch 1.3.6.1.4.1.13040.24.1.*
#
attributetype ( 1.3.6.1.4.1.13040.24.1.1
NAME 'goopsPrefs'
DESC 'Goops Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Merk attribute branch 1.3.6.1.4.1.13040.25.1.*
#
attributetype ( 1.3.6.1.4.1.13040.25.1.1
NAME 'merkPrefs'
DESC 'Merk Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Mimp attribute branch 1.3.6.1.4.1.13040.26.1.*
#
attributetype ( 1.3.6.1.4.1.13040.26.1.1
NAME 'mimpPrefs'
DESC 'MIMP Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Mottle attribute branch 1.3.6.1.4.1.13040.27.1.*
#
attributetype ( 1.3.6.1.4.1.13040.27.1.1
NAME 'mottlePrefs'
DESC 'Mottle Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Nic attribute branch 1.3.6.1.4.1.13040.28.1.*
#
attributetype ( 1.3.6.1.4.1.13040.28.1.1
NAME 'nicPrefs'
DESC 'NIC Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Occam attribute branch 1.3.6.1.4.1.13040.29.1.*
#
attributetype ( 1.3.6.1.4.1.13040.29.1.1
NAME 'occamPrefs'
DESC 'Occam Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Odin attribute branch 1.3.6.1.4.1.13040.30.1.*
#
attributetype ( 1.3.6.1.4.1.13040.30.1.1
NAME 'odinPrefs'
DESC 'Odin Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Rakim attribute branch 1.3.6.1.4.1.13040.31.1.*
#
attributetype ( 1.3.6.1.4.1.13040.31.1.1
NAME 'rakimPrefs'
DESC 'Rakim Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Sesha attribute branch 1.3.6.1.4.1.13040.32.1.*
#
attributetype ( 1.3.6.1.4.1.13040.32.1.1
NAME 'seshaPrefs'
DESC 'Sesha Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Swoosh attribute branch 1.3.6.1.4.1.13040.33.1.*
#
attributetype ( 1.3.6.1.4.1.13040.33.1.1
NAME 'swooshPrefs'
DESC 'Swoosh Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Thor attribute branch 1.3.6.1.4.1.13040.34.1.*
#
attributetype ( 1.3.6.1.4.1.13040.34.1.1
NAME 'thorPrefs'
DESC 'Thor Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Ulaform attribute branch 1.3.6.1.4.1.13040.35.1.*
#
attributetype ( 1.3.6.1.4.1.13040.35.1.1
NAME 'ulaformPrefs'
DESC 'Ulaform Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Volos attribute branch 1.3.6.1.4.1.13040.36.1.*
#
attributetype ( 1.3.6.1.4.1.13040.36.1.1
NAME 'volosPrefs'
DESC 'Volos Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Jeta attribute branch 1.3.6.1.4.1.13040.37.1.*
#
attributetype ( 1.3.6.1.4.1.13040.37.1.1
NAME 'jetaPrefs'
DESC 'Jeta Preferences'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} )
#
# Horde objectclass branch 1.3.6.1.4.1.13040.2.2.*
#
objectclass ( 1.3.6.1.4.1.13040.2.2.1
NAME 'hordePerson'
DESC 'Horde Preferences'
SUP top
AUXILIARY
MAY ( mail $ hordePrefs $ impPrefs $ turbaPrefs $
gollemPrefs $ kronolithPrefs $ mnemoPrefs $
trollPrefs $ nagPrefs $ klutzPrefs $
jonahPrefs $ hermesPrefs $ junoPrefs $
treanPrefs $ whupsPrefs $ ingoPrefs $
geniePrefs $ scryPrefs $ anselPrefs $
wickedPrefs $ choraPrefs $ agoraPrefs $
goopsPrefs $ merkPrefs $ volosPrefs $
mimpPrefs $ mottlePrefs $ nicPrefs $
occamPrefs $ odinPrefs $ rakimPrefs $
seshaPrefs $ swooshPrefs $ thorPrefs $
ulaformPrefs
) )
objectclass ( 1.3.6.1.4.1.13040.2.2.2
NAME 'hordeGroup'
DESC 'Horde Group'
SUP top
AUXILIARY
MAY ( mail ) )
#
# IMP objectclass branch 1.3.6.1.4.1.13040.3.2.*
#
# Turba objectclass branch 1.3.6.1.4.1.13040.4.2.*
objectclass ( 1.3.6.1.4.1.13040.4.2.1
NAME 'turbaContact'
DESC 'Turba Contact'
SUP top
AUXILIARY
MAY ( turbaType $ turbaMembers $ calFBURL )
)
#
# Kronolith objectclass branch 1.3.6.1.4.1.13040.5.2.*
#
#
# Nag objectclass branch 1.3.6.1.4.1.13040.6.2.*
#
#
# Gollem objectclass branch 1.3.6.1.4.1.13040.7.2.*
#
#
# Chora objectclass branch 1.3.6.1.4.1.13040.8.2.*
#
#
# Mnemo objectclass branch 1.3.6.1.4.1.13040.9.2.*
#
#
# Troll objectclass branch 1.3.6.1.4.1.13040.10.2.*
#
#
# Klutz objectclass branch 1.3.6.1.4.1.13040.11.2.*
#
#
# Jonah objectclass branch 1.3.6.1.4.1.13040.12.2.*
#
#
# Hermes objectclass branch 1.3.6.1.4.1.13040.13.2.*
#
#
# Juno objectclass branch 1.3.6.1.4.1.13040.14.2.*
#
#
# Trean objectclass branch 1.3.6.1.4.1.13040.15.2.*
#
#
# Whups objectclass branch 1.3.6.1.4.1.13040.16.2.*
#
#
# Ingo objectclass branch 1.3.6.1.4.1.13040.17.2.*
#
#
# Ansel objectclass branch 1.3.6.1.4.1.13040.18.2.*
#
#
# Genie objectclass branch 1.3.6.1.4.1.13040.19.2.*
#
#
# Scry objectclass branch 1.3.6.1.4.1.13040.20.2.*
#
#
# Wicked objectclass branch 1.3.6.1.4.1.13040.21.2.*
#
#
# Agora objectclass branch 1.3.6.1.4.1.13040.22.2.*
#
#
# Goops objectclass branch 1.3.6.1.4.1.13040.24.2.*
#
#
# Merk objectclass branch 1.3.6.1.4.1.13040.25.2.*
#
#
# Mimp objectclass branch 1.3.6.1.4.1.13040.26.2.*
#
#
# Mottle objectclass branch 1.3.6.1.4.1.13040.27.2.*
#
#
# Nic objectclass branch 1.3.6.1.4.1.13040.28.2.*
#
#
# Occam objectclass branch 1.3.6.1.4.1.13040.29.2.*
#
#
# Odin objectclass branch 1.3.6.1.4.1.13040.30.2.*
#
#
# Rakim objectclass branch 1.3.6.1.4.1.13040.31.2.*
#
#
# Sesha objectclass branch 1.3.6.1.4.1.13040.32.2.*
#
#
# Swoosh objectclass branch 1.3.6.1.4.1.13040.33.2.*
#
#
# Thor objectclass branch 1.3.6.1.4.1.13040.34.2.*
#
#
# Ulaform objectclass branch 1.3.6.1.4.1.13040.35.2.*
#
#
# Volos objectclass branch 1.3.6.1.4.1.13040.36.2.*
#
#
# Jeta objectclass branch 1.3.6.1.4.1.13040.37.2.*
#

0
root/etc/rc.d/rc7.d/.gitignore vendored Normal file
View File

View File

@ -0,0 +1,77 @@
-- $Horde: turba/scripts/sql/turba.sql,v 1.1.2.9 2009-10-20 21:44:34 jan Exp $
CREATE TABLE IF NOT EXISTS turba_objects (
object_id VARCHAR(32) NOT NULL,
owner_id VARCHAR(255) NOT NULL,
object_type VARCHAR(255) DEFAULT 'Object' NOT NULL,
object_uid VARCHAR(255),
object_members BLOB,
object_firstname VARCHAR(255),
object_lastname VARCHAR(255),
object_middlenames VARCHAR(255),
object_nameprefix VARCHAR(32),
object_namesuffix VARCHAR(32),
object_alias VARCHAR(32),
object_photo BLOB,
object_phototype VARCHAR(10),
object_bday VARCHAR(10),
object_homestreet VARCHAR(255),
object_homepob VARCHAR(10),
object_homecity VARCHAR(255),
object_homeprovince VARCHAR(255),
object_homepostalcode VARCHAR(10),
object_homecountry VARCHAR(255),
object_workstreet VARCHAR(255),
object_workpob VARCHAR(10),
object_workcity VARCHAR(255),
object_workprovince VARCHAR(255),
object_workpostalcode VARCHAR(10),
object_workcountry VARCHAR(255),
object_tz VARCHAR(32),
object_geo VARCHAR(255),
object_email VARCHAR(255),
object_homephone VARCHAR(25),
object_workphone VARCHAR(25),
object_cellphone VARCHAR(25),
object_fax VARCHAR(25),
object_pager VARCHAR(25),
object_title VARCHAR(255),
object_role VARCHAR(255),
object_logo BLOB,
object_logotype VARCHAR(10),
object_company VARCHAR(255),
object_category VARCHAR(80),
object_notes TEXT,
object_url VARCHAR(255),
object_freebusyurl VARCHAR(255),
object_pgppublickey TEXT,
object_smimepublickey TEXT,
PRIMARY KEY(object_id)
);
CREATE TABLE IF NOT EXISTS turba_shares (
share_id INT NOT NULL,
share_name VARCHAR(255) NOT NULL,
share_owner VARCHAR(255) NOT NULL,
share_flags SMALLINT DEFAULT 0 NOT NULL,
perm_creator SMALLINT DEFAULT 0 NOT NULL,
perm_default SMALLINT DEFAULT 0 NOT NULL,
perm_guest SMALLINT DEFAULT 0 NOT NULL,
attribute_name VARCHAR(255) NOT NULL,
attribute_desc VARCHAR(255),
attribute_params TEXT,
PRIMARY KEY (share_id)
);
CREATE TABLE IF NOT EXISTS turba_shares_groups (
share_id INT NOT NULL,
group_uid VARCHAR(255) NOT NULL,
perm SMALLINT NOT NULL
);
CREATE TABLE IF NOT EXISTS turba_shares_users (
share_id INT NOT NULL,
user_uid VARCHAR(255) NOT NULL,
perm SMALLINT NOT NULL
);

View File

@ -0,0 +1,5 @@
CONNECT horde;
update horde_prefs set pref_value = '' where pref_scope = 'turba' and pref_name= 'addressbooks' and pref_value = 'localsql\nlocalldap';
FLUSH PRIVILEGES;