Getting more meaningful error out of back-config
by Ralf Haferkamp
Hi,
I'd like to improve the error messages that back-config returns via LDAP to
the client. Currently in many case you only get back a very generic error
messages. E.g. when trying to add a second monitor database you just get:
Error code LDAP_OTHER with the diagnostic message set to "<olcDatabase> failed
init". To find out what really went wrong you need to dig up the logfiles.
One way to get more meaningful error messages to the client would be by adding
an additional const char** text parameter to the _db_init functions (and
probably some other of the BI_db_func() functions as well), similiar to what
is done in many other case when error messages need to be passed to the
caller.
Does somebody have better ideas how to achieve this?
--
Ralf
16 years, 4 months
Re: (ITS#4991) pcache and rwm don't play well together
by Ralf Haferkamp
Hello,
slightly related to the above ITS, I have found another issue. I am not sure
though if this is a bug or if the behaviour is intended. I have a setup here
were the pcache and rwm-overlay is used on top of back-ldap.
rwm is used to rewrite some Attributetypes unknown to the Schema of the local
server to Attributetypes that are defined in the local server. As the
attribute values from unknown attribute types cannot be normalized by the
proxy, I am wondering if rwm should normalize them during the Mapping
process? Otherwise the Values will endup un-normalized in the cache database,
and I get incomplete results when requests are answered from the cache.
I have a patch ready for this but I was wondering if the normalization step is
left out by intention and wanted to ask before commiting my patch.
--
Ralf
16 years, 4 months
Re: commit: ldap/servers/slapd/back-perl SampleLDAP.pm
by Gavin Henry
<quote who="hallvard(a)OpenLDAP.org">
> Update of /repo/OpenLDAP/pkg/ldap/servers/slapd/back-perl
>
> Modified Files:
> SampleLDAP.pm 1.12 -> 1.13
>
I've run Perl::Critic over this and fixed/updated to latest "Perl Best
Practices". We might as well have an up to date sample.
Do you mind if I commit my changes?
cpan Perl::Critic
perlcritic -1 SampleLDAP.pm
Then fixed accordingly.
Thanks,
Gavin.
16 years, 5 months
filtered logging
by Kambiz Behrooz
I am new on openldap (and ldap and this maillist).
My company wants to have more control on the logging and I have to
make changes on openldap and probably make changes so the can be on
next version openldap.
Does openldap use only syslog for all logging ?
where is easiest to begin ?
How good need the code be to have chance to be add to openldap ?
Thanks for any information
____________________________________________________________________________________
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front
16 years, 5 months
Recommended backend for Replication Config examples?
by Gavin Henry
Dear All,
For the backend type for all the replication examples I'm doing just now,
should we use bdb or hdb?
I notice that in slapd.conf.default we are using bdb.
Thoughts?
Gavin.
--
Kind Regards,
Gavin Henry.
Managing Director.
T +44 (0) 1224 279484
M +44 (0) 7930 323266
F +44 (0) 1224 824887
E ghenry(a)suretecsystems.com
Open Source. Open Solutions(tm).
http://www.suretecsystems.com/
16 years, 5 months
test043 failure
by Luca Scamoni
I'm seeing failure with current HEAD. Anyone else?
Ing. Luca Scamoni
Responsabile Ricerca e Sviluppo
SysNet s.r.l.
via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
-----------------------------------
Office: +39 0382 573859 (137)
Mobile: +39 347 1014425
Email: luca.scamoni(a)sys-net.it
-----------------------------------
16 years, 5 months
ITS#4933
by Howard Chu
So it looks like changing libldap to use the tm_api timeout might have been a
bad idea. All the existing apps assume that passing a NULL timeout gives an
unlimited timeout. Now this is only true if there is no default timeout set in
ldap.conf/ldaprc. If there is such a setting, then an app can't actually get an
unlimited timeout unless it explicitly calls ldap_set_option() to override any
value read from a config file.
Any thoughts? Without that change, the tm_api value is a no-op and totally
useless. Perhaps it's an option that should not be valid in any config file,
and only valid from an app?
--
-- Howard Chu
Chief Architect, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
16 years, 5 months
Necessity of new control ...
by Elier Delgado
Hi guys,
I'm using OpenLdap and I want not desist .. but I need get random entries
from a search result or a list ..
I was reading and this could be implemented by a control, what you think ?
Like paged control result, it most efficient that this functionality reside
on the server, but maybe you think that it not necessary .. or inefficient
If you agree I can develop it, with your help because I'm not familiarized
neither a little ...
The problem it's that I'm very hurried, this is a critical issue that I need
solve to continues with the system that I'm designing ..otherwise I will
need replicate some data to SQL ...
Will be complicated develop this control ?
Best regards, Elier
16 years, 5 months
Status of ldbm in HEAD?
by Gavin Henry
Dear all,
What's the status with ldbm in 2.4?
The only mention of it in HEAD is in:
doc/man/man5/slapd-ldbm.5 (obviously ;-) )
doc/man/man5/slapd.conf.5
doc/man/man5/slapo-syncprov.5
build/openldap.m4
servers/slapd/back-bdb/dn2id.c
and loads of #ldbm#index in tests/data/*
It looks like it's completely dropped to me, so I was going to remove
mention of it from the man pages later, but wasn't sure about core code.
Gavin.
--
Kind Regards,
Gavin Henry.
Managing Director.
T +44 (0) 1224 279484
M +44 (0) 7930 323266
F +44 (0) 1224 824887
E ghenry(a)suretecsystems.com
Open Source. Open Solutions(tm).
http://www.suretecsystems.com/
16 years, 5 months
Re: commit: ldap/servers/slapd/back-perl SampleLDAP.pm
by Gavin Henry
<quote who="hallvard(a)OpenLDAP.org">
> Update of /repo/OpenLDAP/pkg/ldap/servers/slapd/back-perl
>
> Modified Files:
> SampleLDAP.pm 1.12 -> 1.13
>
I'll take them back into RE_23 as well if you agree.
Gavin.
16 years, 5 months