Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
msa2003
Contributor
Jump to solution

Adding User (Gaia) via script in a cloning group enabled cluster

Good morning! 

 

I am trying to create a script to automate (Gaia) admin users creation in a cluster with 'cloning group feature enabled'. This cluster is composed of two gateways (fwext01 and fwext02). We have R81.10, take 66 on them.

When I run the script on fwext01, for example, these are the commands that are executed:

clish -s -f comandos.txt

(The content of 'comandos.txt' file is:)

set cloning-group-management on
add user adm_mickeymouse uid 0 homedir /home/adm_mickeymouse
set user adm_mickeymouse realname "Mickey Mouse"
set user adm_mickeymouse password-hash $6$PSTU$EvYhx6iMbZygtZamlZ8MRH0RfeVFGRMpnyfYyeGuXE5O6qq93VB77v.0kVFOEXeRC39gxZBidj4ccOTrGE48x2
set user adm_mickeymouse force-password-change yes
add rba user adm_mickeymouse roles adminRole
set user adm_mickeymouse shell /bin/bash
save config
set cloning-group-management off

The results of script execution on fwext01 is totally correct:

add user adm_mickeymouse uid 0 homedir /home/adm_mickeymouse
add rba user adm_mickeymouse roles adminRole
set user adm_mickeymouse gid 0 shell /bin/bash
set user adm_mickeymouse realname "Mickey Mouse"
set user adm_mickeymouse password-hash $6$PSTU$EvYhx6iMbZygtZamlZ8MRH0RfeVFGRMpnyfYyeGuXE5O6qq93VB77v.0kVFOEXeRC39gxZBidj4ccOTrGE48x2

But... When I look the configuration that was automatically reflected on fwext02 (via cloning group features), I realize that the password is not being replicated at all:

add user adm_mickeymouse uid 0 homedir /home/adm_mickeymouse
add rba user adm_mickeymouse roles adminRole
set user adm_mickeymouse gid 0 shell /bin/bash
set user adm_mickeymouse realname "Mickey Mouse"
set user adm_mickeymouse password-hash *

 

Could anyone please help us with this? 

 

Thanks!

 

0 Kudos
7 Replies
This widget could not be displayed.

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events