OTRS Adressbuch

Allgemein Fragen, deutsche News, Ankündigungen & Events zum OTRS
Post Reply
asxo
Znuny expert
Posts: 187
Joined: 28 Apr 2009, 11:35
Znuny Version: 2.3.4

OTRS Adressbuch

Post by asxo »

Moin,


gibt es zusätzlich zur LDAP Anbindung eine Möglichkeit Adressen im OTRS zu pflegen die eben NICHT mitglied der Domäne sind - also externe MA?

Wir haben jetzt das Problem das wir viel externe Kommunikation führen und die Email Adresse bei jedem Call händisch eintragen müssen - wir aber diese MA natrülich nicht in unserer AD haben.


Gibt es da was?
OTRS 2.3.4 /OTRS 3.0.11
Updateerfahrung
Win 2003 / Win 2008 R2
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: OTRS Adressbuch

Post by Wolfgangf »

Du kannst mehrere Quellen für das Adressbuch haben

- OTRS Database backend
- LDAP
- andere Datenbanken
Lies dir in der Doku das Kapitel http://doc.otrs.org/3.0/de/html/external-backends.html ff

Für Deine Anforderung brauchst Du dann 2 Quellen für das Adressbuch:
- Database Backend
- LDAP
und funktioniert das so wie Du Dir das vorstellst

und nachdem die Quellen für das Adressbuch durchnummeriert werden, kannst Du auch noch die Reihenfolge bestimmen

Code: Select all

