The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

script - plugin to run a script against LDAP object on LDAP_SYNC event

DESCRIPTION

script - plugin to run script against LDAP object attributes, set as environment variables on LDAP_SYNC event

environment variables provided to the script:

        REGATHER_LDAP_OBJ_ATTR_<attributeX_name>
        REGATHER_LDAP_OBJ_DN
        REGATHER_LDAP_OBJ_LDIF
        REGATHER_LDAP_SYNC_CONTROL_CODE
        REGATHER_LDAP_SYNC_CONTROL_NAME

configuration:

    [service name_of_my_script_service] plugin = script all_attr = 1 ctrl_attr = uid ctrl_srv_re = ^.*$ post_process = /path/to/scrip1 post_process = /path/to/scrip2

all attributes will be exposed if option all_attr not null

METHODS

new

Creates an instance of the class and saves a reference to its arguments for further use.

ldap_sync_add_modify

set environmental variables according LDAP object attribute:value pairs and runs a script

ldap_sync_delete

alias to ldap_sync_add_modify