LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-30-2015, 11:07 AM   #1
thomazp
Member
 
Registered: Dec 2015
Location: Brazil
Distribution: Ubuntu, Fedora
Posts: 161

Rep: Reputation: Disabled
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.

Last edited by thomazp; 12-30-2015 at 01:54 PM. Reason: network, domain, realm
 
Old 12-30-2015, 07:25 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,272
Blog Entries: 28

Rep: Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124
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?
 
Old 12-31-2015, 06:41 AM   #3
thomazp
Member
 
Registered: Dec 2015
Location: Brazil
Distribution: Ubuntu, Fedora
Posts: 161

Original Poster
Rep: Reputation: Disabled
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,

Last edited by thomazp; 12-31-2015 at 07:05 AM. Reason: Adding info
 
Old 01-01-2016, 05:05 PM   #4
thomazp
Member
 
Registered: Dec 2015
Location: Brazil
Distribution: Ubuntu, Fedora
Posts: 161

Original Poster
Rep: Reputation: Disabled
I will ask about this access on monday, and post here the results.
 
  


Reply

Tags
fedora, network, samba, windows


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Join fedora or open suse to windows domain ltodd2 Linux - Enterprise 1 10-20-2008 02:20 PM
How do I join a Linux box running Fedora 8 to a Windows 2003 domain pricela Linux - Newbie 1 03-19-2008 02:07 PM
join the fedora machine to windows server devashish Vishnoi Linux - Newbie 1 03-05-2008 02:11 AM
How to - Join SuSE to Windows network & printing Q cbjhawks Linux - Networking 2 01-30-2006 05:03 PM
[Script] Join Fedora Core2 in Windows 2003 Domain L1nuxbug Linux - Networking 0 11-09-2004 07:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration