Monitor ldap POST

Hello,

I need help to set up a specific ldap monitor

this is a post in which I have to pass parameters provided by the server administrator

When I curl, it works

When I put it in a monitor the answer is KO

curl

curl --location --request POST ‘http://@IP/wsLdapWEB/services/LdapWsService’ \

--header ‘Content-Type: application/xml’ \

--header ‘SOAPAction:foo’ \

--data '<soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:ejb=“http://ejb.ws.ldap.com”>

soapenv:Header/

soapenv:Body

ejb:login

ejb:in0my-login</ejb:in0>

ejb:in1my-password</ejb:in1>

</ejb:login>

</soapenv:Body>

</soapenv:Envelope>’

Reply

<?xml version=“1.0” encoding=“UTF-8”?><soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:xsd=“http://www.w3.org/2001/XMLSchema” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>soapenv:Body<loginResponse xmlns=“http://ejb.ws.ldap.com”><loginReturn>12C5E7F-F2D6-F00579A61C</loginReturn></loginResponse></soapenv:Body></soapenv:Envelope>

In the monitor configuration I put this :

send string

POST http://10.29.56.48/wsLdapWEB/services/LdapWsService HTTP/1.1\r\n Content-Type: text/xml;charset=UTF-8rnHost: wsauth.carrefour.com\r\nSOAPAction:foo\“\”\r\n\r\nn<soapenv:Envelope xmlns:soapenv=\“http://schemas.xmlsoap.org/soap/envelope/\\” xmlns:ejb=\“http://ejb.ws.ldap.com\”>soapenv:Header/soapenv:Bodyejb:loginejb:in0my-login</ejb:in0>ejb:in1my-password</ejb:in1></ejb:login></soapenv:Body></soapenv:Envelope>\r\n

receive string

loginreturn

when I assign this monitor to the pool, the server is seen down

thank you in advance for your help

Cedric.

Hi

1 - can you try POST /wsLdap..etc, and Host:10.29.56.48

2- can you enable “Monitor Logging” on a pool member, and provide the correpsonding log file in /var/log/monitors/

This may also help for details.

Let me know if it helps.

Yoann