LDAP - is there an API


 
Thread Tools Search this Thread
Top Forums Programming LDAP - is there an API
# 1  
Old 09-05-2008
LDAP - is there an API

Hi,

I've just been experimenting with AIX's ldapsearch utility - I've been successfully using it to retrieve information from an Active Directory, however, I need to make similar calls from a C program.

Is there a suitable LDAP API on AIX which will give me similar capabilties to the ldapsearch utlity?

An alternative is to call ldapsearch from my program but that's not really ideal.

Thanks for looking Smilie
# 2  
Old 09-05-2008
Yes, there is a C API.

Have a look at the IBM Directory Server C-Client SDK Programming Reference Version 5.2 Document Number SC32-1341-00 or later.

It is available on the Web if you do a search for it.
# 3  
Old 09-05-2008
Depending on the source of your ldapsearch utility OpenLDAP may be alternately applicable. OpenLDAP, Software, Man Pages: ldap
# 4  
Old 09-06-2008
Thanks for your posts Smilie

I spoke to our UNIX admin guy who located some additional ldap stuff - the LPP contained some additional directories one of which was an examples folder which contained, amongst other utilities, the source code for ldapsearch. I was able to build this quite easily and I'll modify it for my application which needs to only do specific types of search.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Web Development

Face-api.js — JavaScript API for Face Recognition in the Browser with tensorflow.js

Ref: https://itnext.io/face-api-js-javascript-api-for-face-recognition-in-the-browser-with-tensorflow-js-bcc2a6c4cf07 (0 Replies)
Discussion started by: Neo
0 Replies

2. Solaris

LDAP Client not connecting to LDAP server

I have very limited knowledge on LDAP configuration and have been trying fix one issue, but unsuccessful. The server, I am working on, is Solaris-10 zone. sudoers is configured on LDAP (its not on local server). I have access to login directly on server with root, but somehow sudo is not working... (9 Replies)
Discussion started by: solaris_1977
9 Replies

3. Shell Programming and Scripting

Need to run an API from a script and extract fields from output of API

Hi, I need to call an API (GetUsageDetails)from inside a shell script which takes an input argument acct_nbr. The output of API will be like : <usageAccum accumId="450" accumCaptn="PM_125" inclUnits="1410.00" inclUnitsUsed="744.00" shared="true" pooled="false" prorated="false"... (1 Reply)
Discussion started by: rkrish
1 Replies

4. UNIX for Advanced & Expert Users

something like LDAP Administrator 2011.1 "LDAP-SQL" but for the CLI

Hi I am searching a tool like "LDAP Administrator 2011.1"/ "LDAP-SQL" but for the CLI. Wish to use LDAP-SQL in scripts (non Windows GUI environment) http://ldapadministrator.com/resources/english/2011.1/images/sqlquery_large.png Softerra LDAP Administrator 2011.1 - What's New OS is... (2 Replies)
Discussion started by: slashdotweenie
2 Replies

5. Programming

perl api

Does anyone have any example of how to use the perl api within Build Forge (0 Replies)
Discussion started by: saku
0 Replies

6. Programming

API in C for compress (.Z) ?

Hi all, I would like to know if an API for compress (.Z) exists in C ? I want to write a program which process a large number of data files with efficient compression at the end. Thanks http://fedora.unix.com/images/misc/progress.gif (4 Replies)
Discussion started by: domiq44
4 Replies

7. Linux

New collectl API

If anyone is interested I just released a new version that contains an API for collecting any kind of data you want and to include it in the user interface, data files and even be able to send it via sockets to other tools. Of course you need to be a perl programmer to use it... A second... (0 Replies)
Discussion started by: MarkSeger
0 Replies

8. HP-UX

How to use getdiskbyname() API

I would like to use getdiskbyname() this API to get disk size and disk usage can any one give me an example of c program thanks (0 Replies)
Discussion started by: alert0919
0 Replies

9. UNIX for Dummies Questions & Answers

tyoes of API

What is Low-Level API and High-Level API? (1 Reply)
Discussion started by: sumsin
1 Replies
Login or Register to Ask a Question