lists.arthurdejong.org
RSS feed

Re: nss-ldapd-0.6.11 on RedHat

[Date Prev][Date Next] [Thread Prev][Thread Next]

Re: nss-ldapd-0.6.11 on RedHat



Hi Arthur

I could compile it properly.
Now I got new problem. I run it like this "nslcd -d" and I got this messages

---
[root@dig1 ~]# nslcd -d
nslcd: Warning: /lib64/libnss_ldap.so.2: undefined symbol: _nss_ldap_enablelookups (probably older NSS module loaded)
nslcd: DEBUG: add_uri(ldap://192.168.9.16:389)
nslcd: version 0.7.16 starting
nslcd: DEBUG: setgroups(0,NULL) done
nslcd: DEBUG: setgid(7007) done
nslcd: DEBUG: setuid(7007) done
nslcd: accepting connections
---

But nothing happens
"su - <user>" does not work and there is nothing in ldap log file.

Thanks for you help.
Kind regards,

----------------------------------
Felipe Formiga
NSCAD Microeletronica - UFRGS/CEI
Phone: +55 (51) 3308-7024
http://www.nscad.org.br
----------------------------------





----arthur@arthurdejong.org wrote ----

On Fri, 2012-04-27 at 12:10 -0300, Felipe wrote:
> But when I tried make I got these errors:
>
> [root@dig1 nss-pam-ldapd-0.7.16]# make
> Making all in compat
> make[2]: Entering directory `/root/tmp/nss-pam-ldapd-0.7.16/compat'
> gcc -DHAVE_CONFIG_H -I. -I.. -I.. -fPIC -g -O2 -MT pam_get_authtok.o -MD -MP -MF .deps/pam_get_authtok.Tpo -c -o pam_get_authtok.o pam_get_authtok.c
> pam_get_authtok.c: In function `pam_get_authtok':
> pam_get_authtok.c:74: error: `PAM_AUTHTOK_RECOVERY_ERR' undeclared (first use in this function)
> pam_get_authtok.c:74: error: (Each undeclared identifier is reported only once
> pam_get_authtok.c:74: error: for each function it appears in.)
> make[2]: *** [pam_get_authtok.o] Error 1
> make[2]: Leaving directory `/root/tmp/nss-pam-ldapd-0.7.16/compat'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/tmp/nss-pam-ldapd-0.7.16'
> make: *** [all] Error 2

Thanks for pointing this out. You need to add the following code to the
top of compat/pam_get_authtok.c after the includes. This code is from
the 0.8 branch:

#ifndef PAM_AUTHTOK_RECOVERY_ERR
#ifdef PAM_AUTHTOK_RECOVER_ERR
#define PAM_AUTHTOK_RECOVERY_ERR PAM_AUTHTOK_RECOVER_ERR
#else
#define PAM_AUTHTOK_RECOVERY_ERR 21 /* not defined anywhere */
#endif
#endif

I will add these compatibility changes to the next 0.7 release.

--
-- arthur - arthur@arthurdejong.org - http://arthurdejong.org --
--
To unsubscribe send an email to
nss-pam-ldapd-users-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-users/
-- 
To unsubscribe send an email to
nss-pam-ldapd-users-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-users/