OTRS LDAP-Anbindung

Hilfe zu OTRS Problemen aller Art
Post Reply
oleole
Znuny advanced
Posts: 148
Joined: 08 Jun 2012, 10:19
Znuny Version: 4.0.x

OTRS LDAP-Anbindung

Post by oleole »

Hallo ,

ich bin dabei eine LDAP-Anbindung an meinem neuen OTRS 3.1.6 einzurichten.

Ich habe schonmal die ganzen wichtigen Einträge in der Config.pm vorgenommen (Domäne,IP,PW etc.)
Die Config.pm habe mich mit Noetpad++ geöffnet

Wo muss man in der Config.pm den Port anpassen bzw. wie geht das? Portnummer ist mir bekannt.
Produktiv: OTRS 4.0.X | Ubuntu 12.04.2 | Apache2 | MySQL 5.5 | KIX4OTRS
oleole
Znuny advanced
Posts: 148
Joined: 08 Jun 2012, 10:19
Znuny Version: 4.0.x

Re: OTRS LDAP-Anbindung

Post by oleole »

$Self->{'DefaultCharset'} = 'utf-8';
$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host'} = 'XXXXXXXX';
$Self->{'AuthModule::LDAP::BaseDN'} = 'dc=XX,dc=XX';
$Self->{'AuthModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'AuthModule::LDAP::SearchUserDN'} = 'CN=XXXXX\,,OU=XXXX,OU=XX,OU=XX,DC=XX,DC=XX';
$Self->{'AuthModule::LDAP::SearchUserPw'} = 'XXXXXXXXX';

Kommt hier irgendwo die Portnummer hin????
Produktiv: OTRS 4.0.X | Ubuntu 12.04.2 | Apache2 | MySQL 5.5 | KIX4OTRS
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS LDAP-Anbindung

Post by jojo »

um welchen Port handelt es sich? ldap oder ldaps?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
oleole
Znuny advanced
Posts: 148
Joined: 08 Jun 2012, 10:19
Znuny Version: 4.0.x

Re: OTRS LDAP-Anbindung

Post by oleole »

LDAP denke ich.

Ich möchte das ganze an die AD anbinden und muss den Port noch anpassen.
Produktiv: OTRS 4.0.X | Ubuntu 12.04.2 | Apache2 | MySQL 5.5 | KIX4OTRS
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS LDAP-Anbindung

Post by jojo »

auch ein normales AD läuft auf Port 389
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
oleole
Znuny advanced
Posts: 148
Joined: 08 Jun 2012, 10:19
Znuny Version: 4.0.x

Re: OTRS LDAP-Anbindung

Post by oleole »

Kannst du mir eine Beispiel-Config.pm posten wie das ganze auszuschauen hat? das wäre echt super!!!
Produktiv: OTRS 4.0.X | Ubuntu 12.04.2 | Apache2 | MySQL 5.5 | KIX4OTRS
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS LDAP-Anbindung

Post by jojo »

Bitte nutze dafür die Forensuche, hier sind ohne Ende funktionierende Konfigurationen.

Oder gib die angefragte Information und ggf. die Fehlermeldung wenn etwas nicht funktioniert.
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
boris
Znuny wizard
Posts: 554
Joined: 22 Feb 2010, 18:27
Znuny Version: 3.0.4

Re: OTRS LDAP-Anbindung

Post by boris »

Die funktioniert:
viewtopic.php?f=17&t=7558
zumindest hier :D
Produktiv:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL

Test:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL
oleole
Znuny advanced
Posts: 148
Joined: 08 Jun 2012, 10:19
Znuny Version: 4.0.x

Re: OTRS LDAP-Anbindung

Post by oleole »

Hi ich mal wieder!

Damit Ihr seht was ich fabriziert habe, hier ein Auszug meiner Config.pm:

Ich gehe davon aus dass ich noch ein paar gravierende Fehler drin habe :( !
Wenn ich die Config hochlade bringt er mir ne dicke Errormeldung.

Was habe ich falsch gemacht?



Agenten:

$Self->{'DefaultCharset'} = 'utf-8';
$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host'} = 'XXXXXXX';
$Self->{'AuthModule::LDAP::BaseDN'} = 'dc=XX,dc=XX';
$Self->{'AuthModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'AuthModule::LDAP::SearchUserDN'} = 'XXXXXXXXXXXXX';
$Self->{'AuthModule::LDAP::SearchUserPw'} = 'XXXXXXX';

Kunden:

$Self->{CustomerUser} = {
Name => 'LDAP Data Source',
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
Host => 'XXXXXXXXXX',
BaseDN => 'dc=XX,dc=XX',
SSCOPE => 'sub',
UserDN => 'CN=XXXXXXXXXXX',
UserPw => 'XXXXXXXXX',
SourceCharset => 'utf-8',
DestCharset => 'utf-8',
port => 3268,
timeout => 120,
async => 0,
version => 3,
},
},
CustomerKey => 'sAMAccountName',
CustomerID => 'mail',
CustomerUserListFields => ['sAMAccountName', 'cn', 'mail'],
CustomerUserSearchFields => ['sAMAccountName', 'cn', 'mail'],
CustomerUserPostMasterSearchFields => ['mail'],
CustomerUserNameFields => ['givenname', 'sn'],
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', 'mail', 0, 1, 'var' ],
[ 'UserPhone', 'Phone', 'telephonenumber', 1, 0, 'var' ],
[ 'UserIPPhone', 'IP Phone', 'ipphone', 1, 0 , 'var' ],
[ 'UserCompany', 'Company' , 'company', 1, 0 , 'var' ],
[ 'UserDepartment', 'Department' , 'department', 1, 0 , 'var' ],
[ 'UserAddress', 'Address', 'postaladdress', 1, 0, 'var' ],
[ 'UserComment', 'Comment', 'description', 1, 0, 'var' ],
],
};
Last edited by oleole on 08 Aug 2012, 14:33, edited 1 time in total.
Produktiv: OTRS 4.0.X | Ubuntu 12.04.2 | Apache2 | MySQL 5.5 | KIX4OTRS
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS LDAP-Anbindung

