openldap ubuntu 9.04

1.参考:[url]https://help.ubuntu.com/9.04/serverguide/C/openldap-server.html#openldap-server-installation[/url]
[url]http://www.l-penguin.idv.tw/article/ldap-1.htm[/url]
安装完成时候需要设置:/etc/hosts.allow
slapd: 127.0.0.1 192.168.236.

遇到的错误:
当使用:ldapsearch -xLLL -b cn=config -D cn=admin,cn=config -W olcDatabase={1}hdb

ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
参考:[url]http://forums.fedoraforum.org/showthread.php?t=178086[/url]
[url]http://www.extmail.org/forum/viewthread.php?tid=7444[/url]
[url]http://hi.baidu.com/avauntage/blog/item/b3808858b709f9d69c8204b3.html[/url]
我的错误原因是:在/etc/default/slapd中
之前:SLAPD_SERVICES="ldap://192.168.236.179:389/ ldaps:/// ldapi:///"
改为:SLAPD_SERVICES="ldap://127.0.0.1:389/ ldaps:/// ldapi:///"
也就是说只能本地访问,不能远程访问。(原因待查)
然后可以进行添加:init.ldif
dn: uid=liyh,ou=people,dc=liyh,dc=local
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: shadowAccount
uid: liyh
sn: Li
givenName: YongHua
cn: Li YongHua
displayName: Li YongHua
uidNumber: 1004
gidNumber: 1003
loginShell: /bin/bash
homeDirectory: /home/liyh
shadowExpire: -1
shadowFlag: 0
shadowWarning: 7
shadowMin: 8
shadowMax: 999999
shadowLastChange: 10877

生成密码:slappasswd -s liyh
添加:sudo ldapadd -x -W -c -D "cn=admin,dc=liyh,dc=local" -f init.ldif
查看:ldapsearch -x -b "dc=liyh,dc=local"

2.
ldap基于浏览器的客户端:phpldapadmin
sudo apt-get install phpldapadmin

浏览器:http://localhost/phpldapadmin
配置文件在:/etc/phpldapadmin/文件下。
3.
apache2+webdav+ldap
参考:[url]http://www.nies.ch/doc/apache-ldap-webdav.en.php[/url]
[url]http://www.dlresearch.cn/xtykc/?p=42[/url]
[url]http://bbs.chinaunix.net/archiver/tid-1362520.html[/url]
我的配置如下:/etc/apache2/site-enable/ssl
Alias /dav "/usr/dav"
<Location /dav>
Dav on
DavMinTimeout 600
Options Indexes MultiViews FollowSymLinks
Order Allow,Deny
Allow from 192.168.236.
# <LimitExcept GET PROPFIND OPTIONS REPORT>
AuthType Basic
AuthBasicProvider ldap
AuthName "LDAP Authentication"
AuthzLDAPAuthoritative off
AuthLDAPURL ldap://localhost/ou=People,dc=meitec-dl,dc=local?uid
Require valid-user
# </LimitExcept>
</Location>


3.
apache2+subversion+ldap
参考:[url]https://help.ubuntu.com/9.04/serverguide/C/subversion.html[/url]
apache2配置:
Alias /svn "/home/svn"
<Location /svn>
Dav svn
SVNParentPath /home/svn
# DavMinTimeout 600
Options Indexes MultiViews FollowSymLinks
Order Allow,Deny
Allow from 192.168.236.
# <LimitExcept GET PROPFIND OPTIONS REPORT>
AuthType Basic
AuthBasicProvider ldap
AuthName "LDAP Authentication"
AuthzLDAPAuthoritative off
AuthLDAPURL ldap://localhost/ou=People,dc=meitec-dl,dc=local?uid
Require valid-user
# </LimitExcept>
</Location>

svn配置:
sudo mkdir svn/
sudo svnadmin create svn/project
启动服务:svnserve -d -r /home/svn/project
查看:svn list svn://127.0.0.1/
检出:svn checkout svn://127.0.0.1/

参考:[url]http://www.blogjava.net/Skynet/archive/2009/05/19/271570.html[/url]
[url]http://www.linuxidc.com/Linux/2007-12/9765.htm[/url]
[url]http://www.cnblogs.com/cocowool/archive/2008/11/10/1330932.html[/url]
刚开始导入项目的时候怎么也不行:
svn import /path/to/import/directory file:///path/to/repos/project
改为:
svn import -m "" /path/to/import/directory file:///path/to/repos/project
就能成功导入项目了。必须有参数m
[url]http://hi.baidu.com/paleswd/blog/item/d20a15ce07e2c239b700c875.html[/url]
日志管理:[url]http://mifunny.info/svn-log-121.html[/url]
[url]http://blog.youkuaiyun.com/surpaimb/archive/2007/11/29/1906518.aspx[/url]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值