google / libpam-policycache

Password caching module with advanced policies for PAM.
Apache License 2.0
34 stars 18 forks source link

Add import-shadow-hash.c #17

Closed mcclunge closed 7 years ago

mcclunge commented 8 years ago

Add ability to import hashed passwords in /etc/shadow and import them into policycache.

googlebot commented 8 years ago

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. 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, please reply here (e.g. I signed it!) and we'll verify. Thanks.


googlebot commented 7 years ago

CLAs look good, thanks!

vonhollen commented 7 years ago

Also, here's the src/Makefile.am additions we talked about:

bin_PROGRAMS = ... pam-policycache-import ...

pam_policycache_import_SOURCES = import.c import.h
pam_policycache_import_LDADD = libcache.la
pam_policycache_import_LDFLAGS = $(AM_LDFLAGS) -pie

import_test_SOURCES = import.c import.h import_test.c
import_test_LDADD = libcache.la libtest.la
import_test_LDFLAGS = -no-install $(AM_LDFLAGS) $(MOCK_FLAGS)
import_test_CFLAGS = -DCACHE_IMPORT_TESTING=1 $(AM_CFLAGS)

check_PROGRAMS = ... import_test ...