Perl Diver 2.31
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Net::LDAP::Extension::Refresh

Name Net::LDAP::Extension::Refresh
Version 0.04
Located at /usr/local/share/perl5
File /usr/local/share/perl5/Net/LDAP/Extension/Refresh.pm
Is Core No
Search CPAN for this module Net::LDAP::Extension::Refresh
Documentation Net::LDAP::Extension::Refresh
Module Details Net::LDAP::Extension::Refresh

NAME

Net::LDAP::Extension::Refresh - LDAPv3 Refresh extension object (RFC 2589)


SYNOPSIS

 use Net::LDAP;
 use Net::LDAP::Extension::Refresh;
 $ldap = Net::LDAP->new('localhost');
 $ldap->bind('cn=admin,dc=example,dc=com', password => 'password');
 $mesg = $ldap->refresh(entryName => 'cn=dynamic,dc=example,dc=com',
        requestTtl => 100);
 die "error :", $mesg->code(), ": ", $mesg->error()  if ($mesg->code());
 print "TTL changed to ", $mesg->get_ttl(), "\n";


DESCRIPTION

Net::LDAP::Extension::Refresh implements the Refresh extended LDAPv3 operation as described in RFC 2589

It implements no object by itself but extends the the Net::LDAP manpage object by another method:


METHODS

refresh ( OPTIONS )
Send a refresh operation for an object.

OPTIONS is a list of key/value pairs. The following keys are recognized:

entryName
This option contains the object to refresh. It must be a DN.

requestTtl
This option contains the TTL in seconds requested. The server may choose to set another value as stated in RFC 2589

get_ttl ( )
Return the TTL set by the server during the previous refresh call.

This method is a method of the the Net::LDAP::Message manpage response object returned in reply to refresh() in case the refresh() call succeeded.


SEE ALSO

the Net::LDAP manpage, the Net::LDAP::Extension manpage


AUTHOR

Etienne Bagnoud <etienne.bagnoud@irovision.ch> Adapted from Graham Barr the Net::LDAP::Extension::SetPassword manpage Documentation adapted from Peter Marschall the Net::LDAP::Extension::SetPassword manpage

Please report any bugs, or post any suggestions, to the perl-ldap mailing list <perl-ldap@perl.org>


COPYRIGHT

Copyright (c) 2010 Etienne Bagnoud. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2024