ā11-30-2023 04:41 AM - edited ā11-30-2023 04:45 AM
Hi,
I'm trying to develop an internal directory for our CP-8841-3PCC using the XML directory service feature.
The documentation states:
XML Directory Service
When an XML URL requires authentication, use the parameters XML UserName and XML Password.
The parameter XML UserName in XML URL is replaced by $XML UserName.
For example:
The parameter XML UserName is cisco. The XML Directory Service URL is http://www.sipurash.compath?username=$XML_User_Name.
This results in the request URL: http://www.sipurash.com/path?username=cisco.
Even if the example just use $XML_User_Name, the first line says that $XML_Password can be used too.
However, if I define the XML Directory Service URL parameter with both $XML_User_Name and $XML_Passwordā¦
<XML_Directory_Service_URL ua="na">https://sip-provisioning.example.com/$PN/Directory/$UID1.xml?sn=$SN&username=$XML_User_Name&password=$XML_Password</XML_Directory_Service_URL>
ā¦the last one isn't expanded with the content of the related setting:
GET /CP-8841-3PCC/Directory/0033900000000.xml?sn=XXXXXX&username=testuser&password=$XML_Password HTTP/1.0" 200 47 "-" "Cisco-CP-8841-3PCC/12.0.3 (XXXXXXXXX)"
Is this a bug? The documentation is unclear at least.
ā12-08-2023 06:21 AM
How I read the docu is
1) you define both XML_User_Name and XML_Password.
2) in the url you only use http://www.sipurash.compath?username=$XML_User_Name
with this the username is expanded in the URL
The parameter XML UserName in XML URL is replaced by $XML UserName.
and the password is sent when challenged
ā12-09-2023 11:20 AM
Hi @pieterh,
Thank you for your answer.
and the password is sent when challenged
You mean via HTTP Basic auth?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide