Hi,
das hab ich auch eben gesehen:-) Der Name kam mir direkt so bekannt vor.
Die Fehlermeldung ist erledigt. Es lag an den Feldern und meiner
Betriebsblindheit:-)
Nur das Problem mit
$Self->{CustomerUser1} = {
anstatt
$Self->{CustomerUser} = {
betseht noch. Un da werd ich nicht ganz schlau draus.
Am 4. Mai 2012 09:41 schrieb Alex Heinrich <[email protected]>:
> Hallo Boris,
>
>
>
> ich bin übrigens der Alex aus Xing J der deinen Post kommentiert hat.
>
>
>
> Diese Fehlermeldung hat 2 Mögliche Ursachen:
>
>
>
> 1. Das Feld company existiert tatsächlich nicht … gehe per myPHPAdmin oder
> was auch immer auf die DB drauf und schaue dir die customer_user Tabelle
> an. Falls dort company vorhanden ist kommt die nächste Möglichkeit ins
> Spiel!
>
> 2. Syntax error … evtl hast du irgendwo Backticks (´) oder (“)
> Anführungszeichen anstelle der (') Hochkomatas.
>
>
>
>
>
> Gruß
>
>
>
> Alex
>
> *Von:* [email protected] [mailto:[email protected]] *Im
> Auftrag von *Boris Wagener
> *Gesendet:* Freitag, 4. Mai 2012 09:22
>
> *An:* User questions and discussions about OTRS.org in German
> *Betreff:* Re: [otrs-de] Kundendaten aus lokaler DB/ zusätzliche Felder
>
>
>
> Jetzt kommen wir der Sache langsam näher...
> ich wollte gerade einen Benutzer anlegen und bekam diese Fehlermeldung:
>
>
> [b][i]Unknown column 'company' in 'field list', SQL: 'INSERT INTO
> customer_user ( title, first_name, last_name, login, email, company,
> department, manager, physicalDeliveryOfficeName, customer_id, phone,
> comments, create_time, create_by, change_time, change_by) VALUES ( '',
> 'Boris', 'Wagener', 'b.wagener', '[email protected]', 'Compass Private
> Pflegeberatung', 'IT', 'T.test, 'Koeln', '[email protected]', '022112345',
> 'Kommentar', '2012-05-03 15:33:39' , 2, '2012-05-03 15:33:39' , 2)' [/i][/b]
>
> Das hat mich zu der bahnbrechenden Erkenntnis gebracht das ich Trottel
> Versuche LDAP Felder aus der DB zu mappen... :-)
> Also mal ganz klarer Fall von Betriebsblind...
>
> Das mapping hab ich jetzt entsprechend der DB angepasst:
> [code] 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 ],
> [ 'Firma', 'Firma', 'firma', 1, 0, 'var',
> '', 0],
> [ 'Abteilung', 'Abteilung', 'abteilung', 1, 0,
> 'var', '', 0 ],
> [ 'Vorgesetzter', 'Vorgesetzter', 'manager', 1, 0, 'var',
> '', 0 ],
> [ 'Buero', 'Buero', 'buero', 1, 0, 'var', '', 0
> ],
> # [ 'UserEmail', 'Email', 'email', 1, 1, 'var',
> '$Env{"CGIHandle"}?Action=AgentTicketCompose&ResponseID=1&TicketID=$Data{"TicketID"}&ArticleID=$Data{"ArticleID"}',
> 0, 'OTRSPopup_TicketAction' ],
> [ '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 ],
> ],[/code]
>
> Jetzt kann ich auch User anlegen.
> Aber das Phänomen mit der 1 bleibt.
> Lasse ich es so wie im Handbuch ohne 1 sehe ich die zusätzlichen Felder
> und kann sie auch befüllen, aber sehe dann keine Kunden in der Übersicht
> und kann auhc keinen für ein neues Ticket auswählen.
> Im Dropdown in der Kundenüberischt steht "Database Backend".
>
> Schreib ich die 1 dabei sehe ich die Kunden ohne Felder. In der Datenbank
> sind die aber richtig befüllt.
>
> Am 30. April 2012 13:42 schrieb Boris Wagener <
> [email protected]>:
>
> Ich habs gerade nochmal getestet.
> Ich hab den die ganze eigene Config aus der Config.pm gelöscht und nur
> diesen Teil reinkopiert:
>
> http://doc.otrs.org/3.1/en/html/customer-user-backend.html
>
> *Example 11.1. Configuring a DB customer backend*
>
>
>
> So hab ich keine Kunden in der Kundenübersicht. Wenn ich aber
>
> $Self->{CustomerUser1} = {
> anstatt
>
>
>
> $Self->{CustomerUser} = {
>
>
>
> reinschreibe gehts. Dann bekomme ich die Daten aber nicht in der
> Kundeninfo angezeigt.
>
>
>
> Am 30. April 2012 09:19 schrieb Boris Wagener <
> [email protected]>:
>
>
>
> Dnach hab ich es gemacht:
>
> http://doc.otrs.org/3.1/en/html/customer-user-backend.html#customer-backend-db
>
> ich befürchte auch dass ich da einen Fehler gemacht habe, aber ich finde
> ihn nicht:-)
>
> Am 28. April 2012 20:11 schrieb Alex Heinrich <[email protected]>:
>
> Hallo Boris,
>
>
>
> hast du es wie hier gemacht?
> http://doc.otrs.org/3.1/de/html/auth-backends.html
>
> Wenn du weiter runter scrollst wird ein bespiel gemacht wie man die
> Tabelle z.b. um die Spalte Raumnummer anpasst. Evtl. findest du einen
> kleinen Fehler bei dir wenn du dir das vergleichst.
>
>
>
> Ansonsten würde ich noch die skripte otrs/bin/otrs.LoaderCache.pl –o
> delete mal ausführen und otrs.DeleteCache … Bei mir gingen manche Sachen
> nicht wenn ich noch den alten CSS Cache hatte. Otrs.RebuildConfig.pl wäre
> auch ne Möglichkeit… ( diese würde ich aber als letztes probieren ).
>
>
>
> Gruß
>
>
>
> Alex
>
> *Von:* [email protected] [mailto:[email protected]] *Im
> Auftrag von *Boris Wagener
> *Gesendet:* Donnerstag, 26. April 2012 10:22
> *An:* User questions and discussions about OTRS.org in German
> *Betreff:* [otrs-de] Kundendaten aus lokaler DB/ zusätzliche Felder
>
>
>
> Hi,
>
> ich habe in meiner customer_user Tabelle zusätzliche Felder hinzugefügt.
> Die werden mit sync_ldap2db befüllt. Das klappt auch soweit.
> Die Kunden Authentifizieren sich gegen LDAP aber die Daten wollen wir aus
> der lokalen DB holen.
>
> So sieht die Config.pm aus:
>
> *
>
>
> #--------------------------------------------------------------------------------------------
> #
> firma #
>
> #--------------------------------------------------------------------------------------------
>
> #--------------------------------------------------------------------------------------------
> # Agenten
> Authentifizeirung #
>
> #--------------------------------------------------------------------------------------------
> $Self->{'AuthModule1'} = 'Kernel::System::Auth::LDAP';
> $Self->{'AuthModule::LDAP::Host1'} = 'dc.firma.local';
> $Self->{'AuthModule::LDAP::BaseDN1'} = 'dc=firma,dc=local';
> $Self->{'AuthModule::LDAP::UID1'} = 'sAMAccountName';
> $Self->{'AuthModule::LDAP::SearchUserDN1'} = '[email protected]';
> $Self->{'AuthModule::LDAP::SearchUserPw1'} = 'Passwort123';
>
> #--------------------------------------------------------------------------------------------
> # Kunden
> Authentifizeirung #
>
> #--------------------------------------------------------------------------------------------
> $Self->{'Customer::AuthModule1'} = 'Kernel::System::CustomerAuth::LDAP';
> $Self->{'Customer::AuthModule::LDAP::Host1'} = 'dc.firma.local';
> $Self->{'Customer::AuthModule::LDAP::BaseDN1'} = 'DC=firma, DC=local';
> $Self->{'Customer::AuthModule::LDAP::UID1'} = 'sAMAccountName';
> $Self->{'Customer::AuthModule::LDAP::SearchUserDN1'} =
> '[email protected]';
> $Self->{'Customer::AuthModule::LDAP::SearchUserPw1'} = 'Passwort123';
> #--------------------------------------------------------------------------------------------
>
> #
> Kundendaten #
>
> #--------------------------------------------------------------------------------------------
>
>
>
>
> #--------------------------------------------------------------------------------------------
> # CustomerUser (customer database backend and settings)
> $Self->{CustomerUser1} = {
> Name => 'Database Datasource',
> 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 => 500,
> 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
> ],
>
> [ 'Firma', 'firma', 'company', 1, 0, 'var',
> '', 0],
> [ 'Abteilung', 'abteilung', 'department', 1, 0,
> 'var', '', 0 ],
> [ 'Vorgesetzter', 'vorgesetzter','manager', 1, 0, 'var', '',
> 0 ],
> [ 'Buero', 'buero', 'physicalDeliveryOfficeName', 1, 0,
> '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 ],
>
>
> ],
>
>
>
> };
>
>
>
>
> #--------------------------------------------------------------------------------------------
> # firma
> Ende #
>
>
> #--------------------------------------------------------------------------------------------
> *
>
>
>
> Authetifizierung geht.
> Aber die Daten (die zusätzlichen Felder) werden beim Kunden nicht
> angezeigt.
>
> Kann mir jemand sagen woran das liegt?
>
> Boris
>
> Besuchen Sie unsere Website: www.sidion.de
>
> Rechtliche Angaben:
>
> USt-Id: DE 147755321 . Unternehmenssitz: Nöllenstraße 42 . 70195 Stuttgart .
> Inhaber . Geschäftsführer: René Sutorius
>
>
>
> ---------------------------------------------------------------------
> OTRS mailing list: otrs-de - Webpage: http://otrs.org/
> Archive: http://lists.otrs.org/pipermail/otrs-de
> To unsubscribe: http://lists.otrs.org/mailman/listinfo/otrs-de
>
>
>
>
>
>
> Besuchen Sie unsere Website: www.sidion.de
>
> Rechtliche Angaben:
>
> USt-Id: DE 147755321 . Unternehmenssitz: Nöllenstraße 42 . 70195 Stuttgart .
> Inhaber . Geschäftsführer: René Sutorius
>
> ---------------------------------------------------------------------
> OTRS mailing list: otrs-de - Webpage: http://otrs.org/
> Archive: http://lists.otrs.org/pipermail/otrs-de
> To unsubscribe: http://lists.otrs.org/mailman/listinfo/otrs-de
>
---------------------------------------------------------------------
OTRS mailing list: otrs-de - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs-de
To unsubscribe: http://lists.otrs.org/mailman/listinfo/otrs-de