I've setup LDAP to use AD for agent authentication, my configuration is:

Otrs Server: Debian lenny
AD: Windows 2000
Server: 172.27.110.123
Domain: mycompnay.com
AD User group= OtrsAgent
User in group: my name
pass:12345678

User "my name" has adminsitrative privileges in windows AD.

I put this in the Config.pm file:

    # ---------------------------------------------------- #
    # insert your own config settings "here"               #
    # config settings taken from Kernel/Config/Defaults.pm #
    # ---------------------------------------------------- #

# Agent Authentication
$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host'} = '172.27.110.123'; 
$Self->{'AuthModule::LDAP::BaseDN'} = 'dc=mycompany, dc=com';
$Self->{'AuthModule::LDAP::UID'} = 'sAMAccountName';

$Self->{'AuthModule::LDAP::SearchUserDN'} = 'cn=my name,ou=OtrsAgent,dc=mycompany,dc=com';
$Self->{'AuthModule::LDAP::SearchUserPw'} = '12345678';

     $Self->{'AuthModule::LDAP::GroupDN'} = 'cn=OtrsAgent,dc=mycompany,dc=com';
     $Self->{'AuthModule::LDAP::AccessAttr'} = 'member';
     $Self->{'AuthModule::LDAP::UserAttr'} = 'DN';

    # ---------------------------------------------------- #

First login using DB, I set up a group in Otrs  admin with the name OtrsAgent, a usr "my name" with pass=12345678, then I changed the config.pm for LDAP.

The login form changes, but if I put a user from OtrsAgent group I get:
Login failed! Your username or password was entered incorrectly
So my questions are:

1.- what's wrong in the Config.pm?
2.- How can I login to otrs? I'tried to login with Otrs or AD users, but is not possible.
3.- How can I check if LDAP client is running OK?

Any help is wellcome, I've digg the internet and manual, but I still cant find the aswers.

Saludos
Alfredo