Re: LDAP and Cocoa
Re: LDAP and Cocoa
- Subject: Re: LDAP and Cocoa
- From: Richard Wolf <email@hidden>
- Date: Fri, 13 Jan 2006 11:33:38 -0600
Vincent,
There is a well-established C API for LDAP. It is documented in an
IETF RFC and is one of the few RFCs (outsides of sockets) that
specifies an API:
http://www.mozilla.org/directory/ietf-docs/draft-ietf-ldapext-
ldap-c-api-05.txt
There are also a few good books that describe Java implementations of
the API ... they generally parallel the C API and will give you a
good flavor of what coding in LDAP is like. Scripting languages
(Perl, Python, etc.) also have APIs which are very similar in flavor
to the C API. If you learn the basics of LDAP coding in one
environment, you should be able to easily follow things in another.
But this is why Apple does not document LDAP ... it is already
documented elsewhere. :)
You can access the API in a Mac OS X app through the LDAP framework (/
System/Library/Frameworks/LDAP.framework). It works just like the
books say ... just include the framework in your project and insert
the appropriate includes.
Another thing you might want to consider is to wrap the LDAP command
line tools (ldapsearch, ldapmodify, etc.) in a Cocoa app a la
Moriarty. I have done that with a good deal of success and it is
really simple to achieve some pretty fun results.
You do not want to talk LDAP by way of the sockets API. It's
reinventing the wheel ... the OpenLDAP implementations of the LDAP
API work very nicely and will save you TONS of time. :)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden