tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Costin Manolache <cos...@eng.sun.com>
Subject Re: tomcat-users.xml
Date Sun, 02 Apr 2000 16:26:22 GMT
FileRealmTool is not part of the "main" source code and it's not supported.

Please edit <tomcat-users> if you want to play with that. It is just a very simple
storage, with clear text passwords and a lot of limitations - it's there just to provide
 a simple default.

We'll add the "real" thing in next versions of tomcat - integration with apache, support
for common user authentication systems ( PAM, Win native, etc - via JAAS ).

Costin


Sim IJskes wrote:

> I have the file:
>
> <tomcat-users>
>   <user name="tomcat" password="tomcat" roles="tomcat" />
>   <user name="sim" password="pass" roles="kiwiadmin" />
> </tomcat-users>
>
> But when i try to list or modify this file with:
>
> java org.apache.tomcat.security.file.FileRealmTool
>
> i get:
>
> Exception in thread "main" java.lang.IllegalArgumentException: Bad
> hexadecimal digit
>         at org.apache.tomcat.util.HexUtils.convert(HexUtils.java:135)
>         at
> org.apache.tomcat.security.file.FileRealmDatabase.readUser(FileRealmDatabase.java:422)
>         at
> org.apache.tomcat.security.file.FileRealmDatabase.read(FileRealmDatabase.java:327)
>         at
> org.apache.tomcat.security.file.FileRealmDatabase.<init>(FileRealmDatabase.java:143)
>         at
> org.apache.tomcat.security.file.FileRealmTool.open(FileRealmTool.java:530)
>         at
> org.apache.tomcat.security.file.FileRealmTool.main(FileRealmTool.java:167)
>
> When i remove the users and recreate the file with the tool, it creates
> a <user> element without the 'roles' attribute. This tomcat itself does
> not like. It complains about a null pointer.
>
> Any ideas? Is it a bug?
>
> Gr. Sim
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org


Mime
View raw message