Skip to main content
NetApp Knowledge Base

CONTAP-458497: AD domain case sensitive with CLI passthrough API using input

Views:
18
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core
Last Updated:
5/15/2025, 8:31:20 AM

Issue

  • When using the RESTAPI CLI passthrough using the syntax "https://cluster1/api/private/cli" -d '\{"input": "xxx"}', the AD domain is case sensitive:
  • Error with domain in uppercase:

 
[root@rhel1 ~]# curl -ksu DEMO\\test:xxxx -X POST "https://cluster1/api/private/cli" -d '{"input": "vol show"}'
{
  "error": {
    "message": "not authorized for that command",
    "code": "6"
  },
  "output": ""
}

 
  • But lowercase domain works fine:

[root@rhel1 ~]# curl -ksu demo\\test:xxxx -X POST "https://cluster1/api/private/cli" -d '{"input": "vol show"}' | sed 's/\\n/\n/g'
{
  "output": "Last login time: 5/14/2025 15:23:35Vserver   Volume       Aggregate    State      Type       Size  Available Used%
--------- ------------ ------------ ---------- ---- ---------- ---------- -----
cluster1-01 vol0       aggr0_cluster1_01 online RW     22.99GB    10.27GB   52%
cluster1-02 vol0       aggr0_cluster1_02 online RW     22.99GB    10.17GB   53%
svm1      svm1_root    cluster1_01_aggr1 online RW        20MB    18.07MB    4%
svm1      test_passthrough cluster1_01_aggr1 online RW     1GB    972.3MB    0%
svm1      test_passthrough2 cluster1_01_aggr1 online RW    1GB    972.4MB    0%
svm2      svm2_root    cluster1_02_aggr1 online RW        20MB    18.09MB    4%
6 entries were displayed."
}

When using other syntaxes, AD domain is not case sensitive:
curl -ksu DEMO\\test:xxxx -X GET "https://cluster1/api/storage/volumes"
curl -ksu DEMO\\test:xxxx -X GET "https://cluster1/api/private/cli/volume"

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.