LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Join Fedora in Windows network (https://www.linuxquestions.org/questions/linux-networking-3/join-fedora-in-windows-network-4175562675/)

thomazp 12-30-2015 11:07 AM

Join Fedora in Windows network
 
I installled some recommended packages and tryied to use "realm discover" command, but the group wasn't found.
Look:
dnf -y install realmd sssd oddjob oddjob-mkhomedir adcli samba-common
================================================================================
Package Arq. Verso Repo Tam.
================================================================================
Skipping packages with conflicts:
(add '--best --allowerasing' to command line to force their upgrade):
libipa_hbac x86_64 1.13.3-1.fc23 updates 73 k
libsmbclient x86_64 2:4.3.3-0.fc23 updates 122 k
libsss_idmap x86_64 1.13.3-1.fc23 updates 78 k
libwbclient x86_64 2:4.3.3-0.fc23 updates 95 k
python3-sssdconfig noarch 1.13.3-1.fc23 updates 100 k
samba x86_64 2:4.3.3-0.fc23 updates 626 k
samba-client x86_64 2:4.3.3-0.fc23 updates 548 k
samba-client-libs x86_64 2:4.3.3-0.fc23 updates 4.6 M
samba-common noarch 2:4.3.3-0.fc23 updates 184 k
samba-common-libs x86_64 2:4.3.3-0.fc23 updates 157 k
samba-common-tools x86_64 2:4.3.3-0.fc23 updates 447 k
samba-libs x86_64 2:4.3.3-0.fc23 updates 259 k
sssd x86_64 1.13.3-1.fc23 updates 67 k
sssd-ad x86_64 1.13.3-1.fc23 updates 176 k
sssd-client x86_64 1.13.3-1.fc23 updates 135 k
sssd-common x86_64 1.13.3-1.fc23 updates 1.1 M
sssd-common-pac x86_64 1.13.3-1.fc23 updates 112 k
sssd-ipa x86_64 1.13.3-1.fc23 updates 231 k
sssd-krb5 x86_64 1.13.3-1.fc23 updates 105 k
sssd-krb5-common x86_64 1.13.3-1.fc23 updates 134 k
sssd-ldap x86_64 1.13.3-1.fc23 updates 171 k
sssd-proxy x86_64 1.13.3-1.fc23 updates 100 k

Resumo da transao
================================================================================

Nothing to do.
done!
but
realm discover <domain>
realm: domain not found: <domain>

Samba is running:
# ps -ef|grep smb
root 13994 1 0 08:37 ? 00:00:00 /usr/sbin/smbd
root 13995 13994 0 08:37 ? 00:00:00 /usr/sbin/smbd
root 14017 13994 0 08:37 ? 00:00:00 /usr/sbin/smbd
# smbstatus

Samba version 4.3.1
PID Username Group Machine Protocol Version
------------------------------------------------------------------------------

Service pid machine Connected at
-------------------------------------------------------

No locked files

What do I need to do now?
And The instructions below aren't working :
http://www.server-world.info/en/note...ra_21&p=realmd
Or I am doing wrongly.
Thanks

They let me do, and I did, but some errors appears, like:
# authconfig-tui
[/usr/bin/net join -w portoseguro.brasil -U Administrator]
Traceback (most recent call last):
File "/usr/sbin/authconfig-tui", line 1078, in <module>
sys.exit(module.run())
File "/usr/sbin/authconfig-tui", line 666, in run
if not self.doUI():
File "/usr/sbin/authconfig-tui", line 1059, in doUI
if not self.getChoices():
File "/usr/sbin/authconfig-tui", line 1034, in getChoices
rc = self.getWinbindSettings(more)
File "/usr/sbin/authconfig-tui", line 995, in getWinbindSettings
anothertxt=_("Join Domain"), anothercb=self.maybeGetJoinSettings)
File "/usr/sbin/authconfig-tui", line 909, in getGenericChoices
anothercb()
File "/usr/sbin/authconfig-tui", line 973, in maybeGetJoinSettings
self.getJoinSettings()
File "/usr/sbin/authconfig-tui", line 954, in getJoinSettings
self.info.joinDomain(True)
File "/usr/share/authconfig/authinfo.py", line 4314, in joinDomain
status, error = feedFork(cmd, echo, "sword:", self.joinPassword)
File "/usr/share/authconfig/authinfo.py", line 953, in feedFork
output += c
TypeError: Can't convert 'bytes' object to str implicitly
# authconfig-tui
[/usr/bin/net join -w portoseguro.brasil -U Administrator]
Traceback (most recent call last):
File "/usr/sbin/authconfig-tui", line 1078, in <module>
sys.exit(module.run())
File "/usr/sbin/authconfig-tui", line 666, in run
if not self.doUI():
File "/usr/sbin/authconfig-tui", line 1059, in doUI
if not self.getChoices():
File "/usr/sbin/authconfig-tui", line 1034, in getChoices
rc = self.getWinbindSettings(more)
File "/usr/sbin/authconfig-tui", line 995, in getWinbindSettings
anothertxt=_("Join Domain"), anothercb=self.maybeGetJoinSettings)
File "/usr/sbin/authconfig-tui", line 909, in getGenericChoices
anothercb()
File "/usr/sbin/authconfig-tui", line 973, in maybeGetJoinSettings
self.getJoinSettings()
File "/usr/sbin/authconfig-tui", line 954, in getJoinSettings
self.info.joinDomain(True)
File "/usr/share/authconfig/authinfo.py", line 4314, in joinDomain
status, error = feedFork(cmd, echo, "sword:", self.joinPassword)
File "/usr/share/authconfig/authinfo.py", line 953, in feedFork
output += c
TypeError: Can't convert 'bytes' object to str implicitly
I fill the name servers address in the domain controllers(I guess it is right), but I don't know what to put in the ADS Realm field.
What can I do now ?

I searched the answer, ADS Realm, is found typing echo userdnsdomain .
But all the information entered is not saved, and all times have to reenter.
The message is:
[/usr/bin/net join -w <DOMAIN> -S 127.26.19.220 -U Administrator]
Traceback (most recent call last):
File "/usr/sbin/authconfig-tui", line 1078, in <module>
sys.exit(module.run())
File "/usr/sbin/authconfig-tui", line 666, in run
if not self.doUI():
File "/usr/sbin/authconfig-tui", line 1059, in doUI
if not self.getChoices():
File "/usr/sbin/authconfig-tui", line 1034, in getChoices
rc = self.getWinbindSettings(more)
File "/usr/sbin/authconfig-tui", line 995, in getWinbindSettings
anothertxt=_("Join Domain"), anothercb=self.maybeGetJoinSettings)
File "/usr/sbin/authconfig-tui", line 909, in getGenericChoices
anothercb()
File "/usr/sbin/authconfig-tui", line 973, in maybeGetJoinSettings
self.getJoinSettings()
File "/usr/sbin/authconfig-tui", line 954, in getJoinSettings
self.info.joinDomain(True)
File "/usr/share/authconfig/authinfo.py", line 4314, in joinDomain
status, error = feedFork(cmd, echo, "sword:", self.joinPassword)
File "/usr/share/authconfig/authinfo.py", line 953, in feedFork
output += c
TypeError: Can't convert 'bytes' object to str implicitly

My version: Fedora23 . Samba is runnig:
# smbstatus

Samba version 4.3.3

Tks in advance

I discovered, the domain is not correctly assigned.
Typing domainname, the answer is correct, but using realm cmd, he answers domain isn't assigned.
Looking this site :
http://blog.zwiegnet.com/linux-serve...indows-domain/
He says t use the Administrator login/Password and I was using mine (normal user), I didn't work(obviously), and I only try it tomorrow. I post the results here, tks.
This instructions:
http://www.server-world.info/en/note...ra_21&p=realmd
didn't work for me.

frankbell 12-30-2015 07:25 PM

I don't know anything about this "realm discover" thingee, but I think it would help if you provide more information about the Windows network:

Is it a home or work network? Active Directory or workgroup? If a home nework, homegroup or "simple sharing"? (If it's a work network, the office system administrators would be the persons to whom to pose your questions.)

Are all the computers in the same subnet?

Can you ping the Windows computers from the Fedora box? If not, what does traceroute return?

thomazp 12-31-2015 06:41 AM

It is Workgroup.
Yes, are in the same subnet.
I can't ping the print servers, saw this yesterday, because couldn't insert the machine in the AD.
Yesterday I was searching, and saw a solution to try, but needed the Administrator login/password, and the persons aren't in the same building. I talked by messenger, and won't have opportunity to go there today w/ the notebook.
I will put the results here.


When using authconfig-tui , I reached a point they asked the Domain Administrator password, and I will have opportunity to try this on the next monday.
If there is a way to do it with an user login(my one), please reply here.
Thanks,

thomazp 01-01-2016 05:05 PM

I will ask about this access on monday, and post here the results.


All times are GMT -5. The time now is 04:15 PM.