Davrods(irods客户端)在centos上的安装

Davrods (irods client) installation on centos

我正在尝试安装 davrods,但我认为该网站缺少一些步骤。

我正在按照 https://github.com/UtrechtUniversity/davrodshttps://github.com/UtrechtUniversity/davrods 上的步骤操作。我已经有了我的 irods 服务器 运行 并且我可以使用 icommands.The 先决条件 我做的是下面列出的这些以及在我可以在我的 centos 7 上安装 davrods 之后。我也按照你的 git 资料库。

在文件“/etc/httpd/conf.d/davrods-vhost.conf”中,我取消了必要行的注释并更改了一些配置:

<VirtualHost *:80>
     ServerName 145.xxx.xxx.xxx:443
    <Location />
       DirectoryIndex disabled
        AuthType Basic
        Require valid-user
        AuthName DAV
        Dav davrods-locallock
        DavRodsEnvFile  /etc/httpd/irods/irods_environment.json
        DavRodsServer 145.xxx.xxx.xxx 1247
        DavRodsZone tempZone
        DavRodsAuthScheme PAM
        DavRodsDefaultResource demoResc
        DavRodsExposedRoot  Home
    </Location>
</VirtualHost>

我的 httpd 版本是正确的"Server version: Apache/2.4.6 (CentOS)"

我的意思是,如果您使用的是 apache httpd。我可以复制到

的 war 文件在哪里
yum install boost jansson
wget ftp://ftp.renci.org/pub/irods/releases/4.1.9/centos7/irods-runtime-4.1.9-centos7-x86_64.rpm
rpm -i irods-runtime-4.1.9-centos7-x86_64.rpm
rpm -i davrods-1.1.0-1.el7.centos.x86_64.rpm
#######################################################################
##                                                                     
##         + Davrods post-install note for SELinux users +             
##                                                                     
## If your SELinux is set to Enforcing, you may need to make changes   
## to your policies to allow davrods to run:                           
##                                                                     
## - Apache HTTPD must be allowed to connect to TCP port 1247          
## - iRODS plugin libs in /var/lib/irods/plugins/network               
##   must have 'lib_t' SELinux context.                                
##                                                                     
## For example, the following two commands can be used to resolve these
## requirements:
##
## setsebool -P httpd_can_network_connect true
## chcon -t lib_t /var/lib/irods/plugins/network/lib*.so

setsebool -P httpd_can_network_connect true
chcon -t lib_t /var/lib/irods/plugins/network/lib*.so

亲切的问候 费利佩

我已经通过邮件回复了这个问题,但我会在这里添加 为了完整起见(由于您稍微更改了问题而略有修改):

I mean, if you are using apache httpd. Where is the war file that I can copy

Davrods RPM那个 您已安装将必要的文件放在正确的目录中 你[1],所以没有要安装的 WAR 文件。 (此外,Davrods 是一个 C 库而不是 Java,它没有 WAR 格式)。

设置虚拟主机配置后,重启httpd应该就可以了 剩下要做的就是让 davrods 起来 运行.

现在,对于虚拟主机,您需要选择不带 SSL 设置的端口 80 或带 SSL 设置的端口 443。由于您使用的是 PAM,我假设您喜欢使用 SSL 进行 WebDAV 连接。

要使用 SSL,请将虚拟主机配置头部的 *:80 更改为 *:443,并添加您的 SSL 设置:

<VirtualHost *:443>
    ServerName 145.xxx.xxx.xxx:443
    SSLEngine on
    SSLCertificateFile    /path/to/davrods.crt
    SSLCertificateKeyFile /path/to/davrods.key
    ...

重新启动 httpd 后,尝试使用 WebDAV 客户端或网络浏览器进行连接。 如果您收到错误消息,可以在您的 httpd 错误日志 (/var/log/httpd/error_log) 或 否则 /var/log/messages.

I think the web site is missing some steps

感谢反馈,我会看看能不能把最后一部分的设置说清楚!

[1] rpm -qlp DAVRODS_RPM_FILE.
可以看到安装的文件 /usr/lib64/httpd/modules/mod_davrods.so 是实际的 Davrods 程序。

通过本教程http://slides.com/irods/ugm2016-ssl-and-pam#/,我了解了如何在 iRODS 上使用 PAM+SSL。现在我在 Davrods 上苦苦挣扎,因为它无法识别我在 https 连接上输入的用户。我输入用户 "felipe",http.log 说我正在使用 rods 用户。

[Wed Oct 05 09:20:04.114976 2016] [davrods:warn] [pid 7623] [client 145.117.144.114:50740] rcPamAuthRequest failed: -993000 = PAM_AUTH_PASSWORD_FAILED
[Wed Oct 05 09:20:04.123410 2016] [auth_basic:error] [pid 7623] [client 145.117.144.114:50740] AH01617: user rods: authentication failure for "/": Password Mismatch