Zeberdee wrote:
> On Apr 2, 4:15 pm, Rich Megginson <[EMAIL PROTECTED]> wrote:
>> [EMAIL PROTECTED] wrote:
>>> Hi everyone,
>>> I have to write a very basic LDAP client using an SDK for a university
>>> project. After researching SDKs, the Mozilla C LDAP SDK seems to be
>>> the best choice.
>> Would you care to elaborate?  I'd like to know the pros and cons of the
>> various LDAP C SDKs, and why you chose the Mozilla one.
>>
>>> I have had some experience with writing software to
>>> access LDAP during my industry placement. There we used Perl and its
>>> Net::LDAP modules to script changes and maintain a web interface which
>>> was fairly easy.
>>> I would now like to make an application that is capable of the basic
>>> search, modify and delete functions when pointed at an LDAP server. I
>>> would like it to be written in C and either for Mac OSX or Windows XP.
>>> So my question really is where do I start? Sorry for the very open
>>> question but my research thus far has left me really very confused.
>>> People talk about compiling LDAP libraries but which libraries? Am I
>>> to include all the files I download from the Mozilla SDK in a new
>>> project or so I compile these files and build something from the
>>> resulting program.
>> There are 2 basic ldap libraries you need - libldap, the core ldap
>> library, and liblber, which does the BER codec.  If you want to use SSL,
>> you'll also need libprldap and libssldap, and the nspr and nss libraries.
>>
>> In the source code, these are under directory/c-sdk/ldap/libraries
>>
>> The best place to start would be the command line tools -
>> c-sdk/ldap/clients/tools - look at the source code for ldapsearch.c,
>> ldapmodify.c, etc.  That will give you a basic idea of how to initialize
>> LDAP, BIND, perform an operation, and check the results.
>>
>> I would suggest keeping the LDAP C SDK files in a separate project in
>> your IDE, separate from your application code.
>>
>>
>>
>>> I'm not asking for anyone to do my assignment for me or even give me
>>> any code but a point in the right direction would be greatly
>>> appreciated!
>>> Thanks guys
>>> Zeb
> 
> Firstly, thanks a lot for your response.
> 
> The reasons I have chosen (or potentially chosen) Mozilla because
> are...
> - There seems to be more activity around the net with this SDK, more
> people on forums etc.
> - The application has to written in C which Mozilla is.

> - I have already had some experience with the syntax of Mozilla LDAP
> as I converted some
>   of the scripts from my placement to Net::LDAP from Mozilla.
> 
> Could you recommend a better SDK than Mozilla's?

Based on your criteria, I think the Mozilla LDAP C SDK should work just 
fine.



> 
> Cheers
> Zeb
_______________________________________________
dev-tech-ldap mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-ldap

Reply via email to