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.
11 * LDAP v3 newSuperior support.
13 * Copyright 1999, Juan C. Gomez, All rights reserved.
14 * This software is not subject to any license of Silicon Graphics
15 * Inc. or Purdue University.
17 * Redistribution and use in source and binary forms are permitted
18 * without restriction or fee of any kind as long as this notice
26 /* #include <ac/types.h>
27 #include <ac/socket.h>
34 #include "perl_back.h"
51 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( dn , 0 )));
61 XPUSHs(sv_2mortal(newSVpv( newrdn , 0 )));
62 XPUSHs(sv_2mortal(newSViv( deleteoldrdn )));
63 if ( newSuperior != NULL ) {
64 XPUSHs(sv_2mortal(newSVpv( newSuperior , 0 )));
68 count = perl_call_method("modrdn", G_SCALAR);
73 croak("Big trouble in back_search\n") ;
78 PUTBACK; FREETMPS; LEAVE ;
81 ldap_pvt_thread_mutex_unlock( &perl_interpreter_mutex );
83 if( return_code != 0 ) {
84 send_ldap_result( conn, op, LDAP_OPERATIONS_ERROR, "", "" );
87 send_ldap_result( conn, op, LDAP_SUCCESS, "", "" );
90 Debug( LDAP_DEBUG_ANY, "Perl MODRDN\n", 0, 0, 0 );