Hey,
I am trying to configure the LDAP but some how the configuration isn't working. I have no prior experience with LDAP, I would really appreciate some input.
CODE:
# This is an example configuration for an LDAP auth. backend.
# (Make sure Net::LDAP is installed!)
$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host'} = 'companyname.net';
$Self->{'AuthModule::LDAP::BaseDN'} = 'ou=People,cn=companyname,cn=com';
$Self->{'AuthModule::LDAP::UID'} = 'uid';
# Check if the user is allowed to auth in a posixGroup
# (e. g. user needs to be in a group xyz to use otrs)
$Self->{'AuthModule::LDAP::GroupDN'} ='cn=Otrs,ou=Group,dc=companyname,dc=com';
$Self->{'AuthModule::LDAP::AccessAttr'} = 'memberUid';
# for ldap posixGroups objectclass (just uid)
# $Self->{'AuthModule::LDAP::UserAttr'} = 'UID';
# for non ldap posixGroups objectclass (with full user dn)
# $Self->{'AuthModule::LDAP::UserAttr'} = 'DN';
# The following is valid but would only be necessary if the
# anonymous user do NOT have permission to read from the LDAP tree
$Self->{'AuthModule::LDAP::SearchUserDN'} = '';
$Self->{'AuthModule::LDAP::SearchUserPw'} = '';
#$Self->{'AuthModule::LDAP::SearchUserDN'} = '';
#$Self->{'AuthModule::LDAP::SearchUserPw'} = '';
# in case you want to add always one filter to each ldap query, use
# this option. e. g. AlwaysFilter => '(mail=*)' or AlwaysFilter =>
#'(objectclass=user)'
$Self->{'AuthModule::LDAP::AlwaysFilter'} = '';
# in case you want to add a suffix to each login name, then
# you can use this option. e. g. user just want to use user but
# in your ldap directory exists user@domain.
# $Self->{'AuthModule::LDAP::UserSuffix'}
# Net::LDAP new params (if needed - for more Net::LDAP)
$Self->{'AuthModule::LDAP::Params'} =
{
port => 389,
timeout => 120,
async => 0,
version => 3,
};
SERVER STACK TRACE:
[Fri Jul 22 11:52:10 2011] [error] [client 127.0.0.1] ERROR: OTRS-CGI-10 Perl: 5.10.0 OS: darwin Time: Fri Jul 22 11:52:10 2011, referer: http://localhost/otrs/index.pl
[Fri Jul 22 11:52:10 2011] [error] [client 127.0.0.1] , referer: http://localhost/otrs/index.pl
[Fri Jul 22 11:52:10 2011] [error] [client 127.0.0.1] Message: Search failed! No such object, referer: http://localhost/otrs/index.pl
[Fri Jul 22 11:52:10 2011] [error] [client 127.0.0.1] , referer: http://localhost/otrs/index.pl
[Fri Jul 22 11:52:10 2011] [error] [client 127.0.0.1] Traceback (8297): , referer: http://localhost/otrs/index.pl
[Fri Jul 22 11:52:10 2011] [error] [client 127.0.0.1] Module: Kernel::System::Auth::LDAP::Auth (v1.59) Line: 216, referer: http://localhost/otrs/index.pl
[Fri Jul 22 11:52:10 2011] [error] [client 127.0.0.1] Module: Kernel::System::Auth::Auth (v1.50) Line: 181, referer: http://localhost/otrs/index.pl
[Fri Jul 22 11:52:10 2011] [error] [client 127.0.0.1] Module: Kernel::System::Web::InterfaceAgent::Run (v1.58.2.1) Line: 201, referer: http://localhost/otrs/index.pl
[Fri Jul 22 11:52:10 2011] [error] [client 127.0.0.1] Module: /opt/otrs/bin/cgi-bin/index.pl (v1.89.2.1) Line: 46, referer: http://localhost/otrs/index.pl
[Fri Jul 22 11:52:10 2011] [error] [client 127.0.0.1] , referer: http://localhost/otrs/index.pl
[Fri Jul 22 11:52:10 2011] [error] [client 127.0.0.1] ERROR: OTRS-CGI-10 Perl: 5.10.0 OS: darwin Time: Fri Jul 22 11:52:10 2011, referer: http://localhost/otrs/index.pl
[Fri Jul 22 11:52:10 2011] [error] [client 127.0.0.1] , referer: http://localhost/otrs/index.pl
[Fri Jul 22 11:52:10 2011] [error] [client 127.0.0.1] Message: No UserID found for 'suryesh.chatwani'!, referer: http://localhost/otrs/index.pl
[Fri Jul 22 11:52:10 2011] [error] [client 127.0.0.1] , referer: http://localhost/otrs/index.pl
[Fri Jul 22 11:52:10 2011] [error] [client 127.0.0.1] Traceback (8297): , referer: http://localhost/otrs/index.pl
[Fri Jul 22 11:52:10 2011] [error] [client 127.0.0.1] Module: Kernel::System::User::UserLookup (v1.114) Line: 746, referer: http://localhost/otrs/index.pl
[Fri Jul 22 11:52:10 2011] [error] [client 127.0.0.1] Module: Kernel::System::Auth::Auth (v1.50) Line: 216, referer: http://localhost/otrs/index.pl
[Fri Jul 22 11:52:10 2011] [error] [client 127.0.0.1] Module: Kernel::System::Web::InterfaceAgent::Run (v1.58.2.1) Line: 201, referer: http://localhost/otrs/index.pl
[Fri Jul 22 11:52:10 2011] [error] [client 127.0.0.1] Module: /opt/otrs/bin/cgi-bin/index.pl (v1.89.2.1) Line: 46, referer: http://localhost/otrs/index.pl
[Fri Jul 22 11:52:10 2011] [error] [client 127.0.0.1] , referer: http://localhost/otrs/index.pl
Thanks in advance!
LDAP Configuration
Moderator: crythias
-
- Znuny newbie
- Posts: 2
- Joined: 20 Jul 2011, 10:41
- Znuny Version: 3.0.4
- Company: NV
-
- Znuny expert
- Posts: 241
- Joined: 06 Feb 2009, 11:15
- Znuny Version: 3.0.x
- Company: Perl-Services.de
- Contact:
Re: LDAP Configuration
This might be interesting to you: http://devilx.net/2010/03/19/otrs-ldap- ... customers/
Need a Perl/OTRS developer? You can contact me at info@perl-services.de