(OTRS 1.1.1)
I'm using Exchange 5.5 on a Windows 2000 (AD) network.

I found that I had to set $Self->{'AuthModule::LDAP::BaseDN'} to:
cn=Recpients,ou=NETBIOSDOMAIN,o=ORGANISATION

But to actually verify the user / password - I had to use the DN of
cn=username,dc=mydomain,dc=mytld

I made the following changes to facilitate this:
** Config.pm
    $Self->{'Customer::AuthModule::LDAP::BaseDN'} =
'cn=Recipients,ou=YOURDOMAIN,o=YOURORGANISATION';
    $Self->{'Customer::AuthModule::LDAP::AuthDN'} =
'dc=yourdomain,dc=yourtld';


** LDAP.pm - in section "get ldap preferences" - before "return $Self;":
$Self->{AuthDN} =
$Self->{ConfigObject}->Get('Customer::AuthModule::LDAP::AuthDN') ||
$Self->{BaseDN};


** LDAP.pm - in section "bind with user data -> real user auth" - replace
$Result = $LDAP->bind(dn => $UserDN, password => $Param{Pw}); with the
following block of code:


        #  First Check if we have different AuthDN & BaseDN..
    my $ExchangeDN = $Self->{AuthDN};
    if (!$ExchangeDN == $Self->{BaseDN}) {
        $ExchangeDN = "cn=".$Param{User}.",".$ExchangeDN;
    }

    $Result = $LDAP->bind(dn => $ExchangeDN, password => $Param{Pw});


Hope this helps anyone else who wants to get this going :)
I have uploaded the LDAP.pm file to http://itmanagers.net if any of you want
the complete file.

Daniel 'OneNonly' Palmer
http://itmanagers.net


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 1 July 2003 6:10 PM
To: otrs
Subject: [otrs] Re: [otrs] Re:Use Auth LDAP with Exchange server

Hi martin

your line in LDAP.pm  : 

# bind with user data -> real user auth.
# --
$Result = $LDAP->bind(dn => $UserDN, password => $Param{Pw});

my line in LDAP.pm : I need this syntax to work with my
Exchange LDAP auth

# bind with user data -> real user auth.
# --
$UserDN = 'cn='.$Param{User}.',ou=GMN,o=MININT';
$Result = $LDAP->bind(dn => $UserDN , password => $Param{Pw});
    
I don't see how to set the 
    $Self->{'AuthModule::LDAP::BaseDN'} 
in the config.pm so I've modified the source code.

Rémi


=============================================================

The contents of this email are confidential. Any unauthorised
use of the contents is expressly prohibited. If you have
received this email in error, please advise by telephone 
(reverse charges, (02) 6231 4177) immediately and then delete 
/destroy the email and any printed copies.

Thank you.

=============================================================

_______________________________________________
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

Reply via email to