ibase microsip firebird
<?php
$user_name="ABC";
$password="123";
$ibserv = ibase_service_attach("localhost","SYSDBA","masterkey");
ibase_modify_user($ibserv, $user_name, $password);
ibase_service_detach($ibserv);
?>
this change te password por user ABC to 123
SYSDBA USER AND PASSWORD IS NEED TO THIS LINE
<?php $ibserv = ibase_service_attach("localhost","SYSDBA","masterkey"); ?>
ibase_modify_user
(PHP 5)
ibase_modify_user — Modifica um usuário para um banco de dados seguro (somente para IB6 ou posterior)
Descrição
bool ibase_modify_user
( resource
$service_handle
, string $user_name
, string $password
[, string $first_name
[, string $middle_name
[, string $last_name
]]] )Aviso
Esta função não está documentada; somente a lista de argumentos está disponível.
O PHP 4 usa server,
dba_user_name e
dba_user_password ao invés do parâmetro
service_handle.
Valor Retornado
Retorna TRUE em caso de sucesso ou FALSE em caso de falha.
Veja Também
- ibase_add_user() - Adiciona um usuário a um banco de dados seguro (apenas para IB6 ou posterior)
- ibase_delete_user() - Exclui um usuário de um banco de dados seguro (apenas para o IB6 ou posterior)
admin at systecdurango dot com ¶
1 year ago
_ex at navigators dot lv ¶
8 years ago
function changed in php 5! in earlier versions the syntax was:
bool ibase_modify_user ( string server, string dba_user_name, string dba_user_password, string user_name, string password [, string first_name [, string middle_name [, string last_name]]])
now it's necessary to connect to service manager, then call ibase_modify_user() and then disconnect from service manager:
$ibserv = ibase_service_attach($host, $dba_username, $dba_password);
ibase_modify_user($ibserv, $user_name, $password);
ibase_service_dettach($ibserv);
