Hi,
I am working on an issue. In cli, i am entering username as input with backslash.
For example username is ‘user\cli1’
In logs, i see it is getting saved as usercli1.
It removes backslash character.
Is backslash a reserved character in confd or how to solve this issue? Thanks in advance.
Thanks for the reply. I made change in the code to replace single backslash with double backslash. Here is some info:
XML displayed in shell:
Command: /opt/tailf/confd/bin/confd_load -F p -p "/authentication/edit/local-user-list{local-users}/edit/user
Output:
local-users
user\again
useragain
userrest\a
…
…
When wanted to get specific user which is present in above xml:
/opt/tailf/confd/bin/confd_cmd -c “get /authentication/edit/local-user-list{local-users}/edit/user{user\again}/name”
useragain
/opt/tailf/confd/bin/confd_cmd -c “get /authentication/edit/local-user-list{local-users}/edit/user{useragain}/name”
useragain
/opt/tailf/confd/bin/confd_cmd -c “get /authentication/edit/local-user-list{local-users}/edit/user{userrest\a}/name”
FAILED: cdb_get(cs, &val, argv[0]), Error: item does not exist (1): /clp:authentication/edit/local-user-list{local-users}/edit/user{userresta} does not exist, in function do_cdb_get, line 334
[clpdebug@local ~]$ /opt/tailf/confd/bin/confd_cmd -c “get /authentication/edit/local-user-list{local-users}/edit/user{userrest\a}/name”
FAILED: cdb_get(cs, &val, argv[0]), Error: item does not exist (1): /clp:authentication/edit/local-user-list{local-users}/edit/user{userresta} does not exist, in function do_cdb_get, line 334
In the last command, it is double backslash in userrest(double backslash)a
Thanks. Greatly appreciate it. Using backslash double helped in cli, but not via REST input.
CLI input double backslash is equivalent to single backslash in REST input xml.
For example:
cli : create user name clidouble\ac
edit user cli
Possible completions:
cliaaa cliaac clidouble\ac
In REST:
input.xml: name start tag: restsingle\ac name end tag
In cli:
edit user restsingle?
This line doesn’t have a valid range expression
Possible completions:
restsingle\ac