2 * Copyright 1999, John C. Quillan, All rights reserved.
4 * Redistribution and use in source and binary forms are permitted only
5 * as authorized by the OpenLDAP Public License. A copy of this
6 * license is available at http://www.OpenLDAP.org/license.html or
7 * in file LICENSE in the top-level directory of the distribution.
13 /* #include <ac/types.h>
14 #include <ac/socket.h>
21 #include "perl_back.h"
23 /**********************************************************
27 **********************************************************/
47 char *matched = NULL, *info = NULL;
48 PerlBackend *perl_back = (PerlBackend *)be->be_private;
53 ldap_pvt_thread_mutex_lock( &perl_interpreter_mutex );
59 XPUSHs( perl_back->pb_obj_ref );
60 XPUSHs(sv_2mortal(newSVpv( filterstr , 0)));
61 XPUSHs(sv_2mortal(newSViv( sizelimit )));
62 XPUSHs(sv_2mortal(newSViv( timelimit )));
63 XPUSHs(sv_2mortal(newSViv( attrsonly )));
65 for ( i = 0; attrs != NULL && attrs[i] != NULL; i++ ) {
66 XPUSHs(sv_2mortal(newSVpv( attrs[i] , 0)));
70 count = perl_call_method("search", G_SCALAR);
75 croak("Big trouble in back_search\n") ;
78 printf( "Before send search entry\n");
81 if ( (e = str2entry( buf )) == NULL ) {
82 Debug( LDAP_DEBUG_ANY, "str2entry(%s) failed\n", buf, 0, 0 );
85 send_search_entry( be,
95 PUTBACK; FREETMPS; LEAVE;
98 ldap_pvt_thread_mutex_unlock( &perl_interpreter_mutex );
100 send_ldap_result( conn, op, err, matched, info );