Configuration 如何为openrdf工作台设置密码?
我已经成功安装了(sesame 2.3.2)和Openrdf workbench,但是我不知道如何设置用户和密码来保护Openrdf workbench。我想在某处有一个配置文件Configuration 如何为openrdf工作台设置密码?,configuration,passwords,rdf,semantics,sesame,Configuration,Passwords,Rdf,Semantics,Sesame,我已经成功安装了(sesame 2.3.2)和Openrdf workbench,但是我不知道如何设置用户和密码来保护Openrdf workbench。我想在某处有一个配置文件 有人能告诉我如何为openrdf工作台创建用户和设置密码吗 我认为您需要在servlet容器级别进行密码保护。你在用Tomcat吗?下面是我使用Tomcat 6设置基本身份验证的步骤: web.xml <security-constraint> <web-resource-collection&g
有人能告诉我如何为openrdf工作台创建用户和设置密码吗 我认为您需要在servlet容器级别进行密码保护。你在用Tomcat吗?下面是我使用Tomcat 6设置基本身份验证的步骤: web.xml
<security-constraint>
<web-resource-collection>
<web-resource-name>Sesame Workbench</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>sesame-user</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Sesame Workbench</realm-name>
</login-config>
<security-role>
<description>The role required for Sesame workbench</description>
<role-name>sesame-user</role-name>
</security-role>
<role rolename="sesame-user"/>
<user username="workbench" password="workbench" roles="sesame-user"/>
芝麻工作台
/*
芝麻用户
基本的
芝麻工作台
Sesame workbench所需的角色
芝麻用户
tomcat users.xml
<security-constraint>
<web-resource-collection>
<web-resource-name>Sesame Workbench</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>sesame-user</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Sesame Workbench</realm-name>
</login-config>
<security-role>
<description>The role required for Sesame workbench</description>
<role-name>sesame-user</role-name>
</security-role>
<role rolename="sesame-user"/>
<user username="workbench" password="workbench" roles="sesame-user"/>
我不知道为什么,但它不起作用。我的意思是我可以在不提供用户名和密码的情况下打开workbench。我的错是,我认为某些东西不需要测试就可以工作。似乎您不能使用main web.xml来保护单个webapp URL(但您可以使用/*来保护Tomcat提供的所有内容)。因此,如果只想保护工作台,可以将上述代码段添加到该webapp的web.xml中(例如webapps/openrdf workbench/web-INF/web.xml)。