cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
402
Views
0
Helpful
2
Replies

Unable to use $XML_Password in XML_Directory_Service_URL

Jonathan Leroy
Level 1
Level 1

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.

2 Replies 2

pieterh
VIP
VIP

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

Hi @pieterh,

Thank you for your answer.

and the password is sent when challenged


You mean via HTTP Basic auth?