From owner-freebsd-questions@FreeBSD.ORG Thu Jun 10 23:23:40 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BF872106564A for ; Thu, 10 Jun 2010 23:23:40 +0000 (UTC) (envelope-from Carlos.Paniago@cnptia.embrapa.br) Received: from plutao.cnptia.embrapa.br (plutao.cnptia.embrapa.br [200.0.70.9]) by mx1.freebsd.org (Postfix) with ESMTP id 3ED468FC0A for ; Thu, 10 Jun 2010 23:23:40 +0000 (UTC) Received: from plutao.cnptia.embrapa.br (localhost [127.0.0.1]) by plutao.cnptia.embrapa.br (Postfix) with ESMTP id 3B48990078 for ; Thu, 10 Jun 2010 20:06:44 -0300 (BRT) X-Virus-Scanned: amavisd-new at cnptia.embrapa.br Received: from plutao.cnptia.embrapa.br ([127.0.0.1]) by plutao.cnptia.embrapa.br (plutao.cnptia.embrapa.br [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Jdj4aq4aW8Xv for ; Thu, 10 Jun 2010 20:06:30 -0300 (BRT) Received: from a055.cnptia.embrapa.br (a055.cnptia.embrapa.br [10.129.3.55]) by plutao.cnptia.embrapa.br (Postfix) with ESMTPS id 20CBE900FB for ; Thu, 10 Jun 2010 20:06:30 -0300 (BRT) Message-ID: <4C116FF6.9070607@cnptia.embrapa.br> Date: Thu, 10 Jun 2010 20:06:30 -0300 From: Carlos Fernando Assis Paniago User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; pt-BR; rv:1.9.1.9) Gecko/20100331 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: cron not sending emails (SOLVED) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jun 2010 23:23:40 -0000 I Had a terrible week with freebsd. In monday I did an upgrade from 7.3 to 8.1-prerelease in 3 machines, 2 of them worked normaly and one stop functioning, and without user (ldap) e cron is not sending emails. The log for cron is: Jun 10 19:45:00 sol /usr/sbin/cron[80892]: (root) CMD (/usr/libexec/atrun) Jun 10 19:45:00 sol cron[80892]: NSSWITCH(_nsdispatch): ldap, group, setgrent, not found, and no fallback provided Jun 10 19:45:00 sol cron[80891]: NSSWITCH(_nsdispatch): ldap, group, setgrent, not found, and no fallback provided Jun 10 19:45:00 sol cron[80892]: NSSWITCH(_nsdispatch): ldap, group, getgrent_r, not found, and no fallback provided Jun 10 19:45:00 sol cron[80891]: NSSWITCH(_nsdispatch): ldap, group, getgrent_r, not found, and no fallback provided Jun 10 19:45:00 sol cron[80892]: NSSWITCH(_nsdispatch): ldap, group, endgrent, not found, and no fallback provided Jun 10 19:45:00 sol cron[80891]: NSSWITCH(_nsdispatch): ldap, group, endgrent, not found, and no fallback provided Jun 10 19:45:00 sol cron[80891]: NSSWITCH(_nsdispatch): ldap, passwd, endpwent, not found, and no fallback provided Jun 10 19:45:00 sol cron[80892]: NSSWITCH(_nsdispatch): ldap, passwd, endpwent, not found, and no fallback provided The ldap stop working with the messages: Jun 10 17:25:09 sol slapd[41741]: @(#) $OpenLDAP: slapd 2.3.43 (Jun 10 2010 17:16:31) $ root@sol.cnptia.embrapa.br:/usr/ports/net/openldap23-server/work/openldap-2.3.43/servers/slapd Jun 10 17:25:09 sol slapd[41741]: NSSWITCH(_nsdispatch): ldap, passwd, endpwent, not found, and no fallback provided Jun 10 17:25:09 sol slapd[41741]: NSSWITCH(_nsdispatch): ldap, group, setgrent, not found, and no fallback provided Jun 10 17:25:09 sol slapd[41741]: NSSWITCH(_nsdispatch): ldap, group, getgrent_r, not found, and no fallback provided Jun 10 17:25:09 sol slapd[41741]: NSSWITCH(_nsdispatch): ldap, group, endgrent, not found, and no fallback provided Jun 10 17:25:09 sol slapd[41741]: NSSWITCH(_nsdispatch): ldap, group, endgrent, not found, and no fallback provided Jun 10 17:25:09 sol slapd[41742]: slapd starting and in auth.log this log Jun 7 19:22:17 sol login: pam_acct_mgmt(): error in service module And until today after recompiling everithing from the ports to the system I cannot find the error. Today I found this: rigel# ldd /usr/local/lib/nss_ldap.so.1 /usr/local/lib/nss_ldap.so.1: libldap-2.3.so.2 => /usr/local/lib/libldap-2.3.so.2 (0x800c00000) liblber-2.3.so.2 => /usr/local/lib/liblber-2.3.so.2 (0x800d37000) libsasl2.so.2 => /usr/local/lib/libsasl2.so.2 (0x800e45000) libkrb5.so.10 => /usr/lib/libkrb5.so.10 (0x800f5d000) libcom_err.so.5 => /usr/lib/libcom_err.so.5 (0x8010ca000) libgssapi_krb5.so.10 => /usr/lib/libgssapi_krb5.so.10 (0x8011cc000) libc.so.6 =>(unknow) libssl.so.6 => /usr/lib/libssl.so.6 (0x8012e6000) libcrypto.so.6 => /lib/libcrypto.so.6 (0x801438000) libgssapi.so.10 => /usr/lib/libgssapi.so.10 (0x8016d2000) libhx509.so.10 => /usr/lib/libhx509.so.10 (0x8017db000) libroken.so.10 => /usr/lib/libroken.so.10 (0x80191a000) libasn1.so.10 => /usr/lib/libasn1.so.10 (0x801a2b000) libcrypt.so.5 => /lib/libcrypt.so.5 (0x801baa000) The problem was the libsasl2 (cyrus-sasl2) that was old. I found a lot of pages in google with this problem and no solution. And I find it using the command "cd /usr/local/lib ; grep -R libc.so.6 *". After the finding I compiled the module (cyrus-sals2) and everything comes back to normal. The problem is that nss_ldap.so.1 dont say that the library is missing but point the error to the PAM modules. Everyone that have this same problem try to find in the nss_ldap, pam_ldap etc, some reference to old libs. Paniago