db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean T. Anderson" <...@bristowhill.com>
Subject Re: Hello i have some problem with database username and password can any one solve it
Date Tue, 15 Nov 2005 17:14:55 GMT
umakanth mandela wrote:
> Hello,
> 
> I have been using derby and i want to set the password
> for derby database.
> 
> it is accepting the password attribute 
> 
> but sencond time it is opening the database even if
> provide the wrong password

Hi, Umakanth,

Authentication is off by default, which is why a wrong password works. 
Turn authentication on by setting this property:

    derby.connection.requireAuthentication=true

If you want to use Derby's built-in authentication, also set this:

    derby.authentication.provider=BUILTIN

Here are some references:

    http://db.apache.org/derby/docs/dev/devguide/cdevcsecure36127.html
    http://db.apache.org/derby/docs/dev/devguide/cdevcsecure21547.html

regards,

  -jean


Mime
View raw message