[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: ITS#5724 (Re: commit: ldap/servers/slapd backover.c)
ando@sys-net.it wrote:
> Sharing the pointer to the supported controls would allow to use the
> actual set. Something along the line
>
> struct BackendDB {
> char be_ctrlsbuf[SLAP_MAX_CIDS + 1];
> char *be_ctrls;
> };
>
> All backends would have be_ctrls = be_ctrlsbuf, but back-relay would set
> it to NULL, and temporarily set it to the relayed database's be_ctrlsbuf
> for the duration of an operation. Modules wouldn't be able to register
> new controls because the pointer is null otherwise.
Of course, this wouldn't work since it implies modifying the BackendDB
structure, which is read-only :(
p.
Ing. Pierangelo Masarati
OpenLDAP Core Team
SysNet s.r.l.
via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
-----------------------------------
Office: +39 02 23998309
Mobile: +39 333 4963172
Fax: +39 0382 476497
Email: ando@sys-net.it
-----------------------------------