• 1 
瀏覽模式: 普通 | 列表
1。安裝 mod_authz_ldap
yum install mod_authz_ldap
2。設定 apache ,vi /etc/httpd/conf.d/htaccess.conf
<Directory /var/www/html/test>
  AuthzLDAPMethod ldap
  AuthzLDAPAuthoritative on
  AuthzLDAPServer 10.10.10.123:389            # AD 的IP
  AuthzLDAPUserBase "DC=cross,DC=local"   # AD的網域名稱,我的是 cross.local
  AuthzLDAPUserKey sAMAccountName
  AuthzLDAPUserScope subtree
  AuthzLDAPBindDN "cross"                             # AD 管理者的帳號
  AuthzLDAPBindPassword "crosspassword"   # AD 管理者的密碼
  AuthName "Need Password with using AD"
  AuthType Basic
  require valid-user
</Directory>
3。重啟apache

4。瀏覽 http://10.10.10.111/test ,測試登入帳密是否可以成功用AD的帳密登入


ref : http://www.extmail.org/forum/thread-12794-1-1.html

讓linux使用者利用winbind認證windows AD

環境: centos 5.5 x64

安裝套件

yum install krb5-server samba3x samba3x-winbind


samba的設定

[global]
        workgroup = SSORC
        realm = SSORC.TW
        netbios name = LOGINSERVER
        server string = Samba Server Version %v
        security = ADS
        password server = dc1.ssorc.tw dc2.ssorc.tw
        passdb backend = tdbsam

[閱讀全文]

Samba + PDC


vi /etc/samba/smb.conf

[global]
   workgroup = SMOC 
   netbios name = smbPDC
   server string = SMOC Samba Server PDC
   security = user
   encrypt passwords = yes

[閱讀全文]

標籤: samba 網芳 ad

LDAP + WIndows AD + winbind

Linux fedora core 2 加入windows 2000/2003網域


Linux fedora core 2 side
[1.] install samba

[2.] vi /etc/samba/smb.conf

[global]
     workgroup = 123                                            # 網域名稱
     realm = 123.com                                             # 完整網域名稱
     server string = samba server-linux                 # linux samba主機描述

[閱讀全文]

標籤: ldap ad winbind

  • 1