Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenPAM Compatibility #23

Open
Jnchi opened this issue Feb 8, 2019 · 2 comments
Open

OpenPAM Compatibility #23

Jnchi opened this issue Feb 8, 2019 · 2 comments

Comments

@Jnchi
Copy link
Contributor

Jnchi commented Feb 8, 2019

So far, this module has been compiled and tested against linux-pam. Efforts should be made to support OpenPAM if possible.

https://www.openpam.org

@Jnchi
Copy link
Contributor Author

Jnchi commented Feb 19, 2019

# CC=cc make -e
cc -O2 -pipe  -fPIC -fno-stack-protector -Wall -shared -Wl,--export-dynamic  -o libnss_aad.so.2 -Wl,-soname,libnss_aad.so.2 cJSON.c libnss_aad.c sds.c -lcurl -lm
libnss_aad.c:3:10: fatal error: 'shadow.h' file not found
#include <shadow.h>
         ^~~~~~~~~~
1 error generated.
*** Error code 1

Stop.
make: stopped in /usr/src/libnss_aad

See also: GNU Gnulib: shadow.h

Xorg on FreeBSD includes a copy of shadow.h (See: https://forums.freebsd.org/threads/trying-to-port-lxdm.47774/), installed via pkg install xorg-libraries

# CC=cc LDFLAGS="${LDFLAGS} -I/usr/src/glibc-glibc-2.29/include" make -e
cc -O2 -pipe  -I/usr/src/glibc-glibc-2.29/include -fPIC -fno-stack-protector -Wall -shared -Wl,--export-dynamic  -o libnss_aad.so.2 -Wl,-soname,libnss_aad.so.2 cJSON.c libnss_aad.c sds.c -lcurl -lm
In file included from cJSON.c:26:
In file included from /usr/src/glibc-glibc-2.29/include/string.h:6:
/usr/src/glibc-glibc-2.29/include/sys/types.h:1:10: fatal error: 'posix/sys/types.h' file not found
#include <posix/sys/types.h>
         ^~~~~~~~~~~~~~~~~~~
1 error generated.
In file included from libnss_aad.c:1:
/usr/src/glibc-glibc-2.29/include/nss.h:2:10: fatal error: 'nss/nss.h' file not found
#include <nss/nss.h>
         ^~~~~~~~~~~
1 error generated.
In file included from sds.c:32:
/usr/src/glibc-glibc-2.29/include/stdio.h:5:11: fatal error: 'libio/stdio.h' file not found
# include <libio/stdio.h>
          ^~~~~~~~~~~~~~~
1 error generated.
*** Error code 1

Stop.
make: stopped in /usr/src/libnss_aad

Both libnss-mysql, and nss-pam-ldap support both Linux and FreeBSD, however, they do not include shadow.h, but instead implement their own (See: nss_mysql.h, passwd.c).

@Jnchi Jnchi mentioned this issue Jul 17, 2019
@Jnchi
Copy link
Contributor Author

Jnchi commented Jul 17, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant