0 or pla_error( "Uploaded file is empty." ); check_server_id( $server_id ) or pla_error( "Bad server_id: " . htmlspecialchars( $server_id ) ); have_auth_info( $server_id ) or pla_error( "Not enough information to login to server. Please check your configuration." ); include 'header.php'; ?>

Import LDIF File

Server: File: ( bytes)



This is an experimental and untested feature. Proceed at your own risk.
The add and delete operations are the only operations currently supported.

Success
"; } else{ echo "failed

"; pla_error( "Could not add object: " . htmlspecialchars( utf8_decode( $dn ) ), ldap_error( $ds ), ldap_errno( $ds ) ); } } else{ echo "failed

"; echo "
".display_error_message(ldif_error_message())."
"; flush(); } } elseif($action=="delete"){ echo "Deleting dn: ".$dn_entry." "; if(@ldap_delete($ds,$dn_entry)){ echo "Success
"; flush(); } else{ echo "Failed

"; flush(); pla_error( "Could not delete object: " . htmlspecialchars( utf8_decode( $dn ) ), ldap_error( $ds ), ldap_errno( $ds ) ); } } } reload_left_frame(); function reload_left_frame(){ global $server_id; echo "\r\n"; } function display_error_message($error_message){ echo "
".$error_message."
"; } function display_warning($warning){ echo "
".$warning."
"; } ?>