geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael2 <wtist...@yahoo.com>
Subject Re: Admin Console Access and Security Realm
Date Tue, 24 Feb 2009 14:45:11 GMT

Hello David:

Yes, I still have problems.
 
First of all, I appreciate your help very much. Please bear with me. I just
want to learn from the Geronimo experts like you to see how to replace the
default Properties File Realm with the Database (SQL) Realm. Following your
suggestions, I created a Derby SQL Realm with the same name as the default
Realm “geronimo-admin”, I tested it successfully and deployed it. Now I can
see two “geronimo-admin” Realms listed on the Security Realms list. Then I
stopped the Geronimo server and modified the “artifact_aliases.properties”
file on the Geronimo \var\config directory as:
……
org.apache.geronimo.framework/server-security-config//car=console.realm/geronimo-admin/1.0/car
……
org.apache.geronimo.framework/server-security-config/2.1.2/car=console.realm/geronimo-admin/1.0/car
……
org.apache.geronimo.framework/server-security-config/2.1/car=console.realm/geronimo-admin/1.0/car
……
org.apache.geronimo.framework/server-security-config/2.1.1/car=console.realm/geronimo-admin/1.0/car
……
After that, I re-started Geronimo server and tried to log into the admin
console with the user name/password I had tested in the SQL Realm, I got a
“Invalided Username and/or Password!” error. The system default user name
and password is still working.

I am using Geronimo 2.1.3, is it an issue or is there something else I need
to do to make it work?

Thanks.

Michael


djencks wrote:
> 
> Hi Michael,
> 
> I guess the documentation wasn't too clear about what to do if you  
> aren't building your security realm as a plugin.  Generally you never  
> want to update an installed plugin in place (in repository).  I've  
> updated the docs here
> 
> http://cwiki.apache.org/confluence/display/GMOxDOC22/Basic+Hints+on+Security+Configuration
> 
> (should get to 
> http://cwiki.apache.org/GMOxDOC22/basic-hints-on-security-configuration.html
> soon)
> 
> Please let us know if this is still not clear or you still have problems
> 
> thanks!
> david jencks
> 
> 
> On Feb 23, 2009, at 3:44 PM, Michael2 wrote:
> 
>>
>> Hi David:
>>
>> I followed your suggestion and created a new SQL security realm named
>> "geronimo-admin". I also updated the geronimo-plugin.xml under the
>> C:\Geronimo-2.1.3\repository\org\apache\geronimo\framework\server- 
>> security-config\2.1.3\server-security-config-2.1.3.car\META-INF
>> directory from
>>
>>        <artifact-alias
>> key="org.apache.geronimo.framework/server-security-config// 
>> car">org.apache.geronimo.framework/server-security-config/2.1.3/car</ 
>> artifact-alias>
>>        <artifact-alias
>> key="org.apache.geronimo.framework/server-security-config/2.1.2/ 
>> car">org.apache.geronimo.framework/server-security-config/2.1.3/car</ 
>> artifact-alias>
>>        <artifact-alias
>> key="org.apache.geronimo.framework/server-security-config/2.1.1/ 
>> car">org.apache.geronimo.framework/server-security-config/2.1.3/car</ 
>> artifact-alias>
>>        <artifact-alias
>> key="org.apache.geronimo.framework/server-security-config/2.1/ 
>> car">org.apache.geronimo.framework/server-security-config/2.1.3/car</ 
>> artifact-alias>
>>
>> to:
>>        <artifact-alias
>> key="org.apache.geronimo.framework/server-security-config// 
>> car">console.realm/geronimo-admin/1.0/car</artifact-alias>
>>        <artifact-alias
>> key="org.apache.geronimo.framework/server-security-config/2.1.2/ 
>> car">console.realm/geronimo-admin/1.0/car</artifact-alias>
>>        <artifact-alias
>> key="org.apache.geronimo.framework/server-security-config/2.1.1/ 
>> car">console.realm/geronimo-admin/1.0/car</artifact-alias>
>>        <artifact-alias
>> key="org.apache.geronimo.framework/server-security-config/2.1/ 
>> car">console.realm/geronimo-admin/1.0/car</artifact-alias>
>>
>>
>> When I re-start the Geronimo server, I still cannot log into the Admin
>> console with the new user id and password I created in the database  
>> and have
>> to use the default system/manager to get in. Do I miss anything?
>>
>> Thanks.
>>
>> Michael
>> -- 
>> View this message in context:
>> http://www.nabble.com/Admin-Console-Access-and-Security-Realm-tp22093927s134p22172803.html
>> Sent from the Apache Geronimo - Users mailing list archive at  
>> Nabble.com.
>>
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Admin-Console-Access-and-Security-Realm-tp22093927s134p22181064.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message