Post by jojo »

Wie genau lautet die Fehlermeldung?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
oleole
Znuny advanced
Posts: 148
Joined: 08 Jun 2012, 10:19
Znuny Version: 4.0.x

Re: OTRS LDAP-Anbindung

Post by oleole »

In der OTRS-Log steht nichts brauchbares drin.

Wenn ich nach einspielen der Config.pm den IE aktualisiere bringt er mir das hier:

"Internal Server Error"
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
Produktiv: OTRS 4.0.X | Ubuntu 12.04.2 | Apache2 | MySQL 5.5 | KIX4OTRS
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS LDAP-Anbindung

Post by jojo »

dann prüfe mal das Apache error.log

und via perl -cw kernel/Config.pm ob alles stimmt.


Sicher hast Du auch alle benötigten Perl Module, insbesonder Net::LDAP installiert?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
oleole
Znuny advanced
Posts: 148
Joined: 08 Jun 2012, 10:19
Znuny Version: 4.0.x

Re: OTRS LDAP-Anbindung

Post by oleole »

Wie kann ich die bisher installierten Pakete anzeigen lassen?`

Bzw. gibt es hier eine Anleitung wie ich das Schritt für Schritt machen kann? Ich google mich schon seit Tagen tot :-)
Produktiv: OTRS 4.0.X | Ubuntu 12.04.2 | Apache2 | MySQL 5.5 | KIX4OTRS
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS LDAP-Anbindung

Post by jojo »

das geht z.B. über das Support Assessement Modul, oder via bin/otrs.CheckModules.pl
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
oleole
Znuny advanced
Posts: 148
Joined: 08 Jun 2012, 10:19
Znuny Version: 4.0.x

Re: OTRS LDAP-Anbindung

Post by oleole »

Okay Danke für die schnelle Info.

Doch wie genau führe ich letzteres auch der Kommandozeile aus? Ging nicht so wie ich dachte :(
Produktiv: OTRS 4.0.X | Ubuntu 12.04.2 | Apache2 | MySQL 5.5 | KIX4OTRS
oleole
Znuny advanced
Posts: 148
Joined: 08 Jun 2012, 10:19
Znuny Version: 4.0.x

Re: OTRS LDAP-Anbindung

Post by oleole »

Argh okay habs selber hinbekommen.

Hier schau mal habe es installiert:
Net::LDAP........................ok (v0.43)
Produktiv: OTRS 4.0.X | Ubuntu 12.04.2 | Apache2 | MySQL 5.5 | KIX4OTRS
oleole
Znuny advanced
Posts: 148
Joined: 08 Jun 2012, 10:19
Znuny Version: 4.0.x

Re: OTRS LDAP-Anbindung

Post by oleole »

Hi all,

@ jojo & Boris:

Danke, habs hinbekommen ! LDAP-Abfrage läuft 8)
Produktiv: OTRS 4.0.X | Ubuntu 12.04.2 | Apache2 | MySQL 5.5 | KIX4OTRS
oleole
Znuny advanced
Posts: 148
Joined: 08 Jun 2012, 10:19
Znuny Version: 4.0.x

Re: OTRS LDAP-Anbindung

Post by oleole »

Hey ich bin es wieder :-) !

Eine LDAP-Anbindung ist noch nicht genug...eine zweite Firma muss mit rein.

Und genau hier hängt es :

Firma 1 :

#LDAP Konfiguration Agenten Auth

$Self->{'AuthModule1'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host1'} = 'XXXXXXX';
$Self->{'AuthModule::LDAP::BaseDN1'} = 'dc=XX,dc=XX';
$Self->{'AuthModule::LDAP::UID1'} = 'sAMAccountName';
$Self->{'AuthModule::LDAP::SearchUserDN1'} = XXXXXXXXXXXXXX;
$Self->{'AuthModule::LDAP::SearchUserPw1'} = 'XXXXXXXXX';


Firma 2 :
#LDAP Konfiguration Agenten Auth

$Self->{'AuthModule2'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host2'} = 'XXXXXXXX';
$Self->{'AuthModule::LDAP::BaseDN2'} = 'XXXXXXXXXXXXX';
$Self->{'AuthModule::LDAP::UID2'} = 'sAMAccountName';
$Self->{'AuthModule::LDAP::SearchUserDN2'} = XXXXXXXXXXXXXXX;
$Self->{'AuthModule::LDAP::SearchUserPw2'} = 'XXXXXXXXXX';

Frage: Habe ich das mit der Nummerierung etwa nicht gerafft oder stimmt es soweit? Firma 1 kann sich anmelden.


Bei Firma 2 würde mich interessieren wo ich den Containereintrag vornehmen muss, evtl. bei -> $Self->{'AuthModule::LDAP::BaseDN2'} = 'XXXXXXXXXXXXX'; ( OU=......DC=........DC=.......etc.)
oder etwa bei $Self->{'AuthModule::LDAP::SearchUserDN2'} =.............?

Kann mir jemand das ganze verdeutlichen ?
Produktiv: OTRS 4.0.X | Ubuntu 12.04.2 | Apache2 | MySQL 5.5 | KIX4OTRS
oleole
Znuny advanced
Posts: 148
Joined: 08 Jun 2012, 10:19
Znuny Version: 4.0.x

Re: OTRS LDAP-Anbindung

Post by oleole »

Weiß einer was ich meine.....? :?
Produktiv: OTRS 4.0.X | Ubuntu 12.04.2 | Apache2 | MySQL 5.5 | KIX4OTRS
boris
Znuny wizard
Posts: 554
Joined: 22 Feb 2010, 18:27
Znuny Version: 3.0.4

Re: OTRS LDAP-Anbindung

Post by boris »

Soweohl als auch...zumindest wenn ich deine Frage richtig verstanden habe :)
Produktiv:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL

Test:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL
oleole
Znuny advanced
Posts: 148
Joined: 08 Jun 2012, 10:19
Znuny Version: 4.0.x

Re: OTRS LDAP-Anbindung

Post by oleole »

Aaah Hi Boris^^,

dein Eintrag kommt zu spät denn: Ein Wunder ist geschehen und ich habe es vertsanden 8) !
Hat ja auch lange genug gedauert ;)

Dafür plagen mich noch andere, kleinere Probleme und ich hoffe dass ich nicht aus dem Forum gebannt werde^^
Produktiv: OTRS 4.0.X | Ubuntu 12.04.2 | Apache2 | MySQL 5.5 | KIX4OTRS
boris
Znuny wizard
Posts: 554
Joined: 22 Feb 2010, 18:27
Znuny Version: 3.0.4

Re: OTRS LDAP-Anbindung

Post by boris »

Na dann... :)
Hat bei mir auch ne kleine Ewigkeit gedauert. Als die Authetifizierung das erste mal geklappt hat konnte ich es garnicht glauben :D :D :D
Produktiv:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL

Test:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL
oleole
Znuny advanced
Posts: 148
Joined: 08 Jun 2012, 10:19
Znuny Version: 4.0.x

Re: OTRS LDAP-Anbindung

Post by oleole »

Kann ich dir ne PN kurz schreiben?
Produktiv: OTRS 4.0.X | Ubuntu 12.04.2 | Apache2 | MySQL 5.5 | KIX4OTRS
Post Reply