LDAP usage

Moderator: crythias

Locked
thesavo
Znuny newbie
Posts: 4
Joined: 01 Jun 2012, 21:08
Znuny Version: 3.1.5
Real Name: Will savacool

LDAP usage

Post by thesavo »

Hello all this is my first time with OTRS. I am trying to get it to authenticate with our Windows 2003 AD Domain.
I copied the configuration example from http://doc.otrs.org/1.3/en/html/ldap-integration.html. I changed the nesseary valules, and added the line

Code: Select all

my $Self = shift;
to the beginning of the LDAP config lines, which the guide does not indicate. For testing I am using my own AD user and password.

Now, apache does restart properly, and I can login with root@localhost. I can also login to OTRS using another admin account i created. However It doesn't seem to be checking AD for customers or agents. Where are the logs for this kept; are they stored in apache/error.log?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: LDAP usage

Post by jojo »

please don't use the 1.3. Documentation for OTRS 3.1


have a close look at the 3.1 docs and use the forums search
"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
thesavo
Znuny newbie
Posts: 4
Joined: 01 Jun 2012, 21:08
Znuny Version: 3.1.5
Real Name: Will savacool

Re: LDAP usage

Post by thesavo »

Thank you. I am now reading the 3.1 version of the guide, and it seams to be less helpful than the last version.
I grabbed the customer example from this new manual.
I changed the host = the Fully qualified DNS name of the domain controller
I changed the BaseDN to the name of the forest root.
I used CPAN to install Net::LDAP
I restarted apache

Apache starts OK. now when I watch the Apache error.log file, I get this error when I browese to http://localhost/otrs/customer.pl

Code: Select all

 Message: Can't locate Net/LDAP.pm in @INC (@INC contains: /usr/sbin/../../Custom /usr/sbin/../../Kernel/cpan-lib /usr/sbin/../.. /usr/Custom /usr/Kernel/cpan-lib /usr /usr/share/otrs/Custom /usr/share/otrs/Kernel/cpan-lib /usr/share/otrs/ /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl . /etc/apache2) at /usr/share/otrs//Kernel/System/CustomerAuth/LDAP.pm line 17.
BEGIN failed--compilation aborted at /usr/share/otrs//Kernel/System/CustomerAuth/LDAP.pm line 17.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: LDAP usage

Post by jojo »

Net/LDAP.pm is not installed as the error message stated
"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
thesavo
Znuny newbie
Posts: 4
Joined: 01 Jun 2012, 21:08
Znuny Version: 3.1.5
Real Name: Will savacool

Re: LDAP usage

Post by thesavo »

But when i attempt to install the net LDAP module, it states that its already installed.

Does CPAN need to install to a different path?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: LDAP usage

Post by jojo »

did you run CPAN as root?
"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
thesavo
Znuny newbie
Posts: 4
Joined: 01 Jun 2012, 21:08
Znuny Version: 3.1.5
Real Name: Will savacool

Re: LDAP usage

Post by thesavo »

yes, and as a normal user. Both seam to install modules to the home folder.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: LDAP usage

Post by crythias »

how did you install Net::LDAP?

sudo cpan Net::LDAP
?
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Locked