Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

LDAP Authentication and Lookup Plug in, sending unencrypted credentials

OK so, we are finally playing around with using the LDAP plug in for our agents. We set it up successfully, populating just the Active Directory section, Domain and DNS IP information. We did not configure any LDAP settings because eventually/soon they will be eliminating LDAP from our environment and using just Active Directory for authentication.

We very quickly got a message from our networking people that they received an alert: The alert condition for 'AD Unencrypted LDAP Binds' was triggered

Telling us that if we were setting up an application to use Active Directory, that we look into using TLS/SSL over port 636, and that we should change our passwords lol

There is a check mark in the LDAP section to "Use TLS", but does this only apply if you are configuring LDAP? Or is there another way to configure the plugin/osT to use TLS or SSL when sending our credentials from osTicket to the AD?



osTicket Version v1.10.1 (9ae093d) —  Up to date
Web Server Software Microsoft-IIS/7.5
MySQL Version 5.7.17
PHP Version 5.6.24

Comments

  • My understanding was the the tick box was wether or not the plugin should use TLS when connecting to the server to auth the user.
  • For clarification, when you say users we are including agents? 

    And since the TLS tick box is just located in the LDAP section, when connecting to the server, is that just an LDAP server if you define one? If I don't define the LDAP does it use TLS for the AD as well?



    image
  • edited January 12
    Q: For clarification, when you say users we are including agents? 
    A: Well when said Users I meant users (which was short sighted)... but yes in this case it would also include Agents.  So in this case I mean "authentication attempts by Users or Agents" depending on which groups you have the plugin configured to allow.

    AD is essentially Microsoft's proprietary LDAP implementation.  I would assume that you would put your AD server in the field (we do and use the FQDN for the server). Then that is the server it would use TLS to connect to.
  • Didn't mean to split hairs on the "users" but I know often times when we are talking about osTicket, there is a difference between Users and Agents, and since you can configure the plugin for both Users and/or Agents, I just wanted to make sure I was understanding :-)

    Thanks always @ntozier

    We will try putting our AD server in there. I know currently we have a separate LDAP server on our network as well, but as I said it will be going away soon so I didn't want to get tied to that only to have it leave.


  • The plugin doesn't seem to work with ldaps on port 636. The checkbox is for the STARTTLS feature, which works on 389 and issues a STARTTLS command after connection. To use straight TLS on port 636 would require changes to the plugin code.   
  • http://php.net/manual/en/function.ldap-start-tls.php
    First comment, 12 years ago:
    "Please note there is a difference between ldaps and start-TLS for ldap.  start-TLS uses port 389, while ldaps uses port 636.  ldaps has been deprecated in favour of start-TLS for ldap.  Both encrypted (start-TLS ldap)  and unencrypted ldap (ldap) run on port 389 concurrently.

    Errors encountered are generally due to misunderstanding how to implement TLS-encrypted ldap."

    apparently straight TLS on port 636 was depreciated... like 12 years ago.


  • We did a test using the domain for the ldap server, and have not gotten any nasty notes from anyone yet about sending unencrypted credentials. But we just did it yesterday afternoon so perhaps there's still time...

    It doesn't matter to me on which port, or which protocol is used really as long as the authentication is encrypted lol

  • its possible that jared hit the "PHP Warning:  ldap_start_tls(): Unable to start TLS: Connect error in" issue and decided to handle it later.  

    I have a plugin I've been working on that his his this wall.  And from what I can tell it requires you to download a cert and put it on the server.  (same url I sent you posts 2 (linux) and 3 (windows) and or create a config file with TLS_REQCERT never.
  • Populating the LDAP server information with our domain, and checking the Use TLS checkbox seems to have worked. Our Networking Nazis checked their logs and there was no indication that my credentials were sent unencrypted this time. You all can stop searching the deep web for my password now....
  • I stopped searching a while ago... once I foun.... errr I mean.  Carry on. Nothing to see here. :)
  • LDAPS is deprecated in OpenLDAP, as it has no formal standard, but it is fully supported in Active Directory, and it may be required in some environments, specifically because of this potential issue, that nothing in basic LDAP prevents clients from authenticating unencrypted.
Sign In or Register to comment.