/[monit]/monit/protocols/ldap2.c
ViewVC logotype

Diff of /monit/protocols/ldap2.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by martinp, Fri Feb 14 08:22:33 2003 UTC revision 1.5 by martinp, Sun Jun 22 18:02:33 2003 UTC
# Line 100  int check_ldap2(Port_T p) { Line 100  int check_ldap2(Port_T p) {
100      /* NULL */                             /** ErrorMessage */      /* NULL */                             /** ErrorMessage */
101    };    };
102    
103      unsigned char unbind[7] = {
104        0x30,                        /** Universal Sequence TAG */
105        0x05,              /** Length of the packet's data part */
106    
107        0x02,                         /** Universal Integer TAG */
108        0x01,                                /** Integer length */
109        0x01,                                     /** MessageID */
110    
111        0x42,                 /** Application UnbindRequest TAG */
112        0x00                        /** Length of the data part */
113        /* NULL */
114    
115      };
116    
117    ASSERT(p);    ASSERT(p);
118    
119    
# Line 118  int check_ldap2(Port_T p) { Line 132  int check_ldap2(Port_T p) {
132      return FALSE;      return FALSE;
133    }    }
134    
135      if(port_send(p, (unsigned char *)unbind, sizeof(unbind), 0) < 0) {
136        log("LDAP: error sending data -- %s\n", STRERROR);
137        return FALSE;
138      }
139    
140    
141    return TRUE;    return TRUE;
142            

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26