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

RE: ldapsearch linewrap patch (ITS#1885)

I am new to ldap.
I get the following error while trying to the sort the entries from LDAP serevr.

""CLdap.cpp", line 198: Error: Formal argument cmp of type extern "C" int(*)() in call to ldap_sort_entries(ldap*, ldapmsg**, char*, extern "C" int(*)()) is being passed extern "C" int(*)(const char*,const char*).

if ( ldap_sort_entries( m_LdapId, &result, (char*)m_szAttribute.c_str(),ldap_sort_strcasecmp ) != 0 )
     ldap_perror( m_LdapId, "ldap_search_ext_s" );

Kindly advice.


-----Original Message-----
From: enno@wanadoo.nl [mailto:enno@wanadoo.nl]
Sent: Saturday, June 15, 2002 5:24 PM
To: openldap-its@OpenLDAP.org
Subject: ldapsearch linewrap patch (ITS#1885)

Full_Name: Enno Hoen
Version: 2.1.2
OS: Debian Linux (Woody)
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (


I've upped a patchfile named enno-hoen-020615.patch in
It's a patch against clients/tools/ldapsearch.c and libraries/libldif/line64.c
for version 2.1.2, but 2.0.2x should also work. 

What it does:
It adds a -N option to ldapsearch which eliminates the forced linewrap ("\n ")
during output.

This patch breaks some RFC's slightly I guess.

 Enno Hoen