SSO 的实施问题

发布于 2024-08-21 13:27:21 字数 980 浏览 5 评论 0原文

让我先说一下我是 PHP 环境的初学者,所以这里可能有一个简单的答案。我们正在尝试使用 phpCAS 连接到我们大学的 CAS 服务器。

我们的服务器已设置为满足这些要求: http://www .ja-sig.org/wiki/display/CASC/phpCAS+requirements,我们已将 phpCAS 安装到它自己的可访问目录中将其路径包含在“include_path”变量中,以便可以轻松访问。

运行 /CAS-1.0.1/docs/examples/example_simple 时。当我使用安装附带的 php 时,我一遍又一遍地收到以下警告:

警告:error_log() [function.error-log]:open_basedir 限制生效。文件(/tmp/phpCAS.log)不在允许的路径内:(/var/www/)位于/var/www/html/root/CAS-1.0.1/CAS.php第453行

警告:error_log(/tmp/phpCAS.log)[function.error-log]:无法打开流:/var/www/html/root/CAS-1.0.1/CAS.php 中不允许操作第453行

我得到这些屏幕上一遍又一遍地重复警告,然后是以下消息:

需要 CAS 认证!
您应该已经被重定向到 CAS 服务器。单击此处继续。

单击登录会将我发送到相应的 cas 服务器,然后将我直接重定向回此页面,所有警告仍然可见。有什么想法吗?

Let me preface this by saying I'm a beginner in a PHP environment so there may be a simple answer here. We're trying to use phpCAS to connect to our university's CAS server.

Our server has been set up to match these requirements: http://www.ja-sig.org/wiki/display/CASC/phpCAS+requirements, and we have installed phpCAS to it's own accessable directory & included its path in the "include_path" variable so it can be easily accessed.

When running the /CAS-1.0.1/docs/examples/example_simple.php that comes with the install, i receive the following warnings over and over:

Warning: error_log() [function.error-log]: open_basedir restriction in effect. File(/tmp/phpCAS.log) is not within the allowed path(s): (/var/www/) in /var/www/html/root/CAS-1.0.1/CAS.php on line 453

Warning: error_log(/tmp/phpCAS.log) [function.error-log]: failed to open stream: Operation not permitted in /var/www/html/root/CAS-1.0.1/CAS.php on line 453

I get these warnings repeated over and over on the screen, followed by this message:

CAS Authentication wanted!
You should already have been redirected to the CAS server. Click here to continue.

Clicking the login sends me to our appropriate cas server, then redirects me straight back to this page, with all the warnings still visible. Any thoughts?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

您的 CAS 实现想要将日志写入 /tmp 目录,但您的 PHP 配置禁止这样做。要打开该脚本的目录,请尝试

open_basedir = /var/www/:/tmp/

php.ini 配置文件或

php_admin_value open_basedir "/var/www/:/tmp/"

httpd.conf(如果适用)中进行尝试。

Your CAS implementation wants to write a log to a the /tmp directory, but your PHP configuration prohibits that. To open that directory for the script, try either

open_basedir = /var/www/:/tmp/

in your php.ini configuration file, or

php_admin_value open_basedir "/var/www/:/tmp/"

in your httpd.conf (if applicable).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文