【问题标题】:Digest authentication for debian repositorydebian 存储库的摘要式身份验证
【发布时间】:2015-02-21 07:38:45
【问题描述】:

我使用 dpkg-scanpackeges 为二进制包创建了一个 debian 存储库,并将它与一个使用 apache2 目录列表的站点连接起来。它工作得很好。之后,我为该站点设置了摘要身份验证。我将以下行添加到 /etc/apt/sources.list 文件中。

deb http://username:password@subdomain.domain.com ./

我可以使用此表示法通过浏览器访问该站点,但是,当我尝试运行 sudo apt-get update 时,我收到“401 Unauthorized”错误。有没有办法让 apt-get update 命令能够进行身份验证?

这是apache的配置文件。

<VirtualHost *:80>
    ServerName subdomain.domain.com
    DocumentRoot /var/www/archive

        <Directory /var/www/archive >
            Options Indexes FollowSymLinks Multiviews
            Order allow,deny
            Allow from all

            AuthType Digest
            AuthName "Restricted Access"
            AuthDigestDomain /
            AuthDigestProvider file
            AuthUserFile /var/www/passwd/archive
            Require valid-user
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

【问题讨论】:

    标签: authentication repository debian apt digest


    【解决方案1】:

    我一直在研究这个话题。

    尽管 David Purdy 报告了这个 as a bug,但仍然无法为 debian apt 存储库启用摘要身份验证。

    这对我很重要,因为我们有一个私有存储库,并且希望避免以纯文本形式发送凭据。

    你觉得一起写一篇关于这个主题的论文怎么样?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2010-11-03
      • 1970-01-01
      • 1970-01-01
      • 2011-07-09
      • 1970-01-01
      • 2013-08-29
      • 1970-01-01
      相关资源
      最近更新 更多