adapt pam_winbin.c to deal with later iniparser versions

Noel Power nopower at suse.com
Thu Nov 7 03:34:26 MST 2013


I came across another strange pam related issue with the
require_membership_of specified flag in pam_winbind.conf with
opensuse-12.3 ( and possibly earlier versions ) if you have a blank (
e.g. empty ) value like

    require_membership_of specified=

then pam will refuse to authenticate any user

The problem stems from the fact that we use a different ( later )
version of iniparser (3.1.5) where the behaviour of iniparser when
dealing with blank or non-existing key values is different. This patch
works around the problem ( and although strictly not necessary for
upstream currently ) and will future proof the code against the eventual
upgrade of iniparser. Please review

thanks,

Noel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-handle-later-iniparser-version-assigning-a-zero-leng.patch
Type: application/mbox
Size: 2741 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20131107/f6778a54/attachment.bin>


More information about the samba-technical mailing list