• Contact Us
  • Home
  • Reference

LastBind and Lastbind Overlay

Written by Maryanne Normann

Updated at September 11th, 2025

  • Quick Start
  • Installation
    Best Practices Configuration Troubleshooting Design Performance Platform
  • Maintenance
    Releases Upgrade
  • Reference
+ More

Table of Contents

Configuration (cn=config) Configuration (slapd.conf) LastBind overlay configuration (not preferred from 2.6 onward)

From Slapd version 2.6 LastBind is no longer configured as an overlay, rather configuring it directly through the bakend file is recommended.

The lastbind can be used to detect unused accounts. It allows for recording timestamps of the last successful BIND in the pwdLastSuccess attribute. To avoid large numbers of WRITE operations and slowing down the performance the smalles difference in the timestamp can be configured as well.

Configuration (cn=config)

LastBind is configured in the database section of the configuration fil

  • olcLastBind: TRUE | FALSE

    Controls whether slapd will automatically maintain the pwdLastSuccess attribute for entries. By default, olcLastBind is FALSE.
     
  • olcLastBindPrecision: <integer>

    use this directive to specify how often the pwdLastSuccess should be updated. The integer specifies the number of seconds between the operations.

Configuration (slapd.conf)

  • lastbind on | of       
  • lastbind-precision <integer>

In case of replication, in order to forward updates from the consumer to the provider, overlay chain and updateref need to be configured on the consumer.

LastBind overlay configuration (not preferred from 2.6 onward)

  • in the global section of the config load the module
moduleload  lastbind.la
  • in the database specific section add the directive:
overlay lastbind
  • to configure the number of seconds after which the new update can be done:
lastbind-precision

Example where the authTimestamp will be updated after a week:

overlay lastbind
lastbind-precision 604800

Note that any configuration specifications have to be added AFTER the overlay directive is declared.

  • setting for the replication consumer to forward the updates to the consumer instead of writing them to the consumer's database
lastbind_forward_updates

Chaining and updateref need to be configured on the consumer.

For more information on LastBind overlay see Configure LastBind.

Copyright © 2020-2024 Symas Corporation. All rights reserved.
overlays lastbind last login

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Overview of TLS and LDAPS
  • Chaining Overlay with Keep Alive Function
  • Common slapd Command Parameters
  • Symas Blog RSS Feed
  • Symas on Facebook
  • Symas on Twitter
  • Symas Blog
  • Symas on LinkedIn
  • Symas YouTube Channel

Copyright © 2023, Symas Corporation. All rights reserved. Privacy Statement (updated July 31, 2023)

Phone:

Main Office: +1.650.963.7601
Fax: +1.650.390.6284

Email:

Sales: sales@symas.com
Support: support@symas.com

Office Hours:

8:00 AM - 5:00 PM ET

Office Location:

Symas Corporation
PO Box 391
Grand Junction, CO 81507 USA

Expand