Hi!!
I have windows 7 x64 with OTRS 3.3.13 ,but I can not connect to the ldap, I'm going crazy with this because I'm using the same settings that I have with version 3.2.10 and in that version if I can connect the LDAP.
Please help
"][Error][Kernel::System::CustomerUser::LDAP::_Connect][199] First bind failed! Bad file descriptor"
# CustomerUser
# (customer user ldap backend and settings)
$Self->{CustomerUser} = {
Name => 'LDAP Data Source',
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
# ldap host
Host => 'gpiii.gggg.com',
# ldap base dn
BaseDN => 'dc=xxx, dc=com',
# search scope (one|sub)
SSCOPE => 'sub',
#
UserDN => 'CN=OTRS SEARCH,CN=Users,DC=xxx,DC=com',
UserPw => 'Sop"#$e2013',
# 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->{'AuthModule::LDAP::AlwaysFilter'} = '(objectclass=user)';
# if your frontend is e. g. iso-8859-1 and the charset of your
# ldap server is utf-8, use these options.
# SourceCharset => 'utf-8',
# DestCharset => 'iso-8859-1',
# if both your frontend and your LDAP are unicode, use this:
SourceCharset => 'utf-8',
DestCharset => 'utf-8',
# Net::LDAP new params (if needed - for more info see perldoc Net::LDAP)
Params => {
port => 389,
timeout => 120,
async => 0,
version => 3,
},
},
ReadOnly => 1,
# customer unique id
CustomerKey => 'sAMAccountName',
# customer #
CustomerID => 'mail',
CustomerUserListFields => ['cn', 'mail'],
CustomerUserSearchFields => ['cn', 'givenname', 'mail'],
CustomerUserSearchPrefix => '',
CustomerUserSearchSuffix => '*',
CustomerUserSearchListLimit => 250,
CustomerUserPostMasterSearchFields => ['mail'],
CustomerUserNameFields => ['givenname', 'sn'],
# show not own tickets in customer panel, CompanyTickets
CustomerUserExcludePrimaryCustomerID => 0,
# add an ldap filter for valid users (expert setting)
# CustomerUserValidFilter => '(!(description=locked))',
# administrator can't change customer preferences
AdminSetPreferences => 0,
# # cache time to live in sec. - cache any database queries
CacheTTL => 120,
Map => [
# note: Login, Email and CustomerID are mandatory!
# if you need additional attributes from AD, just map them here.
# var, frontend, storage, shown (1=always,2=lite), required, storage-type, http-link, readonly
# [ 'UserSalutation', 'Title', 'title', 1, 0, 'var', '', 0 ],
[ 'UserFirstname', 'Firstname', 'givenname', 1, 1, 'var', '', 0 ],
[ 'UserLastname', 'Lastname', 'sn', 1, 1, 'var', '', 0 ],
[ 'UserLogin', 'Username', 'sAMAccountName', 1, 1, 'var', '', 0 ],
[ 'UserEmail', 'Email', 'mail', 1, 1, 'var', '', 0 ],
[ 'UserCustomerID', 'CustomerID', 'mail', 0, 1, 'var', '', 0 ],
# [ 'UserCustomerIDs', 'CustomerIDs', 'second_customer_ids', 1, 0, 'var', '', 0 ],
[ 'UserPhone', 'Phone', 'telephoneNumber', 1, 0, 'var', '', 0 ],
# [ 'UserAddress', 'Address', 'postaladdress', 1, 0, 'var', '', 0 ],
# [ 'UserComment', 'Comment', 'description', 1, 0, 'var', '', 0 ],
[ 'UserMobile', 'Puesto', 'description', 1, 0, 'var', '', 0 ],
[ 'UserRoom', 'Empresa', 'department', 1, 0, 'var', '', 0 ],
],
};
# Autenticacion Multple: Segundo Nivel
$Self->{'AuthModule2'} = 'Kernel::System::Auth::DB';
$Self->{'AuthModule::DB::CryptType2'} = 'crypt';
# ---------------------------------------------------- #
# ---------------------------------------------------- #
# #
# end of your own config options!!! #
# #
# ---------------------------------------------------- #
# ---------------------------------------------------- #
OTRS 3.3.13 LDAP
Moderator: crythias
-
- Znuny newbie
- Posts: 67
- Joined: 28 Jun 2013, 01:06
- Znuny Version: OTRS 5
- Real Name: Arturo
- Company: Purdy Motor
- Contact:
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: OTRS 3.3.13 LDAP
"][Error][Kernel::System::CustomerUser::LDAP::_Connect][199] First bind failed! Bad file descriptor"
usually means it's having trouble over inet6.
viewtopic.php?t=16543
usually means it's having trouble over inet6.
viewtopic.php?t=16543
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny newbie
- Posts: 67
- Joined: 28 Jun 2013, 01:06
- Znuny Version: OTRS 5
- Real Name: Arturo
- Company: Purdy Motor
- Contact:
Re: OTRS 3.3.13 LDAP
excuse my ignorance.
Inet6 is configured in Linux platform?
I use Windows 7
There is some settings that file in Windows 7 with the inet6?
thank you very much for your support friend
Inet6 is configured in Linux platform?
I use Windows 7
There is some settings that file in Windows 7 with the inet6?
thank you very much for your support friend
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: OTRS 3.3.13 LDAP
Search Results
inet6? it's a Perl call that's returning the error. For instance, if you ping your domain controller and it resolves IPv6 before IPv4 and your app is expecting a response from IPv4, you might get bad file descriptor. Yes, Windows 7, no it's not a Linux issue.
inet6? it's a Perl call that's returning the error. For instance, if you ping your domain controller and it resolves IPv6 before IPv4 and your app is expecting a response from IPv4, you might get bad file descriptor. Yes, Windows 7, no it's not a Linux issue.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny newbie
- Posts: 67
- Joined: 28 Jun 2013, 01:06
- Znuny Version: OTRS 5
- Real Name: Arturo
- Company: Purdy Motor
- Contact:
Re: OTRS 3.3.13 LDAP
I want to thank you because I could solve my problem with LDAP.
I attached the line to disable the inet6.
Problem = First bind failed! Bad file descriptor
Cause: INET6
Solution:
I attached the line to disable the inet6.
Problem = First bind failed! Bad file descriptor
Cause: INET6
Solution:
Code: Select all
#Enable LDAP authentication for Customers / Users
$Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
$Self->{'Customer::AuthModule::LDAP::Host'} = 'gpmxxd.purxxo.com';
$Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'dc=purxxo,dc=com';
$Self->{'Customer::AuthModule::LDAP::UID'} = 'sAMAccountName';
#CustomerUser
#(customer user database backend and settings)
# Net::LDAP new params (if needed - for more info see perldoc Net::LDAP)
Params => {
inet6 => 0,
inet4 => 1,
port => 3268,
timeout => 120,
async => 0,
version => 3,
},
$Self->{CustomerUser} = {
Name => 'LDAP Datasource',
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
Host => 'gpxxxad.purxxo.com',
BaseDN => 'DC=purxxo,DC=com',
SSCOPE => 'sub',
UserDN =>'CN=OTRS SEARCH,CN=Users,DC=purxxo,DC=com',
UserPw => 'Soxxxx',
},
# customer unique id
CustomerKey => 'sAMAccountName',
# customer #
CustomerID => 'mail',
CustomerUserListFields => ['sAMAccountName', 'cn', 'mail'],
CustomerUserSearchFields => ['sAMAccountName', 'cn', 'mail'],
CustomerUserSearchPrefix => '',
CustomerUserSearchSuffix => '*',
CustomerUserSearchListLimit => 1600,
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' ],
],
};
# ---------------------------------------------------- #
# ---------------------------------------------------- #
# #
# end of your own config options!!! #
# #
# ---------------------------------------------------- #
# ---------------------------------------------------- #
}