=head1 NAME Net::LDAP::Message - Message response from LDAP server =head1 SYNOPSIS use Net::LDAP; =head1 DESCRIPTION B is a base class for the objects returned by the L methods L, L, L, L, L, L, L, L and L. The sub-class L returned by L also defines many methods. If the L object is in async mode then all these methods, except C and C, will cause a wait until the request is completed. =head1 METHODS =over 4 =item code ( ) The code value in the result message from the server. Normally for a success zero will be returned. Constants for the result codes can be imported from the L or L module. =item control ( ) Return a list of controls that were returned from the server. =item control ( OID, ... ) Return a list of controls with the given OIDs that were returned from the server. =item dn ( ) The DN in the result message from the server. =item done ( ) Returns I if the request has been completed. =item error ( ) Returns the error message in the result message from the server. If the server did not include an error message, then the result of L with the error code from the result message. =item error_name ( ) Returns the name of the error code in the result message from the server. See L for a detailed description of the return value. =item error_text ( ) Returns the short text description of the error code in the result message from the server. See L for a detailed description of the return value. =item error_desc ( ) Returns a long text description of the error code in the result message from the server. See L for a detailed description of the return value. =item is_error ( ) Returns I if the result code is considered to be an error for the operation. =item mesg_id ( ) The message id of the request message sent to the server. =item referrals ( ) Returns a list of referrals from the result message. =item server_error ( ) The error message returned by the server, or C if the server did not provide a message. =item sync ( ) Wait for the server to complete the request. =back =head1 SEE ALSO L, L, L, L =head1 ACKNOWLEDGEMENTS This document is based on a document originally written by Russell Fulton Er.fulton@auckland.ac.nzE. =head1 AUTHOR Graham Barr Egbarr@pobox.comE Please report any bugs, or post any suggestions, to the perl-ldap mailing list Eperl-ldap@perl.orgE. =head1 COPYRIGHT Copyright (c) 1997-2004 Graham Barr. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut