[Logwatch-Devel] patch to automount 1.11 to ignore lookup(ldap) warnings

David Baldwin david.baldwin at anu.edu.au
Thu Dec 22 19:08:04 MST 2005


automount using LDAP tries several different record formats - 
objectclass=nisObject and objectclass=automount - to find keys and values, and 
logs unsuccessful queries even when it finds a match using an alternate form. 
These can be safely ignored.

  lookup(ldap): got answer, but no first entry for 
(&(objectclass=automount)(cn=z01)): 2 Time(s)
  lookup(ldap): got answer, but no first entry for 
(&(objectclass=automount)(cn=k56)): 1 Time(s)
  lookup(ldap): got answer, but no first entry for 
(&(objectclass=automount)(automountKey=d66)): 2 Time(s)
  lookup(ldap): got answer, but no first entry for 
(&(objectclass=automount)(cn=103)): 5 Time(s)

David.
-- 
=====================================================================+
David Baldwin                   mailto:David.Baldwin at anu.edu.au      |
Supercomputer Facility          URL: http://www.anu.edu.au/~u8611156 |
II Services, Huxley Building    Ph:  {intl+61+2 | (02)} 6125 0321    |
Australian National University  FAX: {intl+61+2 | (02)} 6125 8199    |
Canberra ACT 0200, AUSTRALIA  *======================================+
-------------- next part --------------
--- scripts/services/automount  21 Apr 2005 17:12:01 -0000      1.11
+++ scripts/services/automount  23 Dec 2005 02:02:30 -0000
@@ -17,6 +17,7 @@
 while (defined($ThisLine = <STDIN>)) {
    if ( ($ThisLine =~ /^using kernel protocol version .*$/) or
          ($ThisLine =~ /^expired .*$/) or
+         ($ThisLine =~ /^lookup\(ldap\): got answer, but no first entry for /) or
          ($ThisLine =~ /^>>.*mount: .*$/) ) {
       # don't care about these
    }


More information about the Logwatch-Devel mailing list