Hi,
i’m writing a plugin for SLAPI_PLUGIN_POST_BIND_FN
operation:
int mia_init(Slapi_PBlock *pb)
{
…
…
If( slapi_pblock_set(pb,
SLAPI_PLUGIN_POST_BIND_FN, (void *)mia_get) != 0)
{
slapi_log_error(SLAPI_LOG_PLUGIN, "mia_init", “error” );
return
-1;
}
…
return 0;
}
int mia_get(Slapi_PBlock *pb)
{
…
int oprc = -1;
…
if(
slapi_pblock_get(pb, SLAPI_PLUGIN_OPRETURN, &oprc) != 0 )
{
If
( oprc == 0 )
Do
something
else
Do
something else
}
…
}
The slapi_pblock_get for SLAPI_PLUGIN_OPRETURN always
return 0 even if the bind operation is failed (for example following an error 49
Invalid Credentials ).
Is there a way to test if the bind operation is successful
or failed ?
Tanks
gianluigi.nigro@passepartout.sm
------------------------------
Passepartout s.a.
World Trade Center – Edificio A
Via Consiglio dei Sessanta, 99 - 47891 Dogana - RSM
tel. 0549 978011
fax 0549 978005
www.passepartout.net