move conf and add ldap
This commit is contained in:
parent
526c4b5b3f
commit
8bded30158
10
createlinks
10
createlinks
|
@ -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…
Reference in New Issue