OpenLDAP
Up to top level
Build   Contrib   Development   Documentation   Historical   Incoming   Software Bugs   Software Enhancements   Web  

Logged in as guest

Viewing Software Enhancements/5059
Full headers

From: m.d.t.evans@qmul.ac.uk
Subject: SLAPI_PLUGIN_PRIVATE returns NULL.
Compose comment
Download message
State:
0 replies:
1 followups: 1

Major security issue: yes  no

Notes:

Notification:


Date: Mon, 23 Jul 2007 11:11:28 GMT
From: m.d.t.evans@qmul.ac.uk
To: openldap-its@OpenLDAP.org
Subject: SLAPI_PLUGIN_PRIVATE returns NULL.
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.


Followup 1

Download message
From: Luke Howard <lukeh@padl.com>
To: m.d.t.evans@qmul.ac.uk
Subject: Re: (ITS#5059) SLAPI_PLUGIN_PRIVATE returns NULL.
Cc: openldap-its@openldap.org
Date: Thu, 26 Jul 2007 21:27:31 +1000
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


Up to top level
Build   Contrib   Development   Documentation   Historical   Incoming   Software Bugs   Software Enhancements   Web  

Logged in as guest


The OpenLDAP Issue Tracking System uses a hacked version of JitterBug

______________
© Copyright 2013, OpenLDAP Foundation, info@OpenLDAP.org