CONTAP-458497: AD domain case sensitive with CLI passthrough API using input
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"