Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Data from LDAP

how to fetch the data from LDAP.

I have to fetch all the users from LDAP and import recipient from LDAP to send mail using N printing

11 Replies
petter
Partner - Champion III
Partner - Champion III

You can use at least two approaches to retrieve LDAP data so you can get them as normal tables in QlikView:

1. OLE DB provider for Microsoft Directory Services:

     https://technet.microsoft.com/en-us/library/ms190803(v=sql.105).aspx

    Using SQL ...... to read the LDAP (might only work with Microsoft LDAP (Active Directory) ... haven't tested it)

2. LDAP search with PowerShell - multiple approaches:

     http://activedirectoryfaq.com/2015/02/ldap-search-powershell-find-ldapobject/

You can in your load script use the EXECUTE statement to execute a PowerShell command

and there are many more options available too...

avinashelite

As per my knowledge you cannot directly pull data from LDAP and LDAP is not a data base , it should sync the data to some DB and then only you can fetch the same .

archive.oreilly.com/pub/post/ldap_is_not_a_database.html

Hope this helps you

avinashelite

c.png

flipside
Partner - Specialist II
Partner - Specialist II

Actually it is possible. I haven't got the code with me but I have done it. If no-one else knows I'll try and find it and post it later.

EDIT: Although this is using Qlikview and not NPrinting which I am not familiar with.

avinashelite

hi flipside

Can you please explain the procedure , will try the same

flipside
Partner - Specialist II
Partner - Specialist II

This might help, the code looks familiar.

Re: Active Directory Query

Not sure what ODBC drivers are needed. It also takes a bit to decipher some of the data because it is binary based values stored as integers, I had to write some code to do that.

petter
Partner - Champion III
Partner - Champion III

2015-09-30 #1.PNG

Not applicable
Author

I tried to fetch data using Microsoft Directory Services.

Not able to see any table

image.pngimage2.png

petter
Partner - Champion III
Partner - Champion III

You might have to write the SQL yourself - since the LOAD wizard doesn't seem to be able to pick out the right "tables"...