[MacRuby-devel] Including and accessing C libraries

Joshua Ballanco joshua.ballanco at apple.com
Sun Sep 26 00:43:20 PDT 2010


Hi Evan,

Have you looked at Open Directory?

https://developer.apple.com/library/mac/#documentation/Networking/Conceptual/Open_Directory/Introduction/Introduction.html
https://developer.apple.com/library/mac/#documentation/Networking/Reference/OpenDirectoryFramework/Reference/reference.html%23//apple_ref/doc/uid/TP40008764

OD provides a unified API for accessing account information from a number of sources, including LDAP servers. The documentation is a bit sparse, but I'd recommend playing around with it a bit in a macirb session and reading through the headers (there's not that many).

Cheers,

Josh


On Sep 25, 2010, at 11:15 PM, Evan Chaney wrote:

> Hello.
> 
> I would like to build an app using MacRuby and Cocoa to retrieve information from an LDAP server, combine it with other data and present the result to the user.
> 
> I have not found a great framework in Cocoa for making and using LDAP connections. I also have not had success in including and using Ruby gems like Net::LDAP.
> 
> My last resort is to try and use the OpenLDAP libldap C library shipped with Mac OS X. I am currently stuck at figuring out how to include and access this library from MacRuby. Does anyone know of documentation that may help?
> 
> Evan
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel



More information about the MacRuby-devel mailing list