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) $ r...@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
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to