need help with LDAP auth

Moderator: crythias

Locked
gangaskan
Znuny newbie
Posts: 7
Joined: 11 Jan 2011, 22:18
Znuny Version: 3.0.4

need help with LDAP auth

Post by gangaskan »

:( so i decided to upgrade my version from 3.0.4 to .6 and i am not sure what happened. i decided to start all over and wipe the SQL database, remove the front end files (/opt/otrs) and i re installed per guide from the wiki.


i copied over my Config.pm that i had successfully working LDAP config and it will not pull any users now. i've been baning my head over this for quite some time. was there anything else i needed to port over?

if this helps, this is my LDAP config under my config options

# Start of LDAP Config
$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host'} = 'server.mydomain.org';
$Self->{'AuthModule::LDAP::BaseDN'} = 'dc=mydomain, dc=org';
$Self->{'AuthModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'AuthModule::LDAP::SearchUserDN'} = 'sssssss';
$Self->{'AuthModule::LDAP::SearchUserPw'} = 'xxxxxxx';


# This is an example configuration for an LDAP auth. backend.
# (take care that Net::LDAP is installed!)
$Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
$Self->{'Customer::AuthModule::LDAP::Host'} = 'server.mydomain.org';
$Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'dc=mydomain, dc=org';
$Self->{'Customer::AuthModule::LDAP::UID'} = 'sAMAccountName';

# The following is valid but would only be necessary if the
# anonymous user do NOT have permission to read from the LDAP tree
$Self->{'Customer::AuthModule::LDAP::SearchUserDN'} = 'sssssss';
$Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = 'xxxxxxxx';

# CustomerUser
# (customer user database backend and settings)
$Self->{CustomerUser} = {
Name => 'Datenbank',
Module => 'Kernel::System::CustomerUser::DB',
Params => { Table => 'customer_user',
# to use an external database
# DSN => 'DBI:odbc:yourdsn',
# DSN => 'DBI:mysql:database=customerdb;host=customerdbhost',
# User => '', Password => '',
},
# customer uniq id
CustomerKey => 'login',
CustomerID => 'customer_id',
CustomerValid => 'valid_id',
CustomerUserListFields => ['first_name', 'last_name', 'email'],
# CustomerUserListFields => ['login', 'first_name', 'last_name', 'customer_id', 'email'],
CustomerUserSearchFields => ['login', 'last_name', 'customer_id'],
CustomerUserSearchPrefix => '',
CustomerUserSearchSuffix => '*',
CustomerUserSearchListLimit => 250,
CustomerUserPostMasterSearchFields => ['email'],
CustomerUserNameFields => ['salutation', 'first_name', 'last_name'],
# ReadOnly => 1,
Map => [
# note: Login, Email and CustomerID needed!
# var, frontend, storage, shown, required, storage-type, http-link
[ 'UserSalutation', 'Salutation', 'salutation', 1, 0, 'var' ],
[ 'UserFirstname', 'Firstname', 'first_name', 1, 1, 'var' ],
[ 'UserLastname', 'Lastname', 'last_name', 1, 1, 'var' ],
[ 'UserLogin', 'Login', 'login', 1, 1, 'var' ],
[ 'UserPassword', 'Password', 'pw', 0, 1, 'var' ],
[ 'UserEmail', 'Email', 'email', 0, 1, 'var' ],
[ 'UserCustomerID', 'CustomerID', 'customer_id', 0, 1, 'var' ],
[ 'UserComment', 'Comment', 'comments', 1, 0, 'var' ],
[ 'ValidID', 'Valid', 'valid_id', 0, 1, 'int' ],
],
};

# CustomerUser1
# (customer user ldap backend and settings)
$Self->{CustomerUser1} = {
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
# ldap host
Host => 'server.mydomain.org',
# ldap base dn
BaseDN => 'dc=mydomain, dc=org',
# 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 => 'sssssss',
UserPw => 'xxxxxxxx',
AlwaysFilter => '',
SourceCharset => 'utf-8',
DestCharset => 'iso-8859-1',
},
# customer uniq 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' ],
],
};

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

# authentication sync settings #

# (enable agent data sync. after succsessful #

# authentication) #

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

# This is an example configuration for an LDAP auth sync. backend.

# (take care that Net::LDAP is installed!)

$Self->{'AuthSyncModule'} = 'Kernel::System::Auth::Sync::LDAP';

$Self->{'AuthSyncModule::LDAP::Host'} = 'server.mydomain.org';

$Self->{'AuthSyncModule::LDAP::BaseDN'} = 'dc=mydomain,dc=org';

$Self->{'AuthSyncModule::LDAP::UID'} = 'uid';



# The following is valid but would only be necessary if the

# anonymous user do NOT have permission to read from the LDAP tree

$Self->{'AuthSyncModule::LDAP::SearchUserDN'} = 'sssssss';

$Self->{'AuthSyncModule::LDAP::SearchUserPw'} = 'xxxxxxxxx';


# in case you want to add always one filter to each ldap query, use

# this option. e. g. AlwaysFilter => '(mail=*)' or AlwaysFilter => '(objectclass=user)'

$Self->{'AuthSyncModule::LDAP::AlwaysFilter'} = '';



# AuthSyncModule::LDAP::UserSyncMap

# (map if agent should create/synced from LDAP to DB after successful login)

$Self->{'AuthSyncModule::LDAP::UserSyncMap'} = {

# DB -> LDAP

UserFirstname => 'givenName',

UserLastname => 'sn',

UserEmail => 'mail',

};

# End LDAP config
#------------------------------------------------------------------------


when i do try to authenticate i do get in my system log

First bind failed! 80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext error, data 525, vece�


i did some searching, but as far as i have come up with my config is wrong or to check the user account to see if its not locked out, however, the account is not locked out under AD.


could someone verify that my config is correct ? minus domain information (server, domain, accounts) i had omitted those due to privacy :D
Locked