Issue 5059 - SLAPI_PLUGIN_PRIVATE returns NULL.
Summary: SLAPI_PLUGIN_PRIVATE returns NULL.
Status: UNCONFIRMED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- enhancement
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-23 11:11 UTC by m.d.t.evans@qmw.ac.uk
Modified: 2020-03-18 20:34 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description m.d.t.evans@qmw.ac.uk 2007-07-23 11:11:28 UTC
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.

Comment 1 Luke Howard 2007-07-26 11:27:31 UTC
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

Comment 2 Gavin Henry 2007-07-26 13:42:43 UTC
moved from Incoming to Development
Comment 3 Gavin Henry 2007-07-26 13:43:57 UTC
moved from Development to Incoming
Comment 4 ando@openldap.org 2007-07-27 16:51:54 UTC
changed notes
marked public
moved from Incoming to Software Enhancements
Comment 5 ando@openldap.org 2007-07-27 17:06:01 UTC
changed notes
marked public
Comment 6 OpenLDAP project 2014-08-01 21:04:52 UTC
SLAPI
request for enhancement?