Plug-in APIs

The following plug-in APIs illustrate the code formats.

For pblock access:
int ldap_plugin_pblock_get( LDAP_PBlock *pb, int arg, void **value );
int ldap_plugin_pblock_set( LDAP_PBlock *pb, int arg, void *value );
For sending an LDAP bind to the server:
int ldap_plugin_sasl_bind_s ( 
        LDAP            *ld, 
        char            *dn, 
        char            *mechanism,
        struct berval   *credentials,    
        LDAPControl     **serverctrls,
        LDAPControl     **clientctrls,
        struct berval   **servercredp)