Net::LDAP::Extension::Refresh3pm
Ldapv3 refresh extension object (rfc 2589)
Usage
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";
Overview
"Net::LDAP::Extension::Refresh" implements the "Refresh" extended LDAPv3 operation as described in RFC 2589
It implements no object by itself but extends the Net::LDAP 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 Net::LDAP::Message response object returned in reply to
refresh()in case therefresh()call succeeded.
Releases
9 releases since Debian 6.0 (Squeeze); the text changed 5 times.