[Date Prev][Date Next]
Re: Simple Bind w/TLS without SASL/Kerberos possible to AD?
- To: firstname.lastname@example.org
- Subject: Re: Simple Bind w/TLS without SASL/Kerberos possible to AD?
- From: David Mitton <email@example.com>
- Date: Fri, 08 Jul 2011 10:24:12 -0400
- Content-disposition: inline
- User-agent: Internet Messaging Program (IMP) H3 (4.1.4)
Thanks for the reply, sorry about the poor quoting, I'm cut and
pasting from the web archive.
From: Jose Ildefonso Camargo Tolosa <firstname.lastname@example.org>
Date: Fri, 8 Jul 2011 08:58:16 -0430
On Thu, Jul 7, 2011 at 4:08 PM, David Mitton <email@example.com>
I am trying to use OpenLDAP from an embedded Linux system to
authenticate (PAM LDAP) against a Windows AD server. I must use
TLS to secure this, but I would rather not use SASL or Kerberos if
pam_ldap = http://www.padl.com/pam_ldap.html OR
http://arthurdejong.org/nss-pam-ldapd/ .... you are not dealing
here with OpenLDAP....
DJM> Good point, I will look at exactly which module(s) I'm using and
come back to that later. I beleive for the moment I'm using whatever is in
Centos. I have Arthur Jong's modules as well, but I don't think
I've installed them yet.
I have been able to mock this up on a Centos system without TLS, and
the PAM worked fine. When I turn on TLS, the Windows server
handshakes the TLS but then has a problem with the first message. I
am also working that side.
I have walked through the handshake with s_client, and the connection
I am now working with ldapsearch and trying things....
The first thing I notice is that it seems to try an SASL bind. Can
I stop this?
I'm not sure I have SASL actually installed on this system, and I'm
not sure I want it in my target.
ldapsearch -x <--- does simple auth instead of sasl.
Is this possible? from both the OpenLDAP client and/or Windows AD?
Ideas on the correct alphabet soup to try this with ldapsearch would
Well, I have seen this done through samba, but you *should* be able
to use AD's LDAP to authenticate your Linux workstation, I guess.
I tried the following command and here are the results... note that
after the simple_bind, a SASL_bind line appears. I'd like to dig
into this deeper.... What will give me more info?
ldapsearch -d 1 -v -x -H ldaps://172.16.9.3:363 -b
"dc=foobar,dc=local" -D 'FOOBAR\mgr' -w 'Strongpw@09'
ldap_initialize( ldaps://172.16.9.3:363 )
ldap_new_connection 1 1 0
ldap_connect_to_host: TCP 172.16.9.3:363
ldap_connect_to_host: Trying 172.16.9.3:363
ldap_connect_timeout: fd: 3 tm: -1 async: 0
ldap_bind: Can't contact LDAP server (-1)