歡迎您光臨本站 註冊首頁

關於ubuntu配置samba加入域的問題

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

關於ubuntu配置samba加入域的問題

請教各位大蝦,我在ubuntu上配置samba加入域配置了兩天了,但是總是不成功,以下是問題描述:
我的虛擬機ubuntu7.0
虛擬機的netbios name:sdd (是通過hostname查看的)
虛擬機的DNS配置為windows2k3域控制器的ip:192.168.10.252(/etc/resolv.conf裡面就只有一句 nameserver 192.168.10.252)
域控制器的全名是:linux-domain.domain.local(這裡分不清楚什麼時候用linux-domain,什麼時候用domain.local)
samba配置文件如下:

        security = domain
        realm = DOMAIN.LOCAL
        password server = 192.168.10.252
        workgroup = LINUX-DOMAIN
        netbios name = sdd
        winbind separator   = /
        idmap uid = 10000-20000
        idmap gid = 10000-20000
        winbind enum users = yes
        winbind enum groups = yes
        template homedir = /home/%D/%U
        template shell = /bin/bash
        client use spnego = yes
        client use ntlmv2 = yes
        encrypt passwords = yes
        ;winbind use default domain = yes
        restrict anonymous = 2


        comment = Home Directories
        path = /home/sambauser/indomain
        browseable = no
        writable = yes
        valid users = %U

配置好了之後修改/etc/nsswitch.conf文件
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         files winbind
group:          files
shadow:         files winbind

hosts:          files mdns4_minimal dns mdns4
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis

然後用重新啟動
/etc/init.d/winbind stop
/etc/init.d/samba restart
/etc/init.d/winbind start

採用命令為
net rpc join -S linux-domain -U administrator
提示輸入密碼
輸入密碼后提示加入域

從域控制器中看發現一個問題,域控制器裡面computer中出現了我的機器名稱sdd,但是名稱的DNS那一欄什麼都沒有,其他的域的機器都有DNS名稱
接著測試
net rpc testjoin
就說找不到,然後還說加入域是無效的not valid

配了很多次都沒有成功,請問各位到底是怎麼回事,我的虛擬機安裝在vista下,另外是不是必須要配置krb5.conf文件,非常著急。
先謝過樂。

[ 本帖最後由 candice_song 於 2009-2-20 16:30 編輯 ]
《解決方案》

自己頂

[火星人 ] 關於ubuntu配置samba加入域的問題已經有563次圍觀

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