1. Markus Schröder
  2. PowerBuilder
  3. Tuesday, 7 April 2020 09:35 AM UTC

Has someone succeeded in querying an ActiveDirectory server with LDAP and SSL.

I use the ldapquery tool from topwizprogramming and i'm able to connect to the server on port 389, but not on secure port 636 (my connect string is for example ldap://x500.bund.de:636)

The server is reachable on both ports and delivers data (tested with Softerra LDAP Browser).

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Tuesday, 7 April 2020 13:15 PM UTC
  2. PowerBuilder
  3. # 1

Hi

Could it be that you have to open that port in the firewall/router for access?

Comment
  1. Markus Schröder
  2. Tuesday, 7 April 2020 15:08 PM UTC
Hi Miguel,

i don't think so because the other tool on the same machine (Softerra LDAP Browser) works correct on port 636.

Here is a snippet of my example Code

integer li_rc

OLEObject adoConnection, adoRootDSE



adoConnection.ConnectToNewObject('ADODB.Connection')

adoConnection.Provider = 'ADSDSOObject'

adoConnection.Open('Active Directory Provider')

li_rc = adoRootDSE.ConnectToObject('LDAP://x500.bund.de:389')



The last line is ok with port 389, with port 636 it returns -6



  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.