[otrs] LDAP auth: Panic! No UserData!!!
Régis OBERLE
regis.oberle at waterair.com
Fri Sep 28 21:38:40 GMT 2007
Hello,
I'm trying to get agents synchronized through our Microsoft Active Directory.
Login only works for agents which already are in the otrs database. All other agents get the "Panic! No UserData!!!" error message.
Reading this, http://lists.otrs.org/pipermail/otrs/2007-January/017528.html, I understand that in fact, data retrieved from LDAP are not inserted in the database as it should.
But I really don't know how to correct this. I've tested a lot of params without success.
I give you my Config.pm if it can helps.
Thank you.
Régis
====================== Config.pm =================================
$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host'} = 'carole.waterair.com';
$Self->{'AuthModule::LDAP::BaseDN'} = 'ou=Utilisateurs,dc=waterair,dc=com';
$Self->{'AuthModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'AuthModule::LDAP::SearchUserDN'} = 'cn=otrs_ldap,cn=Users,dc=waterair,dc=com';
$Self->{'AuthModule::LDAP::SearchUserPw'} = 'pass';
# UserSyncLDAPMap
# (map if agent should create/synced from LDAP to DB after login)
$Self->{UserSyncLDAPMap} = {
# DB -> LDAP
Firstname => 'givenname',
Lastname => 'sn',
Email => 'mail',
};
# UserSyncLDAPGroups
# (If "LDAP" was selected="selected" for AuthModule, you can specify
# initial user groups for first login.)
$Self->{UserSyncLDAPGroups} = [
'users',
];
$Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
$Self->{'Customer::AuthModule::LDAP::Host'} = 'carole.waterair.com';
$Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'ou=Utilisateurs,dc=waterair,dc=com';
$Self->{'Customer::AuthModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'Customer::AuthModule::LDAP::SearchUserDN'} = 'cn=otrs_ldap,cn=Users,dc=waterair,dc=com';
$Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = 'pass';
#CustomerUser
#(customer user database backend and settings)
$Self->{CustomerUser} = {
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
Host => 'carole.waterair.com',
BaseDN => 'ou=Utilisateurs,dc=waterair,dc=com',
SSCOPE => 'sub',
UserDN =>'cn=otrs_ldap,cn=Users,dc=waterair,dc=com',
UserPw => 'pass',
#SourceCharset => 'iso-8859-1',
#DestCharset => 'utf-8',
},
# customer unique id
CustomerKey => 'sAMAccountName',
# customer #
CustomerID => 'mail',
CustomerUserListFields => ['sAMAccountName', 'cn', 'mail'],
CustomerUserSearchFields => ['sAMAccountName', 'cn', 'mail'],
CustomerUserSearchPrefix => '',
CustomerUserSearchSuffix => '*',
CustomerUserSearchListLimit => 250,
CustomerUserPostMasterSearchFields => ['mail'],
CustomerUserNameFields => ['givenname', 'sn'],
Map => [
# note: Login, Email and CustomerID needed!
# var, frontend, storage, shown, required, storage-type
#[ 'UserSalutation', 'Title', 'title', 1, 0, 'var' ],
[ 'UserFirstname', 'Firstname', 'givenname', 1, 1, 'var' ],
[ 'UserLastname', 'Lastname', 'sn', 1, 1, 'var' ],
[ 'UserLogin', 'Login', 'sAMAccountName', 1, 1, 'var' ],
[ 'UserEmail', 'Email', 'mail', 1, 1, 'var' ],
[ 'UserCustomerID', 'CustomerID', 'mail', 0, 1, 'var' ],
[ 'UserPhone', 'Phone', 'telephonenumber', 1, 0, 'var' ],
#[ 'UserAddress', 'Address', 'postaladdress', 1, 0, 'var' ],
#[ 'UserComment', 'Comment', 'description', 1, 0, 'var' ],
],
};
More information about the otrs
mailing list