openldap ubuntu 9.04

1.参考: https://help.ubuntu.com/9.04/serverguide/C/openldap-server.html#openldap-server-installation
http://www.l-penguin.idv.tw/article/ldap-1.htm
安装完成时候需要设置:/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)
参考: http://forums.fedoraforum.org/showthread.php?t=178086
http://www.extmail.org/forum/viewthread.php?tid=7444
http://hi.baidu.com/avauntage/blog/item/b3808858b709f9d69c8204b3.html
我的错误原因是:在/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
参考: http://www.nies.ch/doc/apache-ldap-webdav.en.php
http://www.dlresearch.cn/xtykc/?p=42
http://bbs.chinaunix.net/archiver/tid-1362520.html
我的配置如下:/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
参考: https://help.ubuntu.com/9.04/serverguide/C/subversion.html
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/ 

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

你可能感兴趣的:(PHP,SVN,ubuntu,配置管理,subversion)