z.B:
        $Self->{CustomerUser} = {
             Name => 'LDAP',
             Module => 'Kernel::System::CustomerUser::LDAP',
...
 $Self->{CustomerUser2} = {
             Name => 'LDAP',
             Module => 'Kernel::System::CustomerUser::DB',
...
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
asxo
Znuny expert
Posts: 187
Joined: 28 Apr 2009, 11:35
Znuny Version: 2.3.4

Re: OTRS Adressbuch

Post by asxo »

Also das klappt soweit ja ganz gut - ABER ich muss die "externen" ja als richtige User mit Login + Passwort in die DB eintragen - was will ich ja gar nicht - sondern brauche ja nur den Vor-Nachnamen + Email Adresse.


Wie kriege ich das denn hin??????

Code: Select all

#Zweite Datenbank

# CustomerUser (customer database backend and settings)
$Self->{CustomerUser2} = {
    Name => 'Externe-EmailAdressen-DB',
    Module => 'Kernel::System::CustomerUser::DB',
    Params => {
        # if you want to use an external database, add the required settings
#            DSN => 'DBI:odbc:yourdsn',
#            DSN => 'DBI:mysql:database=customerdb;host=customerdbhost',
#            User => '',
#            Password => '',
            Table => 'customer_user',
            # if your frontend is unicode and the charset of your
            # customer database server is iso-8859-1, use these options.
#           SourceCharset => 'iso-8859-1',
#           DestCharset => 'utf-8',

            # CaseSensitive will control if the SQL statements need LOWER()
            #   function calls to work case insensitively. Setting this to
            #   1 will improve performance dramatically on large databases.
            CaseSensitive => 0,
        },
# customer unique id
CustomerKey => 'login',

# customer #
CustomerID => 'customer_id',
CustomerValid => 'valid_id',
    CustomerUserListFields => ['first_name', 'last_name', 'email'],
    CustomerUserSearchFields => ['login', 'last_name', 'customer_id'],
    CustomerUserSearchPrefix => '',
    CustomerUserSearchSuffix => '*',
    CustomerUserSearchListLimit => 250,
    CustomerUserPostMasterSearchFields => ['email'],
    CustomerUserNameFields => ['title','first_name','last_name'],
    CustomerUserEmailUniqCheck => 1,
#    # show not own tickets in customer panel, CompanyTickets
#    CustomerUserExcludePrimaryCustomerID => 0,
#    # generate auto logins
#    AutoLoginCreation => 0,
#    AutoLoginCreationPrefix => 'auto',
#    # admin can change customer preferences
#    AdminSetPreferences => 1,
#    # cache time to live in sec. - cache any database queries
#    CacheTTL => 0,
#    # just a read only source
#    ReadOnly => 1,
    Map => [
        # note: Login, Email and CustomerID needed!
        # var, frontend, storage, shown (1=always,2=lite), required, storage-type, http-link, readonly, http-link-target
        [ 'UserTitle',      'Title',      'title',      1, 0, 'var', '', 0 ],
        [ 'UserFirstname',  'Firstname',  'first_name', 1, 1, 'var', '', 0 ],
        [ 'UserLastname',   'Lastname',   'last_name',  1, 1, 'var', '', 0 ],
 #       [ 'UserLogin',      'Username',   'login',      1, 1, 'var', '', 0 ],
 #      [ 'UserPassword',   'Password',   'pw',         0, 0, 'var', '', 0 ],
        [ 'UserEmail',      'Email',      'email',      1, 1, 'var', '', 0 ],

#        [ 'UserEmail',      'Email', 'email',           1, 1, 'var', '$Env{"CGIHandle"}?Action=AgentTicketCompose&ResponseID=1&TicketID=$Data{"TicketID"}&ArticleID=$Data{"ArticleID"}', 0 ],
#        [ 'UserCustomerID', 'CustomerID', 'customer_id', 0, 1, 'var', '', 0 ],

#        [ 'UserCustomerIDs', 'CustomerIDs', 'customer_ids', 1, 0, 'var', '', 0 ],
        [ 'UserPhone',        'Phone',       'phone',        1, 0, 'var', '', 0 ],
        [ 'UserFax',          'Fax',         'fax',          1, 0, 'var', '', 0 ],
        [ 'UserMobile',       'Mobile',      'mobile',       1, 0, 'var', '', 0 ],
        [ 'UserStreet',       'Street',      'street',       1, 0, 'var', '', 0 ],
        [ 'UserZip',          'Zip',         'zip',          1, 0, 'var', '', 0 ],
        [ 'UserCity',         'City',        'city',         1, 0, 'var', '', 0 ],
        [ 'UserCountry',      'Country',     'country',      1, 0, 'var', '', 0 ],
        [ 'UserComment',      'Comment',     'comments',     1, 0, 'var', '', 0 ],
        [ 'ValidID',          'Valid',       'valid_id',     0, 1, 'int', '', 0 ],
    ],
    # default selections
    Selections => {
        UserTitle => {
            'Mr.' => 'Herr',
            'Mrs.' => 'Frau',
        },
    },
};


# Ende
OTRS 2.3.4 /OTRS 3.0.11
Updateerfahrung
Win 2003 / Win 2008 R2
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: OTRS Adressbuch

Post by Wolfgangf »

ich würde mal sagen: gar nicht

wenn es nur um Adressen geht und sich die Kunden nicht einloggen können sollen am KundenFrontEnd: schmeiss Sie in eine Datenbankbank und binde sie auf dem gleichen Weg an
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
asxo
Znuny expert
Posts: 187
Joined: 28 Apr 2009, 11:35
Znuny Version: 2.3.4

Re: OTRS Adressbuch

Post by asxo »

Das schlecht - also wirklich schlecht^^

Somal die pflege der Daten ja nicht von uns (IT) gemacht werden soll - sondern direkt vom Supporter..........

Mmmmmh, keine Alternative?
OTRS 2.3.4 /OTRS 3.0.11
Updateerfahrung
Win 2003 / Win 2008 R2
Andre Bauer
Znuny guru
Posts: 2189
Joined: 08 Dec 2005, 17:01
Znuny Version: 5.0.x
Real Name: André Bauer
Company: Magix Software GmbH
Location: Dresden
Contact:

Re: OTRS Adressbuch

Post by Andre Bauer »

schon mal das mapping angesehn? da solltest du doch nicht benötige felder ausblenden können....
Prod: Ubuntu Server 16.04 / Zammad 1.2

DO NOT PM ME WITH OTRS RELATED QUESTIONS! ASK IN THE FORUMS!

OtterHub.org
asxo
Znuny expert
Posts: 187
Joined: 28 Apr 2009, 11:35
Znuny Version: 2.3.4

Re: OTRS Adressbuch

Post by asxo »

Klar- das ausblenden ist kein Thema - aber dann markert er mir die trotzdem als Pflichtfelder an (obwohl ausgeblendet)

Kann dir gerne die Fehlermeldung zeigen wenn du willst.
OTRS 2.3.4 /OTRS 3.0.11
Updateerfahrung
Win 2003 / Win 2008 R2
Andre Bauer
Znuny guru
Posts: 2189
Joined: 08 Dec 2005, 17:01
Znuny Version: 5.0.x
Real Name: André Bauer
Company: Magix Software GmbH
Location: Dresden
Contact:

Re: OTRS Adressbuch

Post by Andre Bauer »

Man kann doch auch "required" auf "0" setzen?

oder versteh ich das problem grad nicht?
Prod: Ubuntu Server 16.04 / Zammad 1.2

DO NOT PM ME WITH OTRS RELATED QUESTIONS! ASK IN THE FORUMS!

OtterHub.org
asxo
Znuny expert
Posts: 187
Joined: 28 Apr 2009, 11:35
Znuny Version: 2.3.4

Re: OTRS Adressbuch

Post by asxo »

Moin,

also ich habe nun mal alles "unwichte" ausgeblendet und auche die Pflichtfelder rausgenommen - aber es klappt noch immer nicht :(


Wie ihr im Bild sehen könnt - bekomme ich noch immer eine Fehlermeldung beim abspeichern der benutzerdaten.

Darüber hinaus möchte ich gerne alles unterhalb der Email Adresse auch ausblenden.

Also Schema, Sprache, ect.pp.




Code: Select all

$Self->{CustomerUser2} = {
    Name => 'Externe-EmailAdressen-DB',
    Module => 'Kernel::System::CustomerUser::DB',
    Params => {
        # if you want to use an external database, add the required settings
#            DSN => 'DBI:odbc:yourdsn',
#            DSN => 'DBI:mysql:database=customerdb;host=customerdbhost',
#            User => '',
#            Password => '',
            Table => 'customer_user',
            # if your frontend is unicode and the charset of your
            # customer database server is iso-8859-1, use these options.
#           SourceCharset => 'iso-8859-1',
#           DestCharset => 'utf-8',

            # CaseSensitive will control if the SQL statements need LOWER()
            #   function calls to work case insensitively. Setting this to
            #   1 will improve performance dramatically on large databases.
            CaseSensitive => 0,
        },
# customer unique id
CustomerKey => 'login',

# customer #
CustomerID => 'customer_id',
CustomerValid => 'valid_id',
    CustomerUserListFields => ['first_name', 'last_name', 'email'],
    CustomerUserSearchFields => ['last_name'],
    CustomerUserSearchPrefix => '',
    CustomerUserSearchSuffix => '*',
    CustomerUserSearchListLimit => 250,
    CustomerUserPostMasterSearchFields => ['email'],
    CustomerUserNameFields => ['first_name','last_name'],
    CustomerUserEmailUniqCheck => 1,
#    # show not own tickets in customer panel, CompanyTickets
#    CustomerUserExcludePrimaryCustomerID => 0,
#    # generate auto logins
#    AutoLoginCreation => 0,
#    AutoLoginCreationPrefix => 'auto',
#    # admin can change customer preferences
#    AdminSetPreferences => 1,
#    # cache time to live in sec. - cache any database queries
#    CacheTTL => 0,
#    # just a read only source
#    ReadOnly => 1,
    Map => [
        # note: Login, Email and CustomerID needed!
        # var, frontend, storage, shown (1=always,2=lite), required, storage-type, http-link, readonly, http-link-target
     #   [ 'UserTitle',      'Title',      'title',      0, 0, 'var', '', 0 ],
        [ 'UserFirstname',  'Firstname',  'first_name', 1, 1, 'var', '', 0 ],
        [ 'UserLastname',   'Lastname',   'last_name',  1, 1, 'var', '', 0 ],
    #  [ 'UserLogin',      'Username',   'login',      0, 0, 'var', '', 0 ],
    #   [ 'UserPassword',   'Password',   'pw',         0, 0, 'var', '', 0 ],
        [ 'UserEmail',      'Email',      'email',      1, 1, 'var', '', 0 ],

#        [ 'UserEmail',      'Email', 'email',           1, 1, 'var', '$Env{"CGIHandle"}?Action=AgentTicketCompose&ResponseID=1&TicketID=$Data{"TicketID"}&ArticleID=$Data{"ArticleID"}', 0 ],
    #  [ 'UserCustomerID', 'CustomerID', 'customer_id', 0, 1, 'var', '', 0 ],

#        [ 'UserCustomerIDs', 'CustomerIDs', 'customer_ids', 1, 0, 'var', '', 0 ],
    #    [ 'UserPhone',        'Phone',       'phone',        1, 0, 'var', '', 0 ],
    #    [ 'UserFax',          'Fax',         'fax',          1, 0, 'var', '', 0 ],
    #    [ 'UserMobile',       'Mobile',      'mobile',       1, 0, 'var', '', 0 ],
    #    [ 'UserStreet',       'Street',      'street',       1, 0, 'var', '', 0 ],
    #    [ 'UserZip',          'Zip',         'zip',          1, 0, 'var', '', 0 ],
    #    [ 'UserCity',         'City',        'city',         1, 0, 'var', '', 0 ],
    #    [ 'UserCountry',      'Country',     'country',      1, 0, 'var', '', 0 ],
    #    [ 'UserComment',      'Comment',     'comments',     1, 0, 'var', '', 0 ],
    #   [ 'ValidID',          'Valid',       'valid_id',     0, 1, 'int', '', 0 ],
    ],
    # default selections
    Selections => {
        UserTitle => {
            'Mr.' => 'Herr',
            'Mrs.' => 'Frau',
        },
    },
};
You do not have the required permissions to view the files attached to this post.
OTRS 2.3.4 /OTRS 3.0.11
Updateerfahrung
Win 2003 / Win 2008 R2
Andre Bauer
Znuny guru
Posts: 2189
Joined: 08 Dec 2005, 17:01
Znuny Version: 5.0.x
Real Name: André Bauer
Company: Magix Software GmbH
Location: Dresden
Contact:

Re: OTRS Adressbuch

Post by Andre Bauer »

Eventuell kannst du ja einfach das Login Feld nutzen und in der Map der Config.pm in "E-Mail" umbenennen?
Prod: Ubuntu Server 16.04 / Zammad 1.2

DO NOT PM ME WITH OTRS RELATED QUESTIONS! ASK IN THE FORUMS!

OtterHub.org
Post Reply