歡迎您光臨本站 註冊首頁

ubuntu下apache2+svn+ldap配置的問題

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

ubuntu下apache2+svn+ldap配置的問題

前面apache2+svn配置好了,現在就差ldap認證不會了
網上查了好多的資料,都是很模糊的,或許是我初學,看起來比較處理吧,
<Location /svn>

  # Uncomment this to enable the repository
  DAV svn

  # Set this to the path to your repository
  #SVNPath /var/lib/svn
  # Alternatively, use SVNParentPath if you have multiple repositories under
  # under a single directory (/var/lib/svn/repo1, /var/lib/svn/repo2, ...).
  # You need either SVNPath and SVNParentPath, but not both.
  SVNParentPath /home/svn
  SVNListParentPath on
  SVNReposName "Netease subversion"

  # Access control is done at 3 levels: (1) Apache authentication, via
  # any of several methods.  A "Basic Auth" section is commented out
  # below.  (2) Apache <Limit> and <LimitExcept>, also commented out
  # below.  (3) mod_authz_svn is a svn-specific authorization module
  # which offers fine-grained read/write access control for paths
  # within a repository.  (The first two layers are coarse-grained; you
  # can only enable/disable access to an entire repository.)  Note that
  # mod_authz_svn is noticeably slower than the other two layers, so if
  # you don't need the fine-grained control, don't configure it.

  # Basic Authentication is repository-wide.  It is not secure unless
  # you are using https.  See the 'htpasswd' command to create and
  # manage the password file - and the documentation for the
  # 'auth_basic' and 'authn_file' modules, which you will need for this
  # (enable them with 'a2enmod').
  AuthType Basic
  AuthName "Subversion Repository"
  AuthBasicProvider ldap    #指定使用ldap驗證用戶
  AuthLDAPURL "ldap://127.0.0.1/dc=example,dc=com?sAMAccountName?sub?(objectClass=user)"
  AuthLDAPBindDN "snowolf@zlex.org"   #邦定用戶
  AuthLDAPBindPassword "11111111"     #邦定密碼
  AuthzLDAPAuthoritative on           #這行看不懂
  #AuthUserFile /etc/apache2/dav_svn.passwd

  # To enable authorization via mod_authz_svn
  #AuthzSVNAccessFile /etc/apache2/dav_svn.authz

  # The following three lines allow anonymous read, but make
  # committers authenticate themselves.  It requires the 'authz_user'
  # module (enable it with 'a2enmod').
  #<LimitExcept GET PROPFIND OPTIONS REPORT>
    Require valid-user
  #</LimitExcept>

</Location>


這是我按照網上的好多的教程集合一起陪的,但是發現不起作用
  AuthBasicProvider ldap    #指定使用ldap驗證用戶
  AuthLDAPURL "ldap://127.0.0.1/dc=example,dc=com?sAMAccountName?sub?(objectClass=user)"
  AuthLDAPBindDN "snowolf@zlex.org"   #邦定用戶
  AuthLDAPBindPassword "11111111"     #邦定密碼
  AuthzLDAPAuthoritative on           #這行看不懂
尤其是這幾行壓根很是看不懂什麼意思



我的初衷是想用域賬戶密碼去驗證利用apache登錄svn的,但是發現很糾結的不會啊

那位大哥給點建議,或者提醒,什麼的,不勝感激啊

[火星人 ] ubuntu下apache2+svn+ldap配置的問題已經有515次圍觀

http://coctec.com/docs/service/show-post-12676.html