我必须将organizationalunit
这样的添加到新安装的 OpenLDAP(在 Ubuntu 12.04 上):
dn: ou=MYREGION, ou=MYAPP, ou=GROUPS, o=myorganization, c=fr
ou: MYREGION
objectClass: top
objectClass: organizationalunit
Run Code Online (Sandbox Code Playgroud)
因此,由于它是一个新的 LDAP,我想我必须先添加fr
国家/地区,然后创建该文件:
dn: c=fr
c: fr
objectClass: top
objectClass: country
Run Code Online (Sandbox Code Playgroud)
现在我尝试使用该命令导入它(我没有该服务器的域):
ldapadd -x -D cn=admin,dc=nodomain -W -f country_fr.ldif
Run Code Online (Sandbox Code Playgroud)
但 OpenLDAP 拒绝该命令:
adding new entry "c=fr"
ldap_add: Server is unwilling to perform (53)
additional info: no global superior knowledge
Run Code Online (Sandbox Code Playgroud)
任何提示?
有人知道如何使用 Squid 来代理 Maven 存储库吗?
什么是配置文件?
主要问题是 maven 客户端发出带有控制缓存行为的标头的 HTTP 请求(我想绕过它)。
这是一个典型的请求:
GET /maven/proxy/jboss-public/org/richfaces/richfaces-bom/4.2.0.Final/richfaces-bom-4.2.0.Final.pom HTTP/1.1
Cache-control: no-cache
Cache-store: no-store
Pragma: no-cache
Expires: 0
Accept-Encoding: gzip
User-Agent: Apache-Maven/3.0.4 (Java 1.6.0_26; Linux 2.6.32-38-generic)
Host: 192.168.2.171
Connection: Keep-Alive
Run Code Online (Sandbox Code Playgroud)
我已经disk_cache
proxy_http
为此使用了 Apache HTTPD(并启用了模块),但我正在创建一个镜像,而不是一个代理。
这是配置(基于该站点):
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
# central
ProxyPass /maven/proxy/central http://repo1.maven.org/maven2
ProxyPassReverse /maven/proxy/central http://repo1.maven.org/maven2
CacheEnable disk /maven/proxy/central
# jboss-public-repository-group
ProxyPass /maven/proxy/jboss-public http://repository.jboss.org/nexus/content/groups/public
ProxyPassReverse /maven/proxy/jboss-public http://repository.jboss.org/nexus/content/groups/public
ProxyPassReverseCookiePath /nexus /maven/proxy/jboss-public
CacheEnable disk /maven/proxy/jboss-public
# codehaus
ProxyPass …
Run Code Online (Sandbox Code Playgroud)