1. Markus Schröder
  2. PowerBuilder
  3. Friday, 3 April 2020 07:45 AM UTC

Hello,

i need to query an external active directory from Powerbuilder via ldap. I tried the two examples from CodeExchange.

I cannot use the version with java (customer reglementation).
The other version just does a query against a local active directory (not an external server).

Can anyone help?

 

Adrian Gonzalez Accepted Answer Pending Moderation
  1. Friday, 3 April 2020 12:49 PM UTC
  2. PowerBuilder
  3. # 1

We've used the following in the past and works great:

http://vodacoder.com/Sources/TopWiz/ldapquery/PB10/n_ds_ldapquery.sru

Comment
  1. Roland Smith
  2. Friday, 3 April 2020 16:22 PM UTC
You can get it within a PB app from here:

https://www.topwizprogramming.com/freecode_ldapquery.html
  1. Helpful
  1. Roland Smith
  2. Friday, 3 April 2020 16:24 PM UTC
It builds a LDAP query dynamically based on the column names of a DataWindow object.
  1. Helpful
  1. Adrian Gonzalez
  2. Friday, 3 April 2020 16:32 PM UTC
Roland: thanks for all the code and knowledge you share with the community
  1. Helpful
There are no comments made yet.
Markus Schröder Accepted Answer Pending Moderation
  1. Saturday, 4 April 2020 19:38 PM UTC
  2. PowerBuilder
  3. # 2

Thanks all.

I managed it with the tool from topwizprogramming.

I was also able to connect to an external server (for example LDAP://ldap.forumsys.com)

Comment
There are no comments made yet.
Markus Schröder Accepted Answer Pending Moderation
  1. Monday, 6 April 2020 10:01 AM UTC
  2. PowerBuilder
  3. # 3

Another question.

Everything works fine with the topwizprogramming tool and LDAP (Port 389).
Now i need to connect via LDAPS protocol (Port 636).

My connect string is for example ldaps://x500.bund.de:636

ConnectToObject gives me a -6 "Could not connect to object"

Did i miss something?

Comment
  1. John Fauss
  2. Monday, 6 April 2020 21:42 PM UTC
Samuel - You may wish to consider posting your follow-up question as a new question so that more members are likely to see it, particularly since you tagged this original issue as "Resolved".
  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.