[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ldif.h

Eric Nichols wrote:
I've spent the past few days rooting around the openldap site.  I am
developing currently on Debian lenny using the libldap2-dev package.  My
small goal is to try and write my own rootdse program to better
understand the lib.  I am stuck on one piece of code.  I have no idea
where to get an LDIF library to parse/write ldif files.

Can anyone point me in the right direction on this?  It's been a long
time since I was coding in C and it took me a while just to gather that
I needed -lldap to make what I have work.

I believe this is the only piece I'm missing, the LDAP library calls
work flawlessly.  I also did learn that many of the depreciated
functions are still documented as valid functions (ldap_get_values,
ldap_count_values, ldap_value_free).  I couldn't find anything that
replaced these..

There is no complete library for LDIF parsing in OpenLDAP; probably there needs to be one. You should just copy the code in clients/tools/ldapmodify.c in the meantime. And you should read clients/tools/ldapsearch.c, regarding the other functions you mentioned.

  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/