Not answering your question directly. But here's a clue :
ShellExec + (gsec -user sysdba -password <password> -database
<databasename>)

IMHO The dba admin should be controlling passwords, not end users.
Tails should not wag dogs.

HTH - Chris

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Stevio
Sent: 20 August 2008 17:44
To: Delphi DB
Subject: Re: Creating a user from within Delphi

>> I have developed an application (Delphi 5 Pro) that connects to a 
>> Firebird
>> database using the standard sysdba username and password and at
present 
>> this
>> is hardcoded in my application. I want to change this and have a
specific
>> user set up for my application and database.
>
> On one of these lists I posted a utility that encrypts these values
> (very simple encryption) and can store the encrypted username,
password
> and db name in registry or an ini file. When my programs start they
look
> for these details for this user and if available attempt to open the
db
> with those credentials else they bring up the prompt form.

I am as well hardcoding the username am I not, since only this username
will 
have full rights over the database? The username is not something that
they 
will be able to change.

It would be nice to allow my user to change the password however and so
this 
could be encoded and stored in the registry/ini file. The database
location 
is not hardcoded, this is already stored in an ini file.

How can you, from within Delphi, change a Firebird user's password?

Thanks,
Stephen 

_______________________________________________
Delphi-DB mailing list
Delphi-DB@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-db

_______________________________________________
Delphi-DB mailing list
Delphi-DB@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-db

Reply via email to