Articles of 身份validation

git -http-backend和LDAPauthentication,推送错误:请求的URL返回错误:401授权必需

我的设置 操作系统:debian git:v 1.7.10 apache(与suexec模式启用)configuration与git-http-backend和LDAP授权git回购这适用于克隆操作,但不适用于推,这就是问题。 我使用HTTPS作为我的git服务器的通信协议。 这是我的configuration: VirtualHostconfiguration: <IfModule mod_ssl.c> <VirtualHost _default_:443> DocumentRoot /git/myrepos <Directory "/git/myrepos"> Allow from All Options +ExecCGI AllowOverride All </Directory> ScriptAlias /git /git/myrepos/bin/suexec-wrapper.sh SSLEngine on SSLCertificateFile /etc/ssl/git.crt SSLCertificateKeyFile /etc/ssl/git.key <FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars </FilesMatch> <Directory /usr/lib/cgi-bin> SSLOptions +StdEnvVars </Directory> /git/myrepos/bin/suexec-wrapper.sh: #!/bin/bash PATH_INFO=$SCRIPT_URL GIT_PROJECT_ROOT=/git/myrepos REMOTE_USER=$REDIRECT_REMOTE_USER export GIT_HTTP_EXPORT_ALL=true /usr/lib/git-core/git-http-backend 克隆回购的工作,因为它应该(例如git clone https://192.168.0.1/repo1.git )。 […]

authentication之前强制https – 不能访问虚拟主机

在服务器方面,我是个初学者,而且我遇到类似于这个问题的问题。 访问所需的网页时,.htpasswd会在我被redirect到https之前提示我进行validation。 是否有任何解决方法仅通过编辑.htaccess文件,因为我没有权限更改虚拟主机configuration文件。 直到现在我的.htaccess文件中的相关行看起来像这样: BlockquotRewriteEngine On RewriteCond %{HTTPS} !=on RewriteCond %{ENV:HTTPS} !=on RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L] AuthType Basic AuthName "members only" AuthUserFile /var/www/myweb/.htpasswd Require valid-user

如果posixAccount objectClass不可用,如何使用LDAP对CentOS7进行身份validation?

目标:使用LDAP对CentOS7进行身份validation 问题 1)用户无法find calling ldap_search_ext with [(&(uid=bla)(objectclass=posixAccount)(uid=*)(&(uidNumber=*)(!(uidNumber=0))))][dc=my-domain,dc=com] 2)找不到posixAccount对象类 问题 如何添加objectClass posixAccount ? 如果这个objectClasstypes找不到如何更改sssd的查找,允许此软件在OpenLDAP中find用户并允许对CentOS7进行身份validation? 全面 1)安装了sssd 2)使用CentOS7上configuration的sssd进行ldapauthentication [root@controller ~]# authconfig –enablesssd –enablesssdauth –enablelocauthorize –update 3)启用了sssddebugging /etc/sssd/sssd.conf [domain/default] autofs_provider = ldap cache_credentials = True krb5_realm = # ldap_search_base = dc=my-domain,dc=com id_provider = ldap auth_provider = ldap chpass_provider = ldap ldap_uri = ldap://<ipaddress>/ ldap_tls_cacertdir = /etc/openldap/cacerts debug_level = […]

OpenVPN的embedded式设备

我是OpenVPN的新手和相关的问题,我正在search几天没有正面的答案。 我有几个基于Linux的设备位于我的城镇收集数据并发送给我。 我也需要能够执行一些命令。 我决定通过互联网将他们全部连接到一个虚拟专用networking。 我select了使用OpenVPN来做到这一点。 我build立OpenVPN没有问题。 经过一番努力,我已经成功将所有设备连接到networking。 所有设备都使用PKI来validation/validation自己。 问题:设备没有实时时钟,所以在closures电源后,我们的设备时间不正确,无法连接到我的VPN服务器。 我发现PKIauthentication需要时间同步。 在这个邮件列表中,用户build议使用静态密钥。 好吧,我find了一篇关于如何做到这一点的文章 ,但正如我所看到的,有一个缺点: 有限的可伸缩性 – 一个客户端,一个服务器 。 据我所知,我不能使用一个VPN服务器的多个设备。 谁能告诉我如何解决这个问题? 也许还有一些独立于时间同步的OpenVPNauthentication解决scheme? PS我无法更改该设备上的时间设置。 PPS先谢谢了,并为我可怕的英语感到难过。

任何autofs专家? 如何让autofs和webdav一起工作?

首先让我说,这是我在AskUbuntu发布的一个问题的转贴。 如果这是违反规则,那么请删除这个。 说实话,在进一步思考这个话题之后,我意识到,由于autofs在各种发行版本上基本上是一样的,所以这更像是一个autofs / linux问题,而不是Ubuntu特有的问题。 当然,这是我的理由,因为我也希望得到更多的曝光这个问题:它似乎像autofs和WebDAV是一个相当不常见的组合,所以我有更多的机会find别人谁已经成功地做到了我在这个更一般的论坛尝试。 我使用占位符来表示真正的服务器名称和文件夹,但是,我尽量使它们成为真实姓名的代表,因此请注意我的大小写和标点符号,以防与我的问题有任何关系。 我正在运行Ubuntu 16.04 。 我已经安装了autofs和davfs2 。 以下命令成功挂载: mount -t davfs https://servername.mydomain.com:3333/Shared.Folder /testmount 它问我一个用户名和密码,这是[email protected]和myypassword ,然后导致成功的挂载。 这告诉我几件事情: 我的WebDAV服务器正在正常工作和configuration。 HTTPS工作正常。 我的凭据成功validation。 所以现在我试图让这个工作与autofs 。 这是我的文件: /etc/auto.master文件 /Server.mount /etc/auto.Servername.mount /etc/auto.Servername.mount storage-folder -fstype=davfs,ro :https://servername.mydomain.com:3333/Shared.Folder 在/ etc / davfs2 /秘密 https://servername.mydomain.com:3333/Shared.Folder [email protected] mypassword 有了这个设置,如果我尝试浏览到/Servername.mount/storage-folder ,我得到一个No such file or directory error 。 现在我想95%的确定,我的问题是语法错误或validation错误。 Web上没有很多的基于WebDAV的autofs实现的例子,其中一些显示了矛盾的语法。 尽pipe如此,我尝试了所有我能想到的。 我认为这可能是冒号在auto.Servername.mount文件是auto.Servername.mountparsing,所以我已经尝试了所有以下组合: storage-folder […]

icingaweb2可以使用LDAP和数据库validation用户吗?

我select使用LDAP(活动目录)作为我的新Icinga2服务器的身份validation方法(它正在工作),但我不想依靠AD用于Icingapipe理帐户。 我可以在本地身份validation一些pipe理员用户(使用MySQL),同时允许非pipe理员用户通过AD访问吗? 这是通常做或不build议出于任何原因? 谢谢。

哪个服务器复制keytab文件到

我正在尝试设置一个简单的Kerberos环境,在这个环境中,客户端服务器通过Kerberos服务器对Web服务进行身份validation(在我的情况下是OpenSSH)。 我在KDC上生成了一个keytab文件,但是我不太确定哪个服务器复制文件。 我只需要将其复制到提供服务的机器上,或者也要复制到想要对服务进行身份validation的客户机上?

configurationhtaccess以显示仅用于子域的身份validation提示

如何编写htaccess,以便在admin.example.com上只需要身份validation,而不是在www.example.com上(比如使用一些if-else语句)? 背景:我有一个网站运行在两种模式:pipe理模式应达到像admin.example.com,而正常模式将www.example.com – 但都应指向相同的目录和脚本内他们(脚本然后通过检查是否从admin子域访问脚本来打开某些编辑function)。 编辑:我现在可以看到这已被问及在StackOverflow回答 ,虽然我不能得到最佳答案为我工作…

phpMyAdmin:#1045 – 访问拒绝用户'root'@'localhost'(使用密码:YES)。

我在phpMyAdmin得到着名的#1045错误:拒绝访问用户'root'@'localhost'(使用密码:是)。 这是我的/etc/phpmyadmin/config.inc.php: /** * Server(s) configuration */ $i = 0; // The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use $cfg['Servers'][0]. // You can disable a server config entry by setting host to ''. $i++; /* Authentication type */ //$cfg['Servers'][$i]['auth_type'] = 'cookie'; /* Server parameters */ //$cfg['Servers'][$i]['host'] = 'localhost'; //$cfg['Servers'][$i]['connect_type'] = 'tcp'; //$cfg['Servers'][$i]['compress'] = false; […]

将SSPIauthentication限制在一个页面,Apache conf

我需要在地址“/”上有SSPIauthentication,但不在网站的其他部分 我试过这个configuration: <Location "/"> AuthType SSPI AuthName "XXXX" SSPIAuth On SSPIAuthoritative On SSPIOfferBasic On Require valid-user </Location> <Location "/?*"> AuthType none </Location> 但是这不是我想要的。 而不是有一个login入口点,它popupvalidation像4次,不logging我。 任何想法 ? 谢谢 :)