google / google-authenticator-libpam

Apache License 2.0
1.76k stars 281 forks source link

take supplementary groups into account #168

Open r5r3 opened 4 years ago

r5r3 commented 4 years ago

Fix for issue #167. The changes certainly needs to be properly reviewed.

googlebot commented 4 years ago

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

r5r3 commented 4 years ago

@googlebot I signed it!

googlebot commented 4 years ago

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

ThomasHabets commented 4 years ago

And you've confirmed that this fixes the issue for you?

r5r3 commented 4 years ago

Thank you for your comments! I will move my changes into a separate function and hide it behind HAVE_SETGROUPLIST.

I can also confirm that the issue #167 is solved when supplementary groups are taken into account.