歡迎您光臨本站 註冊首頁

samba帳號同步

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

大家好!centos5.5上samba3.6.10 編譯安裝在使用net ads join -U administrator 加入win2008域 出現下面提示:
Using short domain name -- TEST
Joined 'CENTOS5' to dns domain 'test.cn'
No DNS domain configured for centos5. Unable to perform DNS Update.
DNS update failed!
使用net rpc join -U administrator
Enter administrator's password:
Joined domain TEST.什麼錯誤都沒有就加入域
net ads info -U administrator
Enter administrator's password:
Domain Name: TEST
Domain SID: S-1-5-21-3395026221-1639031799
Sequence number: 1
Num users: 184
Num domain groups: 0
Num local groups: 39

/usr/local/samba/bin/net rpc join -U administrator
Enter administrator's password:
Joined domain TEST.

/usr/local/samba/bin/net rpc testjoin -U administrator
Join to 'TEST' is OK
/usr/local/samba/bin/net ads testjoin -U administrator
Join is OK

/usr/local/samba/bin/net ads info -U administrator
Enter administrator's password:
LDAP server: 192.168.100.2
LDAP server name: AD1.TESTcn
Realm: TEST.CN
Bind Path: dc=TEST,dc=CN
LDAP port: 389
Server time: 五, 28 12月 2012 11:46:30 CST
KDC server: 192.168.100.2
Server time offset: 8

/usr/local/samba/bin/wbinfo -t
checking the trust secret for domain TEST via RPC calls succeeded
/usr/local/samba/bin/wbinfo -u
CENTOS5/test
administrator
guest
krbtgt
/usr/local/samba/bin/wbinfo -g
domain computers
domain controllers
schema admins
enterprise admins
cert publishers
domain admins
domain users
domain guests


上面查看都是正常的,想給你一個目錄換組
chgrp -R test File
提示無效的組 ,這樣就不好給共享的文件設置許可權。
請問怎麼把域用戶同步到samba上,並能登錄samba這個機器。
getent passwd
配置文件
[global]

workgroup = test

netbios name = centos5

server string = Samba Server %v
security = ads

realm = test.cn

password server = *

encrypt passwords = yes

winbind separator = /

; idmap uid = 10000-20000

; idmap gid = 10000-20000

idmap config * : range = 10000-20000
idmap config * : backend = tdb

template shell = /bin/bash

winbind use default domain = yes

winbind enum users = yes

winbind enum groups = yes
wins server = 192.168.100.2
client ntlmv2 auth = yes
log level = 5
template homedir = /home/%D/%U
log file = /usr/local/samba/var/log.%m
max log size = 500
[test]
comment = test File Server
path = /test
browseable = yes
read only = no
writable = yes

[火星人 ] samba帳號同步已經有583次圍觀

http://coctec.com/docs/linux/show-post-198976.html