How to get LDAP support in NSS/compat?

Thorsten Kukuk kukuk@suse.de
Tue May 20 09:15:00 GMT 2003


On Wed, Apr 30, Petter Reinholdtsen wrote:

> 
> [Thorsten Kukuk]
> > I think it is very easy to rewrite the current compat NSS module to
> > support every service, for which a NSS module exists. We don't need
> > LDAP support in glibc for this, instead the compat module would load
> > the corresponding NSS module. This would also avoid some duplicate
> > code.
> 
> This sound very good.  Let me know if you want a tester for the new
> module. :)
> 
> > I will look at this next week and write such a module. After this we
> > can discuss again, if we whish to replace the glibc version or make
> > an alternative NSS module from it.
> 
> I look forward to this. :)

It took a little bit longer. Here is a patch for the compat passwd
function. A patch for initgroups, group and shadow will follow, after
I cleaned up this version. Some sanity and error checks are missing
in this patch, but I think this is the way to go and it works already
for passwd for me.

Feedback is welcome.

Uli, does this have a chance to be accepted for glibc as replacement
for the current compat module? I think this is the way to go.

  Thorsten

-- 
Thorsten Kukuk       http://www.suse.de/~kukuk/        kukuk@suse.de
SuSE Linux AG        Deutschherrnstr. 15-19        D-90429 Nuernberg
--------------------------------------------------------------------    
Key fingerprint = A368 676B 5E1B 3E46 CFCE  2D97 F8FD 4E23 56C6 FB4B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20030520/c76e926b/attachment.sig>


More information about the Libc-alpha mailing list