CustomerPanelOwnSelection pro Firma

Hilfe zu Znuny Problemen aller Art
Locked
boris
Znuny wizard
Posts: 554
Joined: 22 Feb 2010, 18:27
Znuny Version: 3.0.4

CustomerPanelOwnSelection pro Firma

Post by boris »

Hallo,

ich bin meinem Rechte Problem einen Schritt näher gekommen.
ich versuche es mit CustomerPanelOwnSelection.
Jetzt hab ich nur noch nicht rausgefunden wie ich das für 4 unterschiedliche Firmen einsetzten kann.

Hier ist ein Auzug aus meiner Config.pm

Code: Select all

#------------------------------------------------------------------------------------------------------------------------------#
#                                   Authentifizierung Agenten via LDAP (AD) Firma1                                            #
#------------------------------------------------------------------------------------------------------------------------------#

$Self->{'AuthModule1'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host1'} = '127.0.0.1';
$Self->{'AuthModule::LDAP::BaseDN1'} = 'dc=Firma1,dc=local';
$Self->{'AuthModule::LDAP::UID1'} = 'samaccountname';
$Self->{'AuthModule::LDAP::GroupDN1'} = 'OU=Benutzer,OU=Administrative CPP Gruppe,DC=Firma1,DC=local';
$Self->{'AuthModule::LDAP::AccessAttr1'} = 'member';
$Self->{'AuthModule::LDAP::UserAttr1'} = 'DN';
$Self->{'AuthModule::LDAP::SearchUserDN1'} = 'otrsldap@Firma1.local';
$Self->{'AuthModule::LDAP::SearchUserPw1'} = 'Passwort123';


     $Self->{'UserSyncLDAPMap1'} =  {
     'UserEmail' => 'mail',
     'UserFirstname' => 'givenName',
     'UserLastname' => 'sn',
     'UserLogin' => 'sAMAccountName'
    };


#------------------------------------------------------------------------------------------------------------------------------#
#                                                            Customer                                                          #
#------------------------------------------------------------------------------------------------------------------------------#
        $Self->{'Customer::AuthModule2'} = 'Kernel::System::CustomerAuth::LDAP';
        $Self->{'Customer::AuthModule::LDAP::Host2'} = '127.0.0.1';
        $Self->{'Customer::AuthModule::LDAP::BaseDN2'} = 'DC=Firma1,DC=local';
        $Self->{'Customer::AuthModule::LDAP::UID2'} = 'sAMAccountName';
        $Self->{'Customer::AuthModule::LDAP::SearchUserDN2'} = 'otrsldap@Firma1.local';
        $Self->{'Customer::AuthModule::LDAP::SearchUserPw2'} = 'Passwort123';
        $Self->{'Customer::AuthModule::LDAP::Params2'} = {
            port => 389,
            timeout => 120,
            async => 0,
            version => 3,
            };



#------------------------------------------------------------------------------------------------------------------------------#
#                                                           UserSyncLDAPMap                                                    #
#------------------------------------------------------------------------------------------------------------------------------#

      $Self->{'UserSyncLDAPMap2'} =  {
      'UserEmail' => 'mail',
      'UserFirstname' => 'givenName',
      'UserLastname' => 'sn',
      'UserLogin' => 'sAMAccountName'
    };      

    $Self->{CustomerUser2} = {
    Name => 'Firma1 Customer',
    Module => 'Kernel::System::CustomerUser::LDAP',
    Params => {
    Host => '127.0.0.1',
    BaseDN => 'dc=Firma1,dc=local',
    SSCOPE => 'sub',
    UserDN => 'otrsldap@Firma1.local',
    UserPw => 'Passwort123',
    },
    CustomerKey => 'sAMAccountName',
    CustomerID => 'mail',
    CustomerUserListFields => ['sAMAccountName', 'cn', 'mail'],
    CustomerUserSearchFields => ['sAMAccountName', 'cn', 'mail'],
    CustomerUserPostMasterSearchFields => ['mail'],
    CustomerUserNameFields => ['givenname', 'sn'],
    Map => [
    # note: Login, Email and CustomerID needed!
    # var, frontend, storage, shown, required, storage-type
    [ 'UserSalutation', 'Title', 'title', 1, 0, 'var' ],
    [ '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', 'mail', 0, 1, 'var' ],
    [ 'UserPhone', 'Phone', 'telephonenumber', 1, 0, 'var' ],
    # [ 'UserAddress', 'Address', 'postaladdress', 1, 0, 'var' ],
    # [ 'UserComment', 'Comment', 'description', 1, 0, 'var' ],
    ],
    };
    
    
    
    
#------------------------------------------------------------------------------------------------------------------------------#
#                                                       LDAP System Users                                                      #
#------------------------------------------------------------------------------------------------------------------------------#
        $Self->{'AuthModule2'} = 'Kernel::System::Auth::LDAP';
        $Self->{'AuthModule::LDAP::Host2'} =  '127.0.0.1';
        $Self->{'AuthModule::LDAP::BaseDN2'} =  'DC=Firma1,DC=local';
        $Self->{'AuthModule::LDAP::UID2'} =  'sAMAccountName';
        $Self->{'AuthModule::LDAP::SearchUserDN2'} =  'otrsldap@Firma1.local';
        $Self->{'AuthModule::LDAP::SearchUserPw2'} =  'Passwort123';
        $Self->{'AuthModule::LDAP::Params2'} =  {
              'async' => '0',
              'timeout' => '120',
              'version' => '3',
              'port' => '389'
            };

    $Self->{'AuthModule::LDAP::Die2'} = 1;

    
    
    
#------------------------------------------------------------------------------------------------------------------------------#
#                                                 CustomerPanelOwnSelection                                                    #
#------------------------------------------------------------------------------------------------------------------------------#
 
 # (If this is in use, "just this selection is valid" for the CustomMessage.)
    $Self->{CustomerPanelOwnSelection1} = { 
        # QueueID => String
       '8' => 'Anwendungsbetreuung (ECM)',
       '7' => 'Anwendungsbetreuung (diverse)',
       '6' => 'Firma1 Anwendungsbetreuung (37/3)',
       '9' => 'Firma1 Hardware (Arbeitsplatz)',
       '17' => 'Telekommunikation/Telefon und Handy',
    };
Das ganze wiederholt sich dann für die anderen Firmen, aber wie bekomme ich es hgin, dass es dann unterschideliche Queues pro Firma sind?
$Self->{CustomerPanelOwnSelection1} = {
durchnummerieren hat schonmal nicht geklappt:-(
Produktiv:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL

Test:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL
boris
Znuny wizard
Posts: 554
Joined: 22 Feb 2010, 18:27
Znuny Version: 3.0.4

Re: CustomerPanelOwnSelection pro Firma

Post by boris »

das hat sich auch erledigt.
Kunden -> Gruppen Zuweisung klappt jetzt.
Produktiv:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL

Test:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL
seeligt
Znuny newbie
Posts: 1
Joined: 01 Aug 2012, 11:42
Znuny Version: 3.1.7

Re: CustomerPanelOwnSelection pro Firma

Post by seeligt »

darf ich fragen wie du das gelöst hast? hab CustomerPanelOwnSelection eben ausprobiert um den kunden bestimmte queues zuzuweisen.. aber es funktioniert nicht.
boris
Znuny wizard
Posts: 554
Joined: 22 Feb 2010, 18:27
Znuny Version: 3.0.4

Re: CustomerPanelOwnSelection pro Firma

Post by boris »

Das ist ne gute Frage... ich weiss garnicht mehr wo das Problem war :)

Was genau funktioniert denn bei dir nicht?
Produktiv:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL

Test:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL
Locked