regarding cache size setting
by Arunachalam Parthasarathy
In Openldap 2.3.36, with bdb , how can I set the cache size in slapd.conf ?
Thanks in advance,
Arunachalam
****************************************************************************
****************************
This e-mail and attachments contain confidential information from HUAWEI,
which is intended only for the person or entity whose address is listed
above. Any use of the information contained herein in any way (including,
but not limited to, total or partial disclosure, reproduction, or
dissemination) by persons other than the intended recipient's) is
prohibited. If you receive this e-mail in error, please notify the sender by
phone or email immediately and delete it!
15 years
alock problem
by Arunachalam Parthasarathy
Hello,
When I restarted my slapd server (openldap 2.3.36), [when the durability is
on in DB_CONFIG], I got an error like,
bdb_db_open : alock package is unstable
backend_startup_one : bi_db_open failed(-1)
I had searched in openldap forum and found a thread , where they say it was
due to some permission problem
But I have permissions as I logged in as root
Please say me whats the error I made
Thanks in advance,
Arunachalam
****************************************************************************
****************************
This e-mail and attachments contain confidential information from HUAWEI,
which is intended only for the person or entity whose address is listed
above. Any use of the information contained herein in any way (including,
but not limited to, total or partial disclosure, reproduction, or
dissemination) by persons other than the intended recipient's) is
prohibited. If you receive this e-mail in error, please notify the sender by
phone or email immediately and delete it!
15 years
accesslog syncrepl changes
by Hans Moser
Hi!
Does the overlay accesslog "logops writes" on a consumer log changes
made by syncrepl?
I cannot see any log entries where changes are made, but maybe did
something wrong.
Hans
15 years
Re: how to change userPassword in overlay...
by Marcin Giedz
Hallvard B Furuseth wrote:
> Marcin Giedz writes:
>
>>> Not sure what "with respect to previous password hash" means, if not
>>> EXOP_MODIFY_PASSWD.
>>>
>> I mean. If userPassword uses md5 hash change it to new one but keep/use
>> the same hash.
>>
>
> Hi - I just realized the source of confusion. You said "hash" when you
> meant "hash method" (not sure if there is an Official Term for that).
> maybe "hash method prefix". Anyway, in "{CRYPT}foo", the hash is "foo".
> CRYPT is the method.
>
>
That's right!!!! I meant hash method or whatever it's called - but yes
it was the clue.
And really thanks for all suggestions!!!
Marcin.
--
ARISE M.Giedz, T.Żebruń sp.j.
http: www.arise.pl
mail: giedz(a)arise.pl
tel: +48 502 537 157
15 years
how to change userPassword in overlay...
by Marcin Giedz
Hi,
Looking at smbk5pwd overlay I'm trying to build something similar. One
of the attributes I need to change is userPassword for selected uid (not
dn). In my LDAP tree I have several places where uid=user1 exists. Now I
need to change userPassword for this user in all these places at once
(through passwd). From my perspective EXOP_MODIFY_PASSWD is not suitable
for me. So I though about creating overlay for this issue. I'm looking
for low level operation for changing userPassword attribute with respect
to previous password hash.
Could anyone advise how can do this?
Regards,
Marcin
--
ARISE M.Giedz, T.Żebruń sp.j.
http: www.arise.pl
mail: giedz(a)arise.pl
tel: +48 502 537 157
15 years
Re: Doc API for overlay...
by Gavin Henry
<quote who="Marcin Giedz">
> Gavin Henry wrote:
>> <quote who="Marcin Giedz">
>>
>>> Hello,
>>>
>>> I'm looking for some API docs for writing slapd overlays. Is there any?
>>>
>>>
>>
>> Use the source! ;-)
>>
>> Tips:
>>
>> * Read servers/slapd/overlays/*
>> * collect.c is an example by Howard.
>> * Read slapover.txt in that directory too.
>> * Make sure you copy/reference ones that support dynamic config to work
>> well with 2.4.x (they'll have schema definitions embedded in them)
>>
>> Nicely commented overlay at:
>>
>> http://www.openldap.org/its/index.cgi/Contrib?id=4890;page=3
>>
>> auditlog.c is nice and short (as should be all overlays, as that's their
>> point ;-) )
>>
>> That should get you going.
>>
>> This will be in a developer section of the main 2.4 guide soonish.
>>
>> Gavin.
>>
>>
> Many thanks Gavin!!!!
>
> Marcin.
No probs.
>
> --
> ARISE M.Giedz, T.ŻebruŠsp.j.
> http: www.arise.pl
> mail: giedz(a)arise.pl
> tel: +48 502 537 157
>
>
>
15 years
Doc API for overlay...
by Marcin Giedz
Hello,
I'm looking for some API docs for writing slapd overlays. Is there any?
Regards,
Marcin
--
ARISE M.Giedz, T.Żebruń sp.j.
http: www.arise.pl
mail: giedz(a)arise.pl
tel: +48 502 537 157
15 years
trouble with slapd overlay
by Helmut Schulz
Hello all,
hope I picked the appropriate mailing list ...
I've got a problem with a slapd overlay I'm currently working at:
the overlay causes slapd to bomb, when compiled for & running on Debian
Etch AMD64 and Ubuntu Dapper (no other 64bit experiences so far), if - and
only if so - it's response handler is invoked simultaneously in several
threads.
The error always occurs at the same code line, line 89, in file
template_symtab.c: the memory location referred by 'symtab',
which has been allocated immediately before by ch_malloc(), is obviously
invalid.
As long as only one single thread is hitting this code piece,
everything is fine.
In 32bit-environments, the overlay works.
The overlay has (mutex-protected) critical sections of code: an
overlay-specific cache, which, however, doesn't influcence the test
behaviour (I usually deactivate it via config file directive (see inline
comments in file template.c) to avoid the additional complexity).
What I want to say: I almost for sure can exclude thread synchronization
issues within my overlay as reason ... but somehow, the memory management
seems to get confused, no clue why.
I tried valgrind - it run's slapd fine, no sigsegv, no trouble, no related
error messages. When the MALLOC_DEBUG_ environment variable is set, slapd runs
great, too. Simple replacement of ch_malloc() and friends by stdlib malloc()
and free() bypasses the problem as well.
Maybe I've coded a memory overrun somewhere else within the overlay? Maybe I
did not understand the slapd memory management API (which, seriously, seems
to be a real pain! - I tried to use ch_malloc()/ch_strdup()/ch_free() where
possible, use proper nesting of these functions - only exception was memory
allocated by backend_attribute(), which I deallocate via
ber_bvarray_free_x(), using the current thread's memory context).
On the other hand, maybe the problem is related to ch_malloc() and the
underlying memory management itself?
The source code can be found here:
http://www.thalion-graphics.de/download/template-overlay.tar.gz
Would be very grateful for any advice. :)
--
Helmut Schulz
Thalion Graphic Solutions eK.
15 years
my overlay doesn't compile
by pkoelle@gmail.com
Hi list,
I played around to find out how overlays work but hit a brickwall when
running make. The error is:
liboverlays.a(statover.o):(.data+0x58): undefined reference to
'nestedgroup_initialize'
collect2: ld returned 1 exit status
nestedgroup_initialize is the initialization hook for my module
(currently basically dynlist.c with some changes). I think I have added
the relevant pieces to the build system (configure.in,
servers/slapd/overlays/Makefile.in, include/portable.hin). Nevertheless,
the linking error suggests there is still something missing.
thanks
Paul
15 years
Re: how to use slapo-refint (or why it doesn't work?)
by Zhang Weiwu
On Wed, 2007-06-27 at 09:08 -0600, TechnoSophos wrote:
> Can you post the relevant portion of slapd.conf?
I posted the whole slapd.conf 3 days ago but didn't see it appear on the
list (a test installation, should be safe to post its slapd.conf)
Also I have tested refint on different backend (tested bdb & hdb), and
tested on different OS (also tested 2.3.27-25 on SuSE 10.2). Then, I
tested to use manager as attribute as suggested by slapo-refint manual.
None of them works.
Do I need to export DB and slapadd all data back in order to activate
this feature?
15 years