Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

net::ldap::control::passwordpolicy(3) [suse man page]

Net::LDAP::Control::PasswordPolicy(3)			User Contributed Perl Documentation		     Net::LDAP::Control::PasswordPolicy(3)

NAME
Net::LDAP::Control::PasswordPolicy - LDAPv3 Password Policy control object SYNOPSIS
use Net::LDAP; use Net::LDAP::Control::PasswordPolicy; use Net::LDAP::Constant qw( LDAP_CONTROL_PASSWORDPOLICY ); $ldap = Net::LDAP->new( "ldap.example.com" ); $pp = Net::LDAP::Control::PasswordPolicy->new; $mesg = $ldap->bind( "cn=Bob Smith,dc=example,dc=com", password => "secret", control => [ $pp ] ); # Get password policy reponse my($resp) = $mesg->control( LDAP_CONTROL_PASSWORDPOLICY ); if (defined($resp)) { my $v = $resp->pp_error; print "Password policy error $v " if defined $v; $v = $resp->time_before_expiration; print "Password expires in $v second(s) " if defined $v; } DESCRIPTION
"Net::LDAP::Control::PasswordPolicy" provides an interface for the creation and manipulation of objects that represent "PasswordPolicyRequest"s and "PasswordPolicyResponse"s as described by draft-behera-password-policy-09. This control can be passed to most operations, including the bind. CONSTRUCTOR ARGUMENTS
There are no constructor arguments other than those provided by Net::LDAP::Control. METHODS
time_before_expiration If defined, this is an integer value holding the time left in seconds before the account's password will expire. grace_authentications_remaining If defined, this is an integer value holding the number of authentication requests allowed before the account is locked. pp_error If defined, this contains a more detailed error code for the account. See Net::LDAP::Constant for definitions of each. Values can include: LDAP_PP_PASSWORD_EXPIRED LDAP_PP_ACCOUNT_LOCKED LDAP_PP_CHANGE_AFTER_RESET LDAP_PP_PASSWORD_MOD_NOT_ALLOWED LDAP_PP_MUST_SUPPLY_OLD_PASSWORD LDAP_PP_INSUFFICIENT_PASSWORD_QUALITY LDAP_PP_PASSWORD_TOO_SHORT LDAP_PP_PASSWORD_TOO_YOUNG LDAP_PP_PASSWORD_IN_HISTORY SEE ALSO
Net::LDAP, Net::LDAP::Control, Net::LDAP::Constant, draft-behera-ldap-password-policy-09.txt AUTHOR
Chris Ridd <chris.ridd@isode.com> Please report any bugs, or post any suggestions, to the perl-ldap mailing list <perl-ldap@perl.org> COPYRIGHT
Copyright (c) 2008 Chris Ridd. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.12.1 2010-03-12 Net::LDAP::Control::PasswordPolicy(3)

Check Out this Related Man Page

Net::LDAP::Control::Relax(3)				User Contributed Perl Documentation			      Net::LDAP::Control::Relax(3)

NAME
Net::LDAP::Control::Relax - LDAPv3 Relax control object SYNOPSIS
use Net::LDAP; use Net::LDAP::Control::Relax; $ldap = Net::LDAP->new( "ldap.mydomain.eg" ); $relax = Net::LDAP::Control::Relax->new(); $msg = $ldap->modify( 'dc=sub,dc=mydomain,dc=eg", changes => [ replace => { modifyTimestamp => '19700101000000Z' } ], control => [ $relax ] ); die "error: ",$msg->code(),": ",$msg->error() if ($msg->code()); DESCRIPTION
"Net::LDAP::Control::Relax" provides an interface for the creation and manipulation of objects that represent the "Relax" control as described by draft-zeilenga-ldap-relax-03.txt The presence of the Relax control in an LDAP update request indicates the server temporarily relax X.500 model constraints during performance of the directory update. The control is appropriate for all LDAP update requests, including add, delete, modify, and modifyDN (rename) [RFC4511]. Its criticality is always set to TRUE, and no value. There is no corresponding response control. CONSTRUCTOR ARGUMENTS
Since the "Relax" control does not have any values only the constructor arguments described in Net::LDAP::Control are supported METHODS
As there are no additional values in the control only the methods in Net::LDAP::Control are available for "Net::LDAP::Control::Relax" objects. SEE ALSO
Net::LDAP, Net::LDAP::Control, AUTHOR
Peter Marschall <peter@adpm.de>. Please report any bugs, or post any suggestions, to the perl-ldap mailing list <perl-ldap@perl.org> COPYRIGHT
Copyright (c) 2013 Peter Marschall. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.18.2 2013-07-21 Net::LDAP::Control::Relax(3)
Man Page