Files
mars-tinyldap/ldif.h
leitner 5413d2bdeb renamed a struct,
started ldapsearchresultentry formatter
fixed scan_ldapmessage to accept PRIMITIVE messages, too (unbind)
2002-01-14 21:23:33 +00:00

22 lines
464 B
C

#include <ldap.h>
/* how many attributes do we allow per record? */
#define ATTRIBS 8
struct attribute {
const char* name,* value;
};
struct ldaprec {
const char* dn,* mail,* sn,* cn; /* most often encountered records */
int n; /* number of attributes */
struct attribute a[ATTRIBS];
struct ldaprec* next;
};
extern const char* dn,* mail,* sn,* cn,* objectClass;
extern struct ldaprec *first;
int parse_ldif(const char* filename);
void free_ldif();