LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-11-2012, 09:20 AM   #1
swagcute
LQ Newbie
 
Registered: Jul 2012
Posts: 13

Rep: Reputation: Disabled
Exclamation joining samba3 to samba4 pdc


Hi!
I have a pdc with samba4(resara) and ubuntu printserver (samba3) separately.What are the commands and configurations i should do to join samba3 to samba4. I would like to make the printer available to the samba4 pdc clients by doing that. Plz help me out asap!
 
Old 07-13-2012, 06:16 PM   #2
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
net rpc join?
 
Old 07-14-2012, 08:19 PM   #3
swagcute
LQ Newbie
 
Registered: Jul 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
Ok! thanks for the reply!
This is what i have done so far apart from resara domaincontroller...
1.installed ubuntu print server
2. apt-get install samba smb-client
3. edited smb.conf (changes below)
a. workgroup name= domain name
b. security = domain
c. password server = domain name
4. made dns changes to resolve my domain to resolve mydomain name from printserver
5. sudo net rpc join -S mydomain -UAdministrator%pass

i get error "get_schannel_session_key: could not fetch trust account password for domain 'abc'
net_rpc_join_ok: failed to get schannel session key from server abc.xyz.com for domain abc. Error was NT_STATUS_CANT_ACCESS_DOMAIN_INFO
Unable to join domain abc."

Do i have to do provision of samba after installing ? Do i have to change anything else in smb.conf?
 
Old 07-15-2012, 09:16 AM   #4
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
Have you tried kinit first (obviously you have to change your krb5.conf).

Also, as samba4 is supposed to be a fully blown AD Server- maybe security=ads and net ads join might work.
 
Old 07-15-2012, 12:30 PM   #5
swagcute
LQ Newbie
 
Registered: Jul 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
i have been able to join after changing workgroup name = abc instead of fqdn(abc.xyz.com) in samba3 smb.conf.
But the shared printer under samba3 is not showing under the samba 4 domain from windows client. Still I could access the printer by directly specifying the printer server IP. What could be wrong ?
 
Old 07-15-2012, 01:49 PM   #6
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
It shows netbios problem somewhere. What are the results of net view and nbtstat from your Windows computers?
 
Old 07-16-2012, 09:56 PM   #7
swagcute
LQ Newbie
 
Registered: Jul 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
Thanks for your replies!I really appreciate that!
It might be a netbios problem! I haven't got a chance to post answer for nbstat and netview as i already started implementing ads join as you suggested. But, i haven't enabled wins support in samba 3 at all. I thought as the printer is accessible directly when i type samba3 ip; wins support is not necessary in samba 3. Am i right ?

Last edited by swagcute; 07-16-2012 at 09:57 PM.
 
Old 07-17-2012, 04:35 PM   #8
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
No, wins support is not necessary- if you only want to type the samba3 server's ip address. It should work without any problem. What error are you getting?
 
Old 07-17-2012, 05:44 PM   #9
swagcute
LQ Newbie
 
Registered: Jul 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
Sorry ! Hope you misunderstood.
My samaba 3 printserver address - 192.168.1.50
domain samba4 - 192.168.1.3
What I was trying to say was, i could access the shared printer in samba3 from a windows pc by directly specifying the Ip 192.168.1.50. But it's not showing as a shared printer under the domain 192.168.1.3. I expect the printer to be listed under the domain as i joined samba 3 to domain with "net rpc join".
By the way, all i want to do is automate printer installation and mapping to all the domain users with cups when they login to domain. Do you think its possible ? Or is there any other simple way ?
 
Old 07-18-2012, 04:08 PM   #10
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
So, you do need a wins server somewhere then. These are the things to check- is the computer browser service running on the PDC? What does nbtstat and net view return - by name and by IP address for your samba server? What does net dns register return?
 
Old 07-26-2012, 10:46 AM   #11
swagcute
LQ Newbie
 
Registered: Jul 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
Hi!
Thanks for your replies so far! I have managed to add printserver to samba 4 and been able to push drivers when pointed at the shared printers. But the printer being added with linuk .ppd drivers doesn't offer all the features as same as the printer added with windows driver. For instance duplex printing is not available. So is there any guides to push windows printer driver installation from samba3 ?
 
Old 07-27-2012, 09:07 AM   #12
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
Very old (and untried) documentation:
http://www.enterprisenetworkingplane...-with-CUPS.htm
 
Old 07-27-2012, 10:15 AM   #13
swagcute
LQ Newbie
 
Registered: Jul 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
Ok! That was the second main document i used along with http://www.ossramblings.com/samba_push_windows_drivers to push linux drivers. But since it is pushing postscript drivers(ppd) file which doesn't offer all the features of a windows driver i should switch to another solution.
What difference would use client driver = yes or no make ? i'm using yes at the moment...

I guess i should do something with .inf files along with wpkg but haven't got clear idea so far.
 
Old 08-03-2012, 08:15 PM   #14
swagcute
LQ Newbie
 
Registered: Jul 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
Ok. I have used the change driver method to upload windows driver.
Finally got everything to work as intended
 
  


Reply


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
Joining a Windows 7 client to Samba PDC v 3.4.3 speedsrfr Linux - Server 7 08-23-2012 12:09 AM
samba3 PDC useradd error JROCK1980 *BSD 1 05-11-2007 04:12 AM
Joining XP to a Samba PDC DirtySanchez Linux - Networking 1 08-03-2005 12:25 AM
Linux joining Samba PDC yenonn Linux - Networking 1 12-15-2004 09:02 PM
Joining Win2k client to a samba PDC seaver Linux - Networking 3 08-07-2003 09:34 AM


All times are GMT -5. The time now is 12:18 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration