[SOLVED] LDAP over SSL

Moderator: crythias

Locked
markinct
Znuny newbie
Posts: 6
Joined: 31 Mar 2013, 15:36
Znuny Version: 3.2.3
Real Name: Mark Hennessey

[SOLVED] LDAP over SSL

Post by markinct »

I have successfully configured LDAP for customer authentication. I want to secure the connection between my OTRS server (Ubuntu 12.04, OTRS 3.2.4) and the Active Directory server. All of my attempts to configure ldaps fail miserably. As in service apache2 restart fails with errors about syntax near the port parameter in the apache error.log


Here's the ldap part of Config.pm:

Code: Select all

# CustomerUser
# (customer ldap backend and settings)
$Self->{CustomerUser} = {
    Name => 'LDAP Data Source',
    Module => 'Kernel::System::CustomerUser::LDAP',
    Params => {
        # ldap host
        Host => 'ldaps://ad.host.com',
        # ldap base dn
        BaseDN => 'blah...blah...',
        # search scope (one|sub)
        SSCOPE => 'sub',
        # The following is valid but would only be necessary if the
        # anonymous user does NOT have permission to read from the LDAP tree
        UserDN => 'CN=blah....',
        UserPw => 'Password Goes Here',
        # in case you want to add always one filter to each ldap query, use
        # this option. e. g. AlwaysFilter => '(mail=*)' or AlwaysFilter => '(objectclass=user)'
        AlwaysFilter => '',
            # if both your frontend and your LDAP are unicode, use this:
            SourceCharset => 'utf-8',
            DestCharset   => 'utf-8',
            # if your frontend is unicode and the charset of your
            # ldap server is iso-8859-1, use these options.
            # SourceCharset => 'iso-8859-1',
            # Net::LDAP new params (if needed - for more info see perldoc Net::LDAP)
            Params => {
                verify => 'none'
                port => 636,
                timeout => 120,
                async => 0,
                version => 3,
                cafile => '/usr/local/cacerts/DOIT-DC016_SLDAP_SSL.cer'
            },
    },

As an OTRS newb any help would be greatly appreciated.
Last edited by markinct on 09 Apr 2013, 20:50, edited 1 time in total.
Newb, OTRS Helpdesk 3.2.4 on Ubuntu 12.04, MySQL and Apache 2
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: LDAP over SSL

Post by reneeb »

Code: Select all

                verify => 'none'
should be

Code: Select all

                verify => 'none', # note the trailing comma
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
markinct
Znuny newbie
Posts: 6
Joined: 31 Mar 2013, 15:36
Znuny Version: 3.2.3
Real Name: Mark Hennessey

Re: LDAP over SSL

Post by markinct »

Thank you! I looked at this for a couple of hours and missed that!!
Newb, OTRS Helpdesk 3.2.4 on Ubuntu 12.04, MySQL and Apache 2
Locked