segfaults in pam_smbpass in SAMBA_3_0 with unixsam backend

Jelmer Vernooij jelmer at nl.linux.org
Fri Oct 25 00:41:00 GMT 2002


On Thu, Oct 24, 2002 at 06:51:38PM -0500, Steve Langasek wrote about 'segfaults in pam_smbpass in SAMBA_3_0 with unixsam backend':
> Currently, pam_smbpass calls initialize_password_db() with reload == True
> on every pass through the module.  This is supposedly the Right Thing
> for the code to do, but recently the "reload" option took on actual
> meaning, and now pam_smbpass segfaults on the second pass when using
> the unixsam backend. :)
> 
> The nisplus and unixsam backends do not initialize the free_private_data
> method.  Do these need to be implemented yet, or should they be stubbed
> off and have error checking added to free_pdb_context() to check for a
> null pointer?
Fixed. (Needed to check for a null pointer, as happens in all other passdb 
functions)

Thanks for reporting!

Jelmer



More information about the samba-technical mailing list