iT邦幫忙

0

Git 如何與AD整合?

我參考這篇文章,初步將Git Server架設起來
http://wernbin.pixnet.net/blog/post/45716002-windows%E6%9E%B6git-server%E7%9A%84%E5%AE%89%E8%A3%9D%E6%B5%81%E7%A8%8B%E7%B4%80%E9%8C%84

其中為目錄git增加權限
htpasswd -cmb /C/Kelvin/GitRepos/htpasswd root calvin
不管怎麼試,就是會跳出 htpasswd: command not found
最後用命令提示字元,再次嘗試才產生出htpasswd檔案,
測試可以正常Clone、Sync及Commit,所以算是成功架設完成。

現在要嘗試將認證整合AD,參考了這篇
https://beginor.github.io/2013/03/01/config-apache-git-server-on-windows.html
但不管怎麼試都不能成功認證,上網找apache ldap設定也搞不出來,我的設定內容如下:

<Location /git/>
	AuthType Basic
	AuthName "Git Repository"
	AuthBasicProvider ldap
	AuthLDAPURL "ldap://xxx.com:389/OU=yahoo,DC=yahoo,DC=com?cn?sub?(objectClass=*)"  
	AuthzLDAPAuthoritative on
	AuthLDAPBindDN "xxx@yahoo.com"
	AuthLDAPBindPassword 123456
	AuthLDAPGroupAttributeIsDN on
	AuthLDAPGroupAttribute member
	Require valid-user
</Location>

請問是哪裡有錯誤嗎?感激不盡。

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答