LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Closed Thread
  Search this Thread
Old 02-10-2017, 12:00 PM   #1
PastulioLive
Member
 
Registered: Nov 2014
Posts: 39

Rep: Reputation: Disabled
Problem authenticating with OpenLDAP server, ldap-client tools work


Hi everybody,

I am having some problems getting LDAP Authentication to work using OpenLDAP 2.4 op Scientific Linux/Centos 7.
The new server has an imported database from an old OpenLDAP 2.3 server.

The new OpenLDAP server seems to be working, for the moment without TLS and just a simple bind.
I can query and modify the directory for our dc=example,dc=com DIT using the openldap-client tools without a problem.

The problem arises when I try to authenticate to this server from intranet websites (like bugzilla) or our Fedora workstations using SSSD.


On our Bugzilla server, I get the message when logging in:
Code:
An error occurred while trying to search LDAP for "myuser": No such object

Traceback:

 at Bugzilla/Auth.pm line 165, <DATA> line 755.
	Bugzilla::Auth::_handle_login_result(...) called at Bugzilla/Auth.pm line 61
	Bugzilla::Auth::login(...) called at Bugzilla.pm line 328
	Bugzilla::login(...) called at /opt/bugzilla/index.cgi line 21
On the bugzilla instance, I have setup the correct server and the correct BaseDN (ou=People,dc=example,dc=com).
The bugzilla BaseDN has not changed since the database was imported.
The old server also uses simple bind without TLS.
Only the server url has changed.


When I try to log in on our Fedora machines using this server I simply get an "Authentication Failure".
EDIT: This was solved by adding FORCELEGACY=yes in stead of FORCELEGACY=no in /etc/sysconfig/authconfig.
I figured this out by stopping sssd and running it manually in interactive debug mode: sssd -i -d 4
I find it strange because our old LDAP server also does not use TLS, and it was working find with just the --disableldaptls flag

Code:
authconfig --enableldap \
           --enableldapauth \
           --dispableldaptls \
           --ldapserver=ldap1.example.com \
           --ldapbasedn="dc=example,dc=com" \
           --enablemkhomedir \
           --enablesssd \
           --enablecachecreds \
           --update

I am however getting the correct information from the LDAP server.
The command below returns the correct directory information:
Code:
$ getent passwd myuser
myuser:*:1001:1001:My User:/home/myuser:/bin/bash

I have tried to change the users password in ldap a couple of times using both CRYPT and SSHA to make sure it was not a password issue.

I setup a jenkinsci server using a docker container, and this appears to be authenticating to the server correctly.
Bugzilla is a problem.

I have also run a packet capture while authenticating on bugzilla.
Here you can find an obfuscated screenshot of the wireshark transaction for Bugzilla:
Capture-Screenshot

I can't post the pcap file unfortunately.


Using the GQ LDAP browser I can see all of the entries.

There is one domainComponent in the DIT:

I can also see the object:
Code:
dn: dc=example,dc=com
objectClass: top
objectClass: domain
domainComponent: example
The ou's required for authentication are also there:
Code:
dn: ou=Group,dc=example,dc=com
objectClass: top
objectClass: organizationalUnit
ou: Group

dn: ou=People,dc=example,dc=com
objectClass: top
objectClass: organizationalUnit
ou: People
I have also checked if the LDAP version being used could be a problem.
The olcAllow: bind_v2 configuration setting is present.

I would almost think it is a client issue, but this would not explain why bugzilla has problems too, and that it does work on our old server.

Any help is greatly appreciated, I am really stuck here!

Thanks in advance,
Pascal

Last edited by PastulioLive; 02-11-2017 at 01:10 PM.
 
Old 02-11-2017, 07:31 AM   #2
PastulioLive
Member
 
Registered: Nov 2014
Posts: 39

Original Poster
Rep: Reputation: Disabled
I have condensed the content of this post to the original post, please delete this post.

Last edited by PastulioLive; 02-11-2017 at 01:09 PM.
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
AIX LDAP client authenticate against Linux Openldap server over TLS/SSL gnu699 AIX 4 01-16-2016 07:04 AM
openldap client fails to connect ldap server 'ldap_bind: Can't contact LDAP server' Suresh Chandra Linux - Server 1 04-30-2014 02:23 AM
[SOLVED] openldap client fails to connect ldap server 'ldap_bind: Can't contact LDAP server' JALITE Linux - Server 12 09-30-2010 08:17 AM
Solaris 10 with DSEE 6.2 as ldap server and RHEL 5.1 as Openldap client al.lmco Linux - Newbie 1 07-04-2008 05:28 AM
authenticating through one ldap server that uses other ldap servers & active director dreamm Linux - Server 1 02-21-2007 08:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration