当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 23 篇帖子 ]  前往页数 1, 2  下一页
作者 内容
1 楼 
 文章标题 : 16.04如何加入windows域
帖子发表于 : 2016-05-19 13:55 

注册: 2016-04-27 15:45
帖子: 51
系统: Ubuntu 16.04
送出感谢: 7
接收感谢: 0 次
之前12.04使用sudo domainjoin-cli join 域名 管理员帐号
16.04显示command not found
正确的命令是什么呢


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 16.04如何加入windows域
帖子发表于 : 2016-05-19 15:38 

注册: 2007-01-14 16:23
帖子: 4255
送出感谢: 0 次
接收感谢: 107
加域啊,suse安装的时候可以设置,这个我没具体搞过,
给你个网址参考下,没验证过,也不知道这样对不对
还有,这文是以红帽为基础的,别原样照抄
http://www.cnblogs.com/jankie/archive/2 ... 47965.html


_________________
#include <stdio.h>
void main()
{
double world;
unsigned letter;
short stay;
long memories;
printf("I miss you.\n");
}


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 16.04如何加入windows域
帖子发表于 : 2016-05-19 15:41 

注册: 2009-08-04 16:33
帖子: 16893
送出感谢: 21
接收感谢: 1827
引用:
domainjoin-cli

1. domainjoin-cli 指令可能不再存在
1-1. http://manpages.ubuntu.com/manpages/pre ... cli.8.html
domainjoin-cli 指令 來自 likewise-open 套件
1-2. http://packages.ubuntu.com/search?suite ... chon=names
likewise-open 套件 Ubuntu 12.04 以後 就沒有進 Ubuntu 套件庫
1-3. https://help.ubuntu.com/community/LikewiseOpen
LikewiseOpen is now Beyond Trust - PowerBroker Identity Services Open Edition The Likewise website is gone, and links to it are broken.

2. 以下 是替代方案的選擇
2-1. http://askubuntu.com/questions/452904/l ... connect-ad
2-2. https://help.ubuntu.com/lts/serverguide/samba.html
As a Domain Controller
Active Directory Integration


页首
 用户资料  
 
4 楼 
 文章标题 : Re: 16.04如何加入windows域
帖子发表于 : 2016-05-19 17:28 

注册: 2016-04-27 15:45
帖子: 51
系统: Ubuntu 16.04
送出感谢: 7
接收感谢: 0 次
poloshiao 写道:
引用:
domainjoin-cli

1. domainjoin-cli 指令可能不再存在
1-1. http://manpages.ubuntu.com/manpages/pre ... cli.8.html
domainjoin-cli 指令 來自 likewise-open 套件
1-2. http://packages.ubuntu.com/search?suite ... chon=names
likewise-open 套件 Ubuntu 12.04 以後 就沒有進 Ubuntu 套件庫
1-3. https://help.ubuntu.com/community/LikewiseOpen
LikewiseOpen is now Beyond Trust - PowerBroker Identity Services Open Edition The Likewise website is gone, and links to it are broken.

2. 以下 是替代方案的選擇
2-1. http://askubuntu.com/questions/452904/l ... connect-ad
2-2. https://help.ubuntu.com/lts/serverguide/samba.html
As a Domain Controller
Active Directory Integration



root@test:~# domainjoin-cli join XXXXXXXX.com administrator

Error: Unable to find ssh binary [code 0x00000436]

A sshd config file was at {nowhere}, and a sshd binary file was found at
{nowhere}. Exactly one config file and one binary must exist on the system in a
standard location. Uninstall any unused copies of ssh.
Please see the documentation related to sshd configuration options required and
re-attempt the join with "domainjoin-cli join/leave --disable ssh <domain>
<username>"


页首
 用户资料  
 
5 楼 
 文章标题 : Re: 16.04如何加入windows域
帖子发表于 : 2016-05-19 17:58 

注册: 2009-08-04 16:33
帖子: 16893
送出感谢: 21
接收感谢: 1827
引用:
domainjoin-cli join XXXXXXXX.com administrator

這個 domainjoin-cli 指令 從哪個套件來 ? 如何安裝 ?


页首
 用户资料  
 
6 楼 
 文章标题 : Re: 16.04如何加入windows域
帖子发表于 : 2016-05-20 9:46 

注册: 2016-04-27 15:45
帖子: 51
系统: Ubuntu 16.04
送出感谢: 7
接收感谢: 0 次
poloshiao 写道:
引用:
domainjoin-cli join XXXXXXXX.com administrator

這個 domainjoin-cli 指令 從哪個套件來 ? 如何安裝 ?



先装pbis,然后安装ssh,就可以使用domainjoin-cli


页首
 用户资料  
 
7 楼 
 文章标题 : Re: 16.04如何加入windows域
帖子发表于 : 2016-05-20 9:51 

注册: 2016-04-27 15:45
帖子: 51
系统: Ubuntu 16.04
送出感谢: 7
接收感谢: 0 次
poloshiao 写道:
引用:
domainjoin-cli join XXXXXXXX.com administrator

這個 domainjoin-cli 指令 從哪個套件來 ? 如何安裝 ?



域是可以加了,问题又来了,如何使用与帐号登录?
12.04在加入域之后,登录界面有个login,选择此项输入域帐号密码即可。现在重启之后登录界面只有一个装机时建的管理员帐号,再有就是guest登录


页首
 用户资料  
 
8 楼 
 文章标题 : Re: 16.04如何加入windows域
帖子发表于 : 2016-05-20 12:39 

注册: 2009-08-04 16:33
帖子: 16893
送出感谢: 21
接收感谢: 1827
引用:
先装pbis,然后安装ssh,就可以使用domainjoin-cli

http://askubuntu.com/a/453833
使用這個指令嗎 ?
代码:
sudo domainjoin-cli join --disable ssh domainname.com administrator@domainname.com

補充
你說明閱詳細 獲得可行性建議的速度越快
欲省則不達


页首
 用户资料  
 
9 楼 
 文章标题 : Re: 16.04如何加入windows域
帖子发表于 : 2016-05-20 14:17 

注册: 2016-04-27 15:45
帖子: 51
系统: Ubuntu 16.04
送出感谢: 7
接收感谢: 0 次
poloshiao 写道:
引用:
先装pbis,然后安装ssh,就可以使用domainjoin-cli

http://askubuntu.com/a/453833
使用這個指令嗎 ?
代码:
sudo domainjoin-cli join --disable ssh domainname.com administrator@domainname.com

補充
你說明閱詳細 獲得可行性建議的速度越快
欲省則不達


不是这个指令。
1. 执行sudo chmod a+x,得到结果:
test@test:~$ sudo chmod a+x
chmod: missing operand after ‘a+x’
Try 'chmod --help' for more information.

2. 我执行的步骤如下:
sudo apt-get update
sudo apt-get dist-upgrade
chmod +x pbis-open-xxxx.deb.sh
./pbis-open-xxxx.deb.sh
apt-get install ssh
domainjoin-cli join test.com(域名) test(管理员帐号)
然后输入密码,提示successful,但重启之后没有login

3. 检查
test@test:~$ /opt/pbis/bin/kdestroy
kdestroy: No credentials cache found while destroying cache

test@test:~$ /opt/pbis/bin/lwsm status lsass
running (container: 5792)

test@test:~$ /opt/pbis/bin/get-dc-name test.com
Printing LWNET_DC_INFO fields:
===============================
dwDomainControllerAddressType = 23
dwFlags = 12796
dwVersion = 5
wLMToken = 65535
wNTToken = 65535
pszDomainControllerName = TSNDC1.test.com
pszDomainControllerAddress = 10.5.2.97
pucDomainGUID(hex) = 23 2B 0C EC 34 07 D5 4D 9C 2F 33 07 2C 02 32 C4
pszNetBIOSDomainName = TEST
pszFullyQualifiedDomainName = test.com
pszDnsForestName = test.com
pszDCSiteName = TSN
pszClientSiteName = TSN
pszNetBIOSHostName = TSNDC1
pszUserName = <EMPTY>

以上三步应该是正确的,但是下一步就出错了
test@test:~$ /opt/pbis/bin/find-user-by-name test\test
Failed to locate user. Error code 40008 (LW_ERROR_NO_SUCH_USER).
No such user

继续下一步
test@test:~$ sudo domainjoin-cli query
Name = test
Domain = TEST.COM
Distinguished Name = CN=TEST,OU=JoinedDomain,DC=test,DC=com
这步应该也是正确的

继续
test@test:~$ /opt/pbis/bin/get-status
LSA Server Status:

Compiled daemon version: 8.3.0.3287
Packaged product version: 8.3.3287.68880
Uptime: 0 days 3 hours 6 minutes 45 seconds

[Authentication provider: lsa-activedirectory-provider]

Status: Online
Mode: Un-provisioned
Domain: TEST.COM
Domain SID: S-1-5-21-1935655697-616249376-682003330
Forest: test.com
Site: TSN
Online check interval: 300 seconds
[Trusted Domains: 1]


[Domain: TEST]

DNS Domain: test.com
Netbios name: TEST
Forest name: test.com
Trustee DNS name:
Client site name: TSN
Domain SID: S-1-5-21-1935655697-616249376-682003330
Domain GUID: 232b0cec-3407-d54d-9c2f-33072c0232c4
Trust Flags: [0x001d]
[0x0001 - In forest]
[0x0004 - Tree root]
[0x0008 - Primary]
[0x0010 - Native]
Trust type: Up Level
Trust Attributes: [0x0000]
Trust Direction: Primary Domain
Trust Mode: In my forest Trust (MFT)
Domain flags: [0x0001]
[0x0001 - Primary]

[Domain Controller (DC) Information]

DC Name: TSNDC1.test.com
DC Address: 10.5.2.97
DC Site: TSN
DC Flags: [0x000031fc]
DC Is PDC: no
DC is time server: yes
DC has writeable DS: yes
DC is Global Catalog: yes
DC is running KDC: yes

[Global Catalog (GC) Information]

GC Name: TSNDC1.test.com
GC Address: 10.5.2.97
GC Site: TSN
GC Flags: [0x000031fc]
GC Is PDC: no
GC is time server: yes
GC has writeable DS: yes
GC is running KDC: yes
以上感觉也没什么错误

test@test:~$ id test\\test
id: ‘test\\test’: no such user-------这步应该出错了

test@test:~$ id test\\test
id: ‘test\\test’: no such user
test@test:~$ su test\\test
No passwd entry for user 'test\test'
若查找另一个用户,是可以的
test@test:~$ su test\\xin
Password:
xin@test:/home/test$

test@test:~$ ssh test.com\\test@localhost
The authenticity of host 'localhost (127.0.0.1)' can't be established.
ECDSA key fingerprint is SHA256:ktguoYXPuJWnRDJsofHBiAbh00SEqpaScq532BI6Yxw.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
Password:
Password:
Password:
test.com\test@localhost's password:
Permission denied, please try again.
test.com\test@localhost's password:
Permission denied, please try again.
test.com\test@localhost's password:
Received disconnect from 127.0.0.1 port 22:2: Too many authentication failures
Connection to localhost closed by remote host.
Connection to localhost closed.
密码不正确,只设了一个密码123456,但是不对,后边的我就不太懂了,参考链接如下:
http://download1.beyondtrust.com/Techni ... efault.htm


页首
 用户资料  
 
10 楼 
 文章标题 : Re: 16.04如何加入windows域
帖子发表于 : 2016-05-20 17:23 

注册: 2016-04-27 15:45
帖子: 51
系统: Ubuntu 16.04
送出感谢: 7
接收感谢: 0 次
poloshiao 写道:
引用:
先装pbis,然后安装ssh,就可以使用domainjoin-cli

http://askubuntu.com/a/453833
使用這個指令嗎 ?
代码:
sudo domainjoin-cli join --disable ssh domainname.com administrator@domainname.com

補充
你說明閱詳細 獲得可行性建議的速度越快
欲省則不達



我知道问题出在哪里了,域服务器里没有test这个账号,实际域已经加入了,但是重启登录界面应该有log,输入域账号和密码即可,现在的问题是没有域登录界面,只有一个本地账号和guest


页首
 用户资料  
 
11 楼 
 文章标题 : Re: 16.04如何加入windows域
帖子发表于 : 2016-05-20 17:37 

注册: 2009-08-04 16:33
帖子: 16893
送出感谢: 21
接收感谢: 1827
引用:
apt-get install ssh

1. 你安裝 ssh 在這裡扮演什麼角色或功能 ?
引用:
sudo apt-get update
sudo apt-get dist-upgrade
chmod +x pbis-open-xxxx.deb.sh
./pbis-open-xxxx.deb.sh
apt-get install ssh
domainjoin-cli join test.com(域名) test(管理员帐号)
然后输入密码,提示successful,但重启之后没有login

2. apt-get install ssh 前面有沒有加 sudo ?
引用:
root@test:~# domainjoin-cli join XXXXXXXX.com administrator
Error: Unable to find ssh binary [code 0x00000436]
A sshd config file was at {nowhere}, and a sshd binary file was found at
{nowhere}. Exactly one config file and one binary must exist on the system in a
standard location. Uninstall any unused copies of ssh.
Please see the documentation related to sshd configuration options required and
re-attempt the join with "domainjoin-cli join/leave --disable ssh <domain> <username>"

3. 在 Ubuntu 使用 root 登入 跟使用 登入
特別是 安裝/設定 ssh 時
差異很大
3-1. 除非你對於使用者權限很熟悉 或者 你執行的程式說明文件指定
不然建議你 不要使用或切換成 root 身份 以免造成混淆
3-2. 上面最後一個訊息 建議你使用
domainjoin-cli join/leave --disable ssh <domain> <username>


页首
 用户资料  
 
12 楼 
 文章标题 : Re: 16.04如何加入windows域
帖子发表于 : 2016-05-20 17:49 

注册: 2016-04-27 15:45
帖子: 51
系统: Ubuntu 16.04
送出感谢: 7
接收感谢: 0 次
poloshiao 写道:
引用:
apt-get install ssh

1. 你安裝 ssh 在這裡扮演什麼角色或功能 ?
引用:
sudo apt-get update
sudo apt-get dist-upgrade
chmod +x pbis-open-xxxx.deb.sh
./pbis-open-xxxx.deb.sh
apt-get install ssh
domainjoin-cli join test.com(域名) test(管理员帐号)
然后输入密码,提示successful,但重启之后没有login

2. apt-get install ssh 前面有沒有加 sudo ?
引用:
root@test:~# domainjoin-cli join XXXXXXXX.com administrator
Error: Unable to find ssh binary [code 0x00000436]
A sshd config file was at {nowhere}, and a sshd binary file was found at
{nowhere}. Exactly one config file and one binary must exist on the system in a
standard location. Uninstall any unused copies of ssh.
Please see the documentation related to sshd configuration options required and
re-attempt the join with "domainjoin-cli join/leave --disable ssh <domain> <username>"

3. 在 Ubuntu 使用 root 登入 跟使用 登入
特別是 安裝/設定 ssh 時
差異很大
3-1. 除非你對於使用者權限很熟悉 不然建議你 不要使用或切換成 root 身份 以免造成混淆
3-2. 上面最後一個訊息 建議你使用
domainjoin-cli join/leave --disable ssh <domain> <username>





ssh扮演什么角色,我也不清楚,安装之后确实可以使用domainjoin-cli join。至于没加sudo,应该是我切换到root权限下了


页首
 用户资料  
 
13 楼 
 文章标题 : Re: 16.04如何加入windows域
帖子发表于 : 2016-05-20 17:55 

注册: 2009-08-04 16:33
帖子: 16893
送出感谢: 21
接收感谢: 1827
引用:
至于没加sudo,应该是我切换到root权限下了

test 使用者 家目錄在 /home/test
root 使用者 家目錄在 /root
安裝/設定 ssh 他的設定檔一般放在家目錄 而且存取權限 常常設定成 700 或 600
所以 隨意 切換 使用者 可能導致找不到 ssh 設定檔 或 無權存取
不是 root 就無所不能


页首
 用户资料  
 
14 楼 
 文章标题 : Re: 16.04如何加入windows域
帖子发表于 : 2016-05-20 17:56 

注册: 2016-04-27 15:45
帖子: 51
系统: Ubuntu 16.04
送出感谢: 7
接收感谢: 0 次
使用PBIS也可以加域、退域,图形化界面,但是没有登录界面 :Sad

我现在重新装12.04,安装likewise-open,加域重启之后,也是没有登录界面


页首
 用户资料  
 
15 楼 
 文章标题 : Re: 16.04如何加入windows域
帖子发表于 : 2016-05-20 17:59 

注册: 2016-04-27 15:45
帖子: 51
系统: Ubuntu 16.04
送出感谢: 7
接收感谢: 0 次
poloshiao 写道:
引用:
至于没加sudo,应该是我切换到root权限下了

test 使用者 家目錄在 /home/test
root 使用者 家目錄在 /root
安裝/設定 ssh 他的設定檔一般放在家目錄 而且存取權限 常常設定成 700 或 600
所以 隨意 切換 使用者 可能導致找不到 ssh 設定檔 或 無權存取
不是 root 就無所不能



应该是没有test这个域账号,换一个账号已经可以了


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 23 篇帖子 ]  前往页数 1, 2  下一页

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译