• Home
  • Raw
  • Download

Lines Matching full:user

8 The purpose of this module is to grant access to a new-user/host/password
78 def mysql_cmd(cls, cmd, user=DEFAULT_USER, password=DEFAULT_PASS, argument
84 @param user: The user to use in the given command.
85 @param password: The password for the user.
89 (user, password, host, port, cmd))
109 def ping(cls, db_server, user=DEFAULT_USER, password=DEFAULT_PASS, argument
111 """Ping the given db server as 'user' using 'password'.
114 @param user: The user to use in the ping.
115 @param password: The password of the user.
130 'SELECT version();', host=mysql_cmd_host, user=user,
135 def bootstrap(user, password, source_host, dest_host): argument
136 """Bootstrap the given user against dest_host.
138 Allow a user from source_host to access the db server running on
141 @param user: The user to bootstrap.
142 @param password: The password for the user.
143 @param source_host: The host from which the new user will access the db.
147 user/password specified in the shadow_config under default_db_*, or
158 # Confirm the default user has at least database read privileges. Note if
159 # the default user has *only* read privileges everything else will still
164 # Prepare and execute the grant statement for the new user.
166 'new_user': user,
178 # Confirm the new user can ping the remote database server from localhost.
180 dest_host, user=user, password=password, use_ssh=False)
209 Grants permissions to the appropriate user on localhost, then enables the
215 user = global_config.global_config.get_config_value(
216 'AUTOTEST_WEB', 'user')
225 logging.info('Bootstrapping user %s on host %s against db server %s',
226 user, local_hostname, dest_host)
227 bootstrap(user, password, local_hostname, dest_host)
232 bootstrap(user, password, gateway, dest_host)