36.4. slapi_add_pwd_control()

Sends back information about expired or expiring passwords.
Syntax

#include "slapi-plugin.h"
int slapi_add_pwd_control ( Slapi_PBlock *pb, char *arg, long time )

Parameters

This function takes the following parameter:

pb
Parameter block.
arg
Argument to the function.
Returns

This function returns one of the following values:

  • LDAP_CONTROL_PWEXPIRED (0) if the password has expired.
  • LDAP_CONTROL_PWEXPIRING (1, with the time in seconds) if the password has not yet expired but is within the warning period.