
Hi Nils,
Thanks for your response, here is ldif of test user
dn: uid=otrsuser1,ou=people,dc=sridhar,dc=com
objectClass: organizationalPerson
objectClass: posixAccount
objectClass: inetOrgPerson
objectClass: person
objectClass: top
uid: otrsuser1
uidNumber: 10004
gidNumber: 10004
displayName: Otrs User1
givenName: Otrs1
sn: User1
cn: Otrs User1
homeDirectory: /home/otrsuser1
o: SRIDHAR
description: Otrs User1
structuralObjectClass: inetOrgPerson
entryUUID: 73281132-b70d-102f-8ca3-9dd5df4589a5
creatorsName: cn=Manager,dc=sridhar,dc=com
createTimestamp: 20110118051337Z
userPassword:: e1NTSEF9NndaLzVEZWNJcFk3OVJXd3JoYTAzbmNKZHhwUlJuY2I=
mail: otrsuser1@sridhar.com
entryCSN: 20110119031328Z#000000#00#000000
modifiersName: cn=Manager,dc=sridhar,dc=com
modifyTimestamp: 20110119031328Z
Cheers,
Sridhar..
----- "Nils Leideck"
Dear Sridhar,
can you post an LDIF of your otrs test user?
Cheers, Nils
— Nils Leideck Senior Consultant
http://webint.cryptonode.de / a Fractal project
On 19.01.2011, at 03:56, sridhar.reddapani@arcs.org.au wrote:
Hi,
I am trying to make otrs integrate with openldap for agent authentication. My ldap allows anon query and I can query ldap from otrs without any problems I had this in Config.pm
######LDAP CONFIG ###### $Self->{AuthModule} = 'Kernel::System::Auth::LDAP'; $Self->{'AuthModule::LDAP::Host'} = '192.168.56.130'; $Self->{'AuthModule::LDAP::BaseDN'} = 'dc=sridhar,dc=com'; $Self->{'AuthModule::LDAP::UID'} = 'uid';
$Self->{'AuthModule::LDAP::GroupDN'} = 'cn=otrs,ou=groups,dc=sridhar,dc=com'; $Self->{'AuthModule::LDAP::UserAttr'} = 'UID'; $Self->{'AuthModule::LDAP::AccessAttr'} = 'memberUid'; $Self->{'AuthModule::LDAP::Params'} = { port => 389, timeout => 120, async => 0, version => 3, };
$Self->{'AuthSyncModule'} = 'Kernel::System::Auth::Sync::LDAP'; $Self->{'AuthSyncModule::LDAP::Host'} = 'ldap://192.168.56.130'; $Self->{'AuthSyncModule::LDAP::BaseDN'} = 'dc=sridhar, dc=com'; $Self->{'AuthSyncModule::LDAP::UID'} = 'uid'; $Self->{'AuthSyncModule::LDAP::UserSyncMap'} = { UserFirstname => 'givenName', UserLastname => 'sn', UserEmail => 'mail', }; $Self->{'AuthSyncModule::LDAP::UserSyncInitialGroups'} = [ 'otrs', ];
######END OF LDAP CONFIG #######
If I try to login with ldap user, I am getting " Login failed! Your username or password was entered incorrectly. " Error message. I can see below log in apache error_log
ERROR: OTRS-CGI-10 Perl: 5.8.8 OS: linux Time: Wed Jan 19 13:52:16 2011
Message: No UserID found for 'otrsuser1'!
Traceback (6751): Module: Kernel::System::User::UserLookup (v1.111) Line: 746 Module: Kernel::System::Auth::Auth (v1.49) Line: 216 Module: Kernel::System::Web::InterfaceAgent::Run (v1.58) Line: 201 Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler (unknown version) Line: 48 Module: (eval) (v1.88) Line: 204 Module: ModPerl::RegistryCooker::run (v1.88) Line: 204 Module: ModPerl::RegistryCooker::default_handler (v1.88) Line: 170 Module: ModPerl::Registry::handler (v1.99) Line: 31
Am I missing anything? should AuthSyncModule module automatically sync all users in otrs group to mysql? In my case I still have only two users I have initially created in mysql database users table. Any help is much appreciated.
Thanks, Sridhar.. --------------------------------------------------------------------- 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