lists.arthurdejong.org
RSS feed

RE: [nssldap] Solaris 10 update 5 - nss_ldap makes nscd dump core

[Date Prev][Date Next] [Thread Prev][Thread Next]

RE: [nssldap] Solaris 10 update 5 - nss_ldap makes nscd dump core



I have found out what was wrong and have a fixed patch set for solaris. I will 
push this to the bugzilla as part of the bug patchset 
http://bugzilla.padl.com/show_bug.cgi?id=412
 
The problem is that the new NSCD interface aliases the use of the buffer that 
it passes and the code was overwriting the results it was generating. I have 
added code that detects this and manages the buffers. I have managed to test 
the passwd and group maps so far but unless there are typos, or I have got the 
string format wrong then all of the other maps that are implemented should work.
 
The one map I have not done yet is the netgroup map. I will tackle this in the 
next few days.
 
The code has been compiled for Linux and tested there as well and this still 
works. I may have broken other ports and this will need to be checked out, but 
I do not have facilities to do that at present.
 
Coherent Technology Limited, 23 Northampton Square, Finsbury, London EC1V 0HL, 
United Kingdom
Telephone: +44 20 3355 6467 Mobile: +44 7980 639379
Company Email: coherent@cohtech.com Website: http://www.cohtech.com 
<http://www.cohtech.com/>  

________________________________

From: Matthew Hardin [mhardin [at] symas.com]
Sent: Mon 2010-01-04 18:00
To: Howard Wilkinson
Cc: Thomas Glanzmann; lukeh@padl.com; nssldap@padl.com; 
Bernhard.Thalmayr@Sun.COM
Subject: Re: [nssldap] Solaris 10 update 5 - nss_ldap makes nscd dump core



We've developed the SPARKS changes needed for Sol10u5 and later (this 
is why nscd was dumping core), but nscd on Sol10u5 and later seems 
very fragile and stops working at the drop of a hat. We've been 
sitting on the code until we've worked this out, but that's been going 
very slowly. We would be happy to share what we have if anyone is 
interested.

-Matt

On Jan 4, 2010, at 9:52 AM, Howard Wilkinson wrote:

> You will need to apply this after all of my other patches. See 
> http://bugzilla.padl.com/show_bug.cgi?id=412
>
> This is very much a work in progress - I am focussing on getting 
> getent passwd working with nscd running. If I can crack that then 
> the other changes are 'obvious'.
>
> This has been compiled on both Sparc and x86 Solaris 10, but only 
> tested on Sparc so far.
>
> Let me know how you get on!
>
> Coherent Technology Limited, 23 Northampton Square, Finsbury, London 
> EC1V 0HL, United Kingdom
> Telephone: +44 20 3355 6467 Mobile: +44 7980 639379
> Company Email: coherent@cohtech.com Website: http://www.cohtech.com 
> <http://www.cohtech.com/>  <http://www.cohtech.com/ 
> >
>
> ________________________________
>
> From: Thomas Glanzmann [thomas [at] glanzmann.de]
> Sent: Mon 2010-01-04 16:04
> To: Howard Wilkinson
> Subject: Re: [nssldap] Solaris 10 update 5 - nss_ldap makes nscd 
> dump core
>
>
>
> Hello Howard,
>
>> Any help that you, or anybody else can give to fix this problem will
>> be gratefully received. This has been a problem for over a week now.
>
> could you please send me you're build instructions and patches. I'll 
> be
> happy to help track down the getent bug. I'm also interested in
> providing a backport.
>
>        Thomas
>
>
> <nss_ldap-265-solarisfixes.patch>