1
# Copyright (c) 2008 Mathieu Parent <math.parent@gmail.com>. All rights reserved.
2
# This program is free software; you can redistribute it and/or
3
# modify it under the same terms as Perl itself.
5
package Net::LDAP::Control::SyncDone;
7
use vars qw(@ISA $VERSION);
8
use Net::LDAP::Control;
10
@ISA = qw(Net::LDAP::Control);
13
use Net::LDAP::ASN qw(syncDoneValue);
19
if (exists $self->{value}) {
20
$self->{asn} = $syncDoneValue->decode(delete $self->{value});
23
cookie => defined($self->{cookie}) ? $self->{cookie} : '',
24
refreshDeletes => $self->{refreshDeletes} || '0',
33
$self->{asn} ||= $syncDoneValue->decode($self->{value});
35
delete $self->{value};
36
return $self->{asn}{cookie} = defined($_[0]) ? $_[0] : '';
43
$self->{asn} ||= $syncDoneValue->decode($self->{value});
45
delete $self->{value};
46
return $self->{asn}{refreshDeletes} = shift || 0;
48
$self->{asn}{refreshDeletes};
56
: $self->{value} = $syncDoneValue->encode($self->{asn});
66
Net::LDAP::Control::SyncDone - LDAPv3 Sync Done control object
70
See L<Net::LDAP::Control::SyncRequest>
74
C<Net::LDAP::Control::SyncDone> provides an interface for the creation and
75
manipulation of objects that represent the C<Sync Request Control> as described
78
=head1 CONSTRUCTOR ARGUMENTS
80
In addition to the constructor arguments described in
81
L<Net::LDAP::Control> the following are provided.
93
As with L<Net::LDAP::Control> each constructor argument
94
described above is also avaliable as a method on the object which will
95
return the current value for the attribute if called without an argument,
96
and set a new value for the attribute if called with an argument.
101
L<Net::LDAP::Control>,
102
L<Net::LDAP::Control::SyncRequest>,
103
L<Net::LDAP::Control::SyncState>,
104
http://www.ietf.org/rfc/rfc4533.txt
108
Mathieu Parent E<lt>math.parent@gmail.comE<gt>
110
Please report any bugs, or post any suggestions, to the perl-ldap mailing list
111
E<lt>perl-ldap@perl.orgE<gt>
115
Copyright (c) 2008 Mathieu Parent. All rights reserved. This program is
116
free software; you can redistribute it and/or modify it under the same
117
terms as Perl itself.