Hi,

Find in attached file my modifications. Do a compare file to understand changes.

Hope this help

Le 29/04/2010 21:50, Ryan Miguel a écrit :
Guillaume,

I just tried changing the script to...
"cn=otrsagent,*cn*=users,dc=domain,dc=org"

instead of...
"cn=otrsagent,*ou*=users,dc=domain,dc=org"

as you suggested but it still didn't work. I have attached my full
config.pm file and sync-ldap2db script. Perhaps I am skipping over
something?

Is there a setting where I have to specify that I want to use the local
database for customer users and agents?
Or that I want to have the LDAP synced to the local DB (in the config.pm
or agent config frontend)?

Thanks,

Ryan




______________________________________________________________________

This email has been scanned by the Rebekah Children's Services Email Security 
System.

**** Confidentiality Notice *****

The information contained in this e-mail, and any attachment, is private and 
confidential and is the property of Rebekah Children's Services.  The 
information is intended only for the use of the intended recipient.  If you are 
not the intended recipient, you are hereby notified that any disclosure, 
copying, distribution, or taking of any action in reliance on the contents of 
the information is strictly prohibited.  If you have received this e-mail in 
error, please immediately notify the sender and destroy all copies of the 
original message.

All reasonable precautions have been taken to ensure no viruses are present in 
this e-mail.  We do not accept responsibility for any loss or damage arising 
from the use of this e-mail or attachments.  We recommend that you subject 
these to your virus checking procedures prior to use.
______________________________________________________________________


---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
http://www.otrs.com/en/support/enterprise-subscription/

--
Guillaume REHM
Centre de Ressources Informatiques
Responsable Sécurité du Système d'Information (RSSI)

Bibliothèque Nationale et Universitaire de Strasbourg
5 rue du Maréchal Joffre
BP 51029
67070 Strasbourg

tél: 03 88 25 28 23
fax: 03 88 25 28 03
mail: [email protected]
web: http://www.bnu.fr

# --
# Kernel/Config.pm - Config file for OTRS kernel
# Copyright (C) 2001-2009 OTRS AG, http://otrs.org/
# --
# $Id: Config.pm.dist,v 1.21 2009/02/16 12:01:43 tr Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --
#  Note:
#
#  -->> OTRS does have a lot of config settings. For more settings
#       (Notifications, Ticket::ViewAccelerator, Ticket::NumberGenerator,
#       LDAP, PostMaster, Session, Preferences, ...) see
#       Kernel/Config/Defaults.pm and copy your wanted lines into "this"
#       config file. This file will not be changed on update!
#
# --

package Kernel::Config;

sub Load {
    my $Self = shift;
    # ---------------------------------------------------- #
    # ---------------------------------------------------- #
    #                                                      #
    #         Start of your own config options!!!          #
    #                                                      #
    # ---------------------------------------------------- #
    # ---------------------------------------------------- #

    # ---------------------------------------------------- #
    # database settings                                    #
    # ---------------------------------------------------- #
    # DatabaseHost
    # (The database host.)
    $Self->{'DatabaseHost'} = 'localhost';
    # Database
    # (The database name.)
    $Self->{'Database'} = 'otrs';
    # DatabaseUser
    # (The database user.)
    $Self->{'DatabaseUser'} = 'otrs';
    # DatabasePw
    # (The password of database user. You also can use bin/CryptPassword.pl
    # for crypted passwords.)
    $Self->{'DatabasePw'} = 'hot';
    # DatabaseDSN
    # (The database DSN for MySQL ==> more: "man DBD::mysql")
    $Self->{DatabaseDSN} = 
"DBI:mysql:database=$Self->{Database};host=$Self->{DatabaseHost};";

    # (The database DSN for PostgreSQL ==> more: "man DBD::Pg")
    # if you want to use a local socket connection
#    $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};";
    # if you want to use a tcpip connection
#    $Self->{DatabaseDSN} = 
"DBI:Pg:dbname=$Self->{Database};host=$Self->{DatabaseHost};";

    # ---------------------------------------------------- #
    # fs root directory
    # ---------------------------------------------------- #
    $Self->{Home} = 'C:/PROGRA~1/OTRS/OTRS';

    # ---------------------------------------------------- #
    # insert your own config settings "here"               #
    # config settings taken from Kernel/Config/Defaults.pm #
    # ---------------------------------------------------- #
    # $Self->{SessionUseCookie} = 0;
    # $Self->{'CheckMXRecord'} = 1;

    # ---------------------------------------------------- #

    # ---------------------------------------------------- #
    # data inserted by installer                           #
    # ---------------------------------------------------- #

    $Self->{LogModule}          = 'Kernel::System::Log::File';
    $Self->{'LogModule::LogFile'} = 'C:/PROGRA~1/OTRS/OTRS/var/log/otrs.log';
    $Self->{SpellChecker}       = '0';
    # $DIBI$
    $Self->{'SystemID'} = 10;
    $Self->{'SecureMode'} = 0;
    $Self->{'Organization'} = 'Rebekah Childrens Services';
    $Self->{'LogModule'} = 'Kernel::System::Log::File';
    $Self->{'FQDN'} = 'helpdesk.rcskids.org';
    $Self->{'DefaultLanguage'} = 'en';
    $Self->{'AdminEmail'} = '[email protected]';
    $Self->{'DefaultCharset'} = 'utf-8';

######################################################################
#--------------------------------my stuff----------------------------#
######################################################################

#Enable LDAP authentication for Customers / Users
  $Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
  $Self->{'Customer::AuthModule::LDAP::Host'} = 'dc-gilroy-2.rcskids.org';
  $Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'cn=users,dc=rcskids,dc=org';
  $Self->{'Customer::AuthModule::LDAP::UID'} = 'sAMAccountName';
  $Self->{'Customer::AuthModule::LDAP::SearchUserDN'} = 
'cn=otrsagent,cn=users,dc=exploitation,dc=local';
  $Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = 'password';

#CustomerUser
#(customer user database backend and settings)
    $Self->{CustomerUser} = {
      Module => 'Kernel::System::CustomerUser::LDAP',
      Params => {
      Host => 'dc-gilroy-2.rcskids.org',
      BaseDN => 'CN=staff,DC=rcskids,DC=org', #???? Why do you haven't the same 
params like above ?? cn=users,dc=rcskids,dc=org ???
      SSCOPE => 'sub',
      UserDN =>'cn=otrsagent,cn=users,dc=exploitation,dc=local',
      UserPw => 'password',
    },
# customer unique id
    CustomerKey => 'sAMAccountName',
    CustomerID => 'mail',
    CustomerUserListFields => ['sAMAccountName', 'mail'],
    CustomerUserSearchFields => ['sAMAccountName','givenname','sn' ],
    CustomerUserSearchPrefix => '*',
    CustomerUserSearchSuffix => '*',
    CustomerUserSearchListLimit => 250,
    CustomerUserPostMasterSearchFields => ['mail', 'givenname', 'sn'],
    CustomerUserNameFields => ['cn', 'sn'],
    Map => [
# var,frontend,storage,shown,required,storage-type, http-link, readonly 
      [ 'UserFirstname', 'Firstname', 'givenname', 1, 1, 'var', '',0 ],
      [ 'UserLastname', 'Lastname', 'sn', 1, 1, 'var', '',0],
      [ 'UserLogin', 'Login', 'sAMAccountName', 1, 1, 'var', '',0],
      [ 'UserEmail', 'Email', 'mail', 1, 1, 'var', '',0],
      [ 'UserCustomerID', 'CustomerID', 'mail', 0, 1, 'var', '',0],
      #[ 'UserPhone', 'Phone', 'telephonenumber', 1, 0, 'var', '',0],
    ],
  };

# SendmailModule
$Self->{"SendmailModule"} = 'Kernel::System::Email::SMTP';
$Self->{"SendmailModule::Host"} = 'neo.rcskids.org';
$Self->{"SendmailModule::AuthUser"} = '[email protected]';
$Self->{"SendmailModule::AuthPassword"} = 'password';






    # ---------------------------------------------------- #
    # ---------------------------------------------------- #
    #                                                      #
    #           End of your own config options!!!          #
    #                                                      #
    # ---------------------------------------------------- #
    # ---------------------------------------------------- #
}

# ---------------------------------------------------- #
# needed system stuff (don't edit this)                #
# ---------------------------------------------------- #
use strict;
use warnings;

use vars qw(@ISA $VERSION);
use Kernel::Config::Defaults;
push (@ISA, 'Kernel::Config::Defaults');

use vars qw(@ISA $VERSION);
$VERSION = qw($Revision: 1.21 $)[1];

# -----------------------------------------------------#

1;
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
http://www.otrs.com/en/support/enterprise-subscription/

Reply via email to