Current Path : /var/www/html/clients/wiki.e-nk.ru/data/cache/0/ |
Current File : /var/www/html/clients/wiki.e-nk.ru/data/cache/0/033b8dc6dd7991f210618a2ddf1910cb.i |
a:6:{i:0;a:3:{i:0;s:14:"document_start";i:1;a:0:{}i:2;i:0;}i:1;a:3:{i:0;s:6:"header";i:1;a:3:{i:0;s:41:"Связка OTRS 3.3 и Active Directory";i:1;i:3;i:2;i:1;}i:2;i:1;}i:2;a:3:{i:0;s:12:"section_open";i:1;a:1:{i:0;i:3;}i:2;i:1;}i:3;a:3:{i:0;s:4:"code";i:1;a:3:{i:0;s:6953:" package Kernel::Config; use strict; use warnings; use utf8; sub Load { my $Self = shift; # ---------------------------------------------------- # # database settings # # ---------------------------------------------------- # # The database host $Self->{DatabaseHost} = '127.0.0.1'; # The database name $Self->{Database} = 'otrs'; # The database user $Self->{DatabaseUser} = 'otrs'; # The password of database user. You also can use bin/otrs.CryptPassword.pl # for crypted passwords $Self->{DatabasePw} = ',r9,7t4_chEtCVM'; $Self->{SecureMode}=1; $Self->{"Package::Timeout"}=120; $Self->{'SystemID'}=35; $Self->{'SessionName'}='OTRSAgentInterface'; ### MARKER ### # The database DSN for MySQL ==> more: "perldoc DBD::mysql" $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};host=$Self->{DatabaseHost};"; # The database DSN for PostgreSQL ==> more: "perldoc DBD::Pg" # if you want to use a local socket connection # $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};"; # if you want to use a TCP/IP connection # $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};host=$Self->{DatabaseHost};"; # if you have PostgresSQL 8.1 or earlier, activate the legacy driver with this line: # $Self->{DatabasePostgresqlBefore82} = 1; # The database DSN for Microsoft SQL Server - only supported if OTRS is # installed on Windows as well # $Self->{DatabaseDSN} = "DBI:ODBC:driver={SQL Server};Database=$Self->{Database};Server=$Self->{DatabaseHost},1433"; # The database DSN for Oracle ==> more: "perldoc DBD::oracle" # $ENV{ORACLE_HOME} = '/u01/app/oracle/product/10.2.0/client_1'; # $ENV{NLS_DATE_FORMAT} = 'YYYY-MM-DD HH24:MI:SS'; # $ENV{NLS_LANG} = "american_america.utf8"; # $Self->{DatabaseDSN} = "DBI:Oracle:sid=OTRS;host=$Self->{DatabaseHost};port=1522;"; # ---------------------------------------------------- # # fs root directory # ---------------------------------------------------- # $Self->{Home} = '/opt/otrs'; $Self->{'DefaultCharset'} = 'UTF-8'; # ---------------------------------------------------- # # insert your own config settings "here" # # config settings taken from Kernel/Config/Defaults.pm # # ---------------------------------------------------- # # $Self->{SessionUseCookie} = 0; # $Self->{CheckMXRecord} = 0; # ---------------------------------------------------- # # ---------------------------------------------------- # # data inserted by installer # # ---------------------------------------------------- # # $DIBI$ $Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP'; $Self->{'AuthModule::LDAP::Host'} = 'adns2.prettl.loc'; $Self->{'AuthModule::LDAP::BaseDN'} = 'dc=prettl, dc=loc'; $Self->{'AuthModule::LDAP::UID'} = 'sAMAccountName'; $Self->{'AuthModule::LDAP::SearchUserDN'} = 'CN=OTRS System,OU=Отдел ИТ,OU=Nizhnekamsk,DC=prettl,DC=loc'; $Self->{'AuthModule::LDAP::SearchUserPw'} = 'tia18ciler'; # $Self->{'AuthModule::LDAP::UserAttr'} = 'userPrincipalName'; # for non ldap posixGroups objectclass (with full user dn) $Self->{'AuthModule::LDAP::GroupDN'} = 'CN=it,OU=Groups,DC=prettl,DC=loc'; $Self->{'AuthModule::LDAP::AccessAttr'} = 'member'; $Self->{'AuthModule::LDAP::UserAttr'} = 'DN'; $Self->{'AuthModule::LDAP::AlwaysFilter'} = '(objectclass=user)'; # параметры соединения, чаще всего их даже не требуется указывать $Self->{'AuthModule::LDAP::Params'} = { port => 389, timeout => 120, async => 0, version => 3, }; # Enable LDAP Authentication Sync for Agent # $Self->{'AuthSyncModule'} = 'Kernel::System::Auth::Sync::LDAP'; $Self->{'AuthSyncModule::LDAP::Host'} = 'ldap://adns2.prettl.loc/'; $Self->{'AuthSyncModule::LDAP::BaseDN'} = 'DC=prettl,DC=loc'; $Self->{'AuthSyncModule::LDAP::UID'} = 'sAMAccountName'; $Self->{'AuthSyncModule::LDAP::AccessAttr'} = 'member'; $Self->{'AuthSyncModule::LDAP::UserAttr'} = 'DN'; $Self->{'AuthSyncModule::LDAP::SearchUserDN'} = 'CN=OTRS System,OU=Отдел ИТ,OU=Nizhnekamsk,DC=prettl,DC=loc'; $Self->{'AuthSyncModule::LDAP::SearchUserPw'} = 'tia18ciler'; # Enable Agent Mapping from LDAP to DB # $Self->{'AuthSyncModule::LDAP::UserSyncMap'} = { UserFirstname => 'givenName', UserLastname => 'sn', UserEmail => 'mail', }; $Self->{'AuthSyncModule::LDAP::UserSyncInitialGroups'} = [ 'users', ]; $Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP'; $Self->{'Customer::AuthModule::LDAP::Host'} ='adns2.prettl.loc'; $Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'dc=prettl, dc=loc'; $Self->{'Customer::AuthModule::LDAP::UID'} = 'sAMAccountName'; $Self->{'Customer::AuthModule::LDAP::SearchUserDN'} = 'CN=OTRS System,OU=Отдел ИТ,OU=Nizhnekamsk,DC=prettl,DC=loc'; $Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = 'tia18ciler'; $Self->{CustomerUser} = { Module => 'Kernel::System::CustomerUser::LDAP', Params => { AlwaysFilter => '(objectclass=user)', # if both your frontend and your LDAP are unicode, use this: SourceCharset => 'utf-8', DestCharset => 'utf-8', Host => 'adns2.prettl.loc', BaseDN => 'dc=prettl, dc=loc', SSCOPE => 'sub', UserDN => 'CN=OTRS System,OU=Отдел ИТ,OU=Nizhnekamsk,DC=prettl,DC=loc', UserPw => 'tia18ciler', }, CustomerKey => 'sAMAccountName', CustomerID => 'givenname', CustomerUserListFields => ['sAMAccountName', 'cn', 'mail'], CustomerUserSearchFields => ['sAMAccountName', 'cn', 'mail'], CustomerUserPostMasterSearchFields => ['mail'], CustomerUserNameFields => ['givenname', 'sn'], CustomerUserSearchListLimit => 400, Map => [ [ 'UserFirstname', 'Firstname', 'givenname', 1, 1, 'var' ], [ 'UserLastname', 'Lastname', 'sn', 1, 1, 'var' ], [ 'UserLogin', 'Login', 'sAMAccountName', 1, 1, 'var' ], [ 'UserEmail', 'Email', 'mail', 1, 1, 'var' ], [ 'UserCustomerID', 'CustomerID', 'givenname', 0, 1, 'var' ], ], }; } # ---------------------------------------------------- # end of your own config options!!! # # # # ---------------------------------------------------- # # ---------------------------------------------------- # # ---------------------------------------------------- # # needed system stuff (don't edit this) # # ---------------------------------------------------- # use base qw(Kernel::Config::Defaults); # -----------------------------------------------------# 1; ";i:1;N;i:2;N;}i:2;i:57;}i:4;a:3:{i:0;s:13:"section_close";i:1;a:0:{}i:2;i:7018;}i:5;a:3:{i:0;s:12:"document_end";i:1;a:0:{}i:2;i:7018;}}