Re: error writing to nslcd
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
Re: error writing to nslcd
- From: Maxim Vetrov <muxas [at] mail.ru>
- To: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Reply-to: muxas [at] mail.ru
- Subject: Re: error writing to nslcd
- Date: Wed, 18 Jan 2012 00:12:49 +1100
Arthur de Jong пишет:
On Tue, 2012-01-17 at 00:40 +1100, Maxim Vetrov wrote:
I compiled 0.8.5 but with no luck running it. It doesn't start (either
on virtutual or real machine):
nslcd: DEBUG: ber_set_option(LBER_OPT_LOG_PRINT_FILE)
nslcd: DEBUG: ber_set_option(LBER_OPT_DEBUG_LEVEL,-1)
nslcd: DEBUG: ldap_set_option(LDAP_OPT_DEBUG_LEVEL,-1)
nslcd: DEBUG: add_uri(ldap://127.0.0.1/)
nslcd: version 0.8.5 starting
nslcd: DEBUG: unlink() of /var/run/nslcd.ctl failed (ignored): No such file or
directory
nslcd: chmod(0666) failed: No such file or directory
nslcd: DEBUG: unlink() of /var/run/nslcd.ctl failed (ignored): No such file or
directory
nslcd: version 0.8.5 bailing out
chmod is failing because process doesn't create /var/run/nslcd.ctl;
instead it creates /var/run/nslcd.ct (without trailing `l`).
Thanks for pointing this out. Can you try the attached patch? Apparently
the addrlen parameter to bind() is interpreted differently on FreeBSD
than on Linux.
Thanks,
Wow! The patch did the magic! ;) nslcd finally started and I'm able to
login to real machine. Thank you for your efforts!
To successfully compile on FreeBSD one also needs minor corrections to
bsdnss.c to be applied, look at the attached file.
Regards,
Maxim
--- nss/bsdnss.c.orig 2011-10-13 07:49:14.000000000 +1100
+++ nss/bsdnss.c 2012-01-14 21:42:54.000000000 +1100
@@ -165,7 +165,7 @@
return ret;
}
-static int __freebsd_getgroupmembership(void *retval,void *mdata,va_list ap)
+int __freebsd_getgroupmembership(void *retval,void *mdata,va_list ap)
{
int err;
nss_status_t s;
@@ -194,7 +194,7 @@
if (s==NSS_STATUS_SUCCESS)
{
for (i=0;i<lstart;i++)
- __gr_addgid(tmpgroups[i],groups,maxgrp,grpcnt)
+ __gr_addgid(tmpgroups[i],groups,maxgrp,grpcnt);
s=NSS_STATUS_NOTFOUND;
}
free(tmpgroups);
--
To unsubscribe send an email to
nss-pam-ldapd-users-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-users/