• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: LDAP and Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Cocoa Custom NSCell Binding Issue
  • Next by Date: confusing Protocol error
  • Previous by thread: Re: LDAP and Cocoa
  • Next by thread: NSDate, NSDateFormatter, and NSDatePicker
  • Index(es):
    • Date
    • Thread