03-09-2022 10:23 PM
Hello All,
I am trying to add user in CMS MMP with role ldap but getting below error ,
CMS1> user add ssaini266 ldap
Invalid role: ldap
CMS1> user add vgeorge260 ldap
Invalid role: ldap
Can anyone help on this ?
Solved! Go to Solution.
03-14-2022 06:12 AM
03-09-2022 10:35 PM - edited 03-10-2022 12:48 AM
Hi,
"ldap" is not a role.
The optional parameter "ldap" just defines, if the added user is a ldap user.
Syntax is:
user add <username> <role> [ldap]
role parameter must be one of the following: admin | crypto | audit | appadmin | api
03-10-2022 08:38 PM
Hello ,
Its not taking command :
ICMS1>
CMS1> user add njai260 admin ldap
Incorrect number of arguments
CMS1> user add njai260 admin [ldap]
Incorrect number of arguments
CMS1>
03-10-2022 10:50 PM
Do you have integrated your CMS with LDAP sync?
I haven't found this in any documents, but maybe this needs to be set up first.
Because with the "ldap" parameter, you are trying to add a user, which is not a "local" user, but which is synced via LDAP into the CMS.
03-10-2022 11:36 PM - edited 03-10-2022 11:44 PM
Just tested on a brand new CMS installation:
Command should be able to configure, even without any config in CMS.
Which version of CMS are you using?
Which options do you see, when you enter the command "user ?"
03-11-2022 01:10 AM
Hello winter,
Version is 3.1 .
We have already sync LDAP
03-11-2022 03:10 AM
What options does it give you, when you enter the command "user ?"
Please post the output.
Should look like this:
Manage users Usage: user add <username> <role> [ldap] user del <username> user info <username> user evict <username> user expire <username> user unlock <username> user host <username> add <hostname> user host <username> del <hostname> user duty <username> <duty hours> user duty <username> none user rule <rule name> <value> user list
Do you see the "ldap" parameter under the "user add" command?
Are you logged in with an admin user, while trying to configure a new user?
03-11-2022 03:45 AM
No i can't see., using admin user .
Usage:
user add <username> <role>
user del <username>
user info <username>
user evict <username>
user expire <username>
user unlock <username>
user host <username> add <hostname>
user host <username> del <hostname>
user duty <username> <duty hours>
user duty <username> none
user rule <rule name> <value>
user list
CMS1>
03-11-2022 04:06 AM - edited 03-11-2022 04:08 AM
Then it's obvious, why there is an error with "invalid argument"
What's your exact version? Can you post the output of the command "version"?
03-11-2022 10:24 AM
Hello Winter ,
Its 3.1
I am referring this doc on page 23 , i don't know why its not taking in 3.1 and 3.2 as well .
03-12-2022 09:21 AM
Hello winter,
Have you found any solution for this .
03-12-2022 10:43 AM - edited 03-12-2022 10:45 AM
Hi,
I think it's time to open TAC case.
I check my CMS 3.2.2.
Regarding documentation > "help ldap" command has many option and configurations for LDAP.
But my CMS don't have any ldap MMP command .
P.S. if i try create user >user add newadmin admin ldap , i received same error "Incorrect number of arguments"
P.P.S. i don't need ldap integration with MMP
BR Oleksandr
03-14-2022 05:59 AM
Hi Vinod,
sorry, I don't have any clue, why the parameter isn't showing up in your CMS.
Maybe you have to ask TAC as @Oleksandr Yurchenko recommended.
Do you have the chance to deploy a new CMS, just to check, if the parameter is showing up there?
As already written, when I did that, I didn't need any config at all.
The only thing, I could imagine is, that you are logging in with a user, that has no admin role, but then probably, you would not be able to issue the command at all
But I don't have any solution.
03-14-2022 06:12 AM
Finally i got the solutions, its working for cms 3.3
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide