Full_Name: Martin Evans Version: 2.3.37 OS: Linux fc6 URL: ftp://ftp.openldap.org/incoming/ Submission from: (NULL) (138.37.8.140) The following SLAPI code fails to recover the pointer. The call to slapi_pblock_get seems to set p to NULL. { char *p=slapi_ch_strdup("wibble"); slapi_pblock_set(pb,SLAPI_PLUGIN_PRIVATE,&p); slapi_log_error(SLAPI_LOG_FATAL,"private: %s",p); slapi_pblock_get(pb,SLAPI_PLUGIN_PRIVATE,&p); slapi_log_error(SLAPI_LOG_FATAL,"private: %s",p); } It was in a SLAPI_PLUGIN_PRE_ENTY_FN. But I have been unable to get it to work anywhere. Cheers, Martin.
It's not supported. It should be. -- Luke >From: m.d.t.evans@qmul.ac.uk >Subject: (ITS#5059) SLAPI_PLUGIN_PRIVATE returns NULL. >To: openldap-its@openldap.org >Date: Mon, 23 Jul 2007 11:11:28 GMT > >Full_Name: Martin Evans >Version: 2.3.37 >OS: Linux fc6 >URL: ftp://ftp.openldap.org/incoming/ >Submission from: (NULL) (138.37.8.140) > > >The following SLAPI code fails to recover the pointer. The call to >slapi_pblock_get seems to set p to NULL. > > { > char *p=slapi_ch_strdup("wibble"); > slapi_pblock_set(pb,SLAPI_PLUGIN_PRIVATE,&p); > slapi_log_error(SLAPI_LOG_FATAL,"private: %s",p); > slapi_pblock_get(pb,SLAPI_PLUGIN_PRIVATE,&p); > slapi_log_error(SLAPI_LOG_FATAL,"private: %s",p); > } > >It was in a SLAPI_PLUGIN_PRE_ENTY_FN. But I have been unable >to get it to work anywhere. > >Cheers, >Martin. > > -- www.padl.com | www.lukehoward.com
moved from Incoming to Development
moved from Development to Incoming
changed notes marked public moved from Incoming to Software Enhancements
changed notes marked public
SLAPI request for enhancement?