Forum Discussion

Kevin_Nail's avatar
Kevin_Nail
Icon for Nimbostratus rankNimbostratus
Oct 03, 2007

LDAP Logging to LTM

Hi,

 

 

I copied this irule from another post (name was changed from SMTP to LDAP) to use to log LDAP connections to my local LTM. Below the rule is the error that showed up in my log. Any ideas what I did wrong?

 

 

Thanks,

 

Kevin

 

 

when SERVER_CONNECTED {

 

log local0. "LDAP connection from [IP::client_addr]:[TCP::client_port]. \

 

Mapped to [serverside {IP::local_addr}]:[serverside {TCP::local_port}] \

 

-> [IP::server_addr]:[serverside {TCP::remote_port}]"

 

}

 

 

 

Oct 3 16:06:51 bigstg1 mcpd[1056]: 01070151:3: Rule [LDAP_Logging] error: line 1: [undefined procedure: rule] [rule log_ldap_connections { when SERVER_CONNECTED { log local0. "LDAP connection from [IP::client_addr] :[TCP::client_port]. \ Mapped to [serverside {IP::local_addr}]:[serverside {TCP::local_port}] -> [IP::server_addr]:[serverside {TCP::remote_port}]" } }]

 

 

 

1 Reply

  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    I'd try moving all of the lines of the log statement onto a single line, and removing the backslashes. It could be that the TCL interpreter is having a hard time parsing the rule in its current form.

     

     

    Other than that, it looks fine.

     

     

    Colin