move conf and add ldap

tags/0.1.1
Daniel Berteaud 13 years ago
parent 526c4b5b3f
commit 8bded30158
  1. 10
      createlinks
  2. 4
      root/etc/e-smith/templates/usr/share/sogosync/backend/searchldap/config.php/10Server
  3. 13
      root/etc/e-smith/templates/usr/share/sogosync/backend/searchldap/config.php/20base
  4. 14
      root/etc/e-smith/templates/usr/share/sogosync/backend/searchldap/config.php/30Map
  5. 0
      root/etc/e-smith/templates/usr/share/sogosync/config.php/10TimeZone
  6. 0
      root/etc/e-smith/templates/usr/share/sogosync/config.php/20BasePath
  7. 0
      root/etc/e-smith/templates/usr/share/sogosync/config.php/30Options
  8. 0
      root/etc/e-smith/templates/usr/share/sogosync/config.php/40Backend
  9. 0
      root/etc/e-smith/templates/usr/share/sogosync/config.php/45Backend10Mapi
  10. 0
      root/etc/e-smith/templates/usr/share/sogosync/config.php/45Backend20Imap
  11. 0
      root/etc/e-smith/templates/usr/share/sogosync/config.php/45Backend30Maildir
  12. 0
      root/etc/e-smith/templates/usr/share/sogosync/config.php/45Backend40Vcard
  13. 0
      root/etc/e-smith/templates/usr/share/sogosync/config.php/45Backend50SearchProvider
  14. 0
      root/etc/e-smith/templates/usr/share/sogosync/config.php/45Backend60Caldav
  15. 0
      root/etc/e-smith/templates/usr/share/sogosync/config.php/45Backend70Carddav
  16. 2
      smeserver-sogosync.spec

@ -2,6 +2,10 @@
use esmith::Build::CreateLinks qw(:all);
templates2events("/etc/sogosync/config.php", qw(webapps-update bootstrap-console-save email-update));
safe_symlink("/etc/e-smith/templates-default/template-begin-php", "root/etc/e-smith/templates/etc/sogosync/config.php/template-begin");
safe_symlink("/etc/e-smith/templates-default/template-end-php", "root/etc/e-smith/templates/etc/sogosync/config.php/template-end");
templates2events("/usr/share/sogosync/config.php", qw(webapps-update bootstrap-console-save email-update));
templates2events("/usr/share/sogosync/backend/searchldap/config.php", qw(webapps-update bootstrap-console-save email-update));
safe_symlink("/etc/e-smith/templates-default/template-begin-php", "root/etc/e-smith/templates/usr/share/sogosync/config.php/template-begin");
safe_symlink("/etc/e-smith/templates-default/template-end-php", "root/etc/e-smith/templates/usr/share/sogosync/config.php/template-end");
safe_symlink("/etc/e-smith/templates-default/template-begin-php", "root/etc/e-smith/templates/usr/share/sogosync/backend/searchldap/config.php/template-begin");
safe_symlink("/etc/e-smith/templates-default/template-end-php", "root/etc/e-smith/templates/usr/share/sogosync/backend/searchldap/config.php/template-end");

@ -0,0 +1,4 @@
define("LDAP_HOST", "ldap://127.0.0.1/");
define("LDAP_PORT", "389");
define("ANONYMOUS_BIND", true);

@ -0,0 +1,13 @@
{
use esmith::util;
my $c = esmith::ConfigDB->open_ro;
my $domain = $c->get('DomainName')->value;
my $basedn = esmith::util::ldapBase($domain);
$OUT .=<<"EOF";
define("LDAP_SEARCH_BASE", "ou=Users,$basedn");
define("LDAP_SEARCH_FILTER", "(|(cn=*SEARCHVALUE*)(mail=*SEARCHVALUE*))");
EOF
}

@ -0,0 +1,14 @@
global $ldap_field_map;
$ldap_field_map = array(
SYNC_GAL_DISPLAYNAME => 'cn',
SYNC_GAL_PHONE => 'telephonenumber',
SYNC_GAL_OFFICE => 'l',
SYNC_GAL_TITLE => 'title',
SYNC_GAL_COMPANY => 'o',
SYNC_GAL_ALIAS => 'uid',
SYNC_GAL_FIRSTNAME => 'givenname',
SYNC_GAL_LASTNAME => 'sn',
SYNC_GAL_HOMEPHONE => 'extensionnumber',
SYNC_GAL_MOBILEPHONE => 'mobile',
SYNC_GAL_EMAILADDRESS => 'mail',
);

@ -1,6 +1,6 @@
Name: smeserver-sogosync
Version: 0.0.1
Release: 0.beta1%{?dist}
Release: 0.beta2%{?dist}
Summary: SME Server integration for sogosync
Group: Application/System

Loading…
Cancel
Save