跳转到主内容

CONAP-458497:AD域区分大小写、使用输入通过CLI直通API进行访问

Views:
2
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core
Last Updated:

问题描述


 
[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": ""
}

 
  • 但小写域工作正常:

[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."
}

使用其他语法时、AD域不区分大小写:
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.