Koozali.org: home of the SME Server

Samba as an Active Directory Domain Member

Samba as an Active Directory Domain Member
« on: November 06, 2008, 05:33:47 PM »
Can anyone tell me if there is a How-To anywhere which will show me the simple way (if there is one) to set up my Advanced Samba SME Server as an Active Directory Domain Member on a Windows 2003 Server domain?

Currently my configuration looks like this...

# config show smb
    smb=service
    DeadTime=10080
    DomainMaster=no
    KeepVersions=enabled
    OpLocks=enabled
    OsLevel=35
    RecycleBin=enabled
    RoamingProfiles=no
    ServerName=mumbojumbo
    ServerRole=WS
    ShadowCopy=enabled
    ShadowCount=10
    ShadowDir=/home/e-smith/files/.shadow
    UnixCharSet=UTF8
    UseClientDriver=no
    WINSServer=192.168.1.12
    Workgroup=asapcleaningltd.local
    status=enabled

But when I issue an "net rpc join -U Admin_name%password" I get "cannot join as standalone machine".

What am I doing wrong or not doing?

RTB.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Samba as an Active Directory Domain Member
« Reply #1 on: November 06, 2008, 06:56:32 PM »
Can anyone tell me if there is a How-To anywhere which will show me the simple way (if there is one) to set up my Advanced Samba SME Server as an Active Directory Domain Member on a Windows 2003 Server domain?
Not possible at the moment, but work in that direction is done. Greg Zartman has launched development in this direction. He is also in the forums, I will direct him to this thread, perhaps he has some usefull comments or estimates when this might be possible.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline gzartman

  • *
  • 306
  • +0/-0
    • LEI Engineering & Surveying
Re: Samba as an Active Directory Domain Member
« Reply #2 on: November 06, 2008, 07:12:07 PM »
Can anyone tell me if there is a How-To anywhere which will show me the simple way (if there is one) to set up my Advanced Samba SME Server as an Active Directory Domain Member on a Windows 2003 Server domain?

Currently not possible with SME unless you do quite abit of hacking.  There is an effort underway to add this functionality to SME here:  http://bugs.contribs.org/show_bug.cgi?id=4666    And a wiki document here:  http://wiki.contribs.org/Advanced_Samba

Greg
« Last Edit: November 06, 2008, 07:14:10 PM by gzartman »
----
Greg J. Zartman
LEI Engineering & Surveying

SME user and community member since 2000.

Re: Samba as an Active Directory Domain Member
« Reply #3 on: November 09, 2008, 06:52:28 PM »
Thanks for the heads-up cactus, even if it wasn't quite what I wanted to hear.

And Greg... keep up the good work.  As I wrote, I am using the Advanced Samba contrib at the moment.

RTB.

Offline turandot

  • *
  • 82
  • +0/-0
Re: Samba as an Active Directory Domain Member
« Reply #4 on: November 16, 2008, 02:34:03 PM »
Hi,

I don't have the contrib installed yet, but I was searching for options to configure the SME server to become a Domain Member (DM) quite a while. This contrib is really important for more advanced SME usage.

@Greg,

I would assume that DM was the most wanted option, and I think that it should pave the way to implement the other options as well. Are there any (ideas on) time plans to overcome the limitations with regard to access control as described here http://wiki.contribs.org/Advanced_Samba#Known_issues ?

turandot

Offline Confucius

  • *****
  • 235
  • +0/-0
Re: Samba as an Active Directory Domain Member
« Reply #5 on: November 16, 2008, 05:12:23 PM »

Are there any (ideas on) time plans to overcome the limitations with regard to access control as described here http://wiki.contribs.org/Advanced_Samba#Known_issues ?

turandot

Most of the work is already done in a test-setup I'm using for almost a year now.
I'm between jobs right now and that limits me in rounding up this issue since I already promised Greg a solution.

I would say : stay tuned.... it's a work in progress.

Harro

Offline gzartman

  • *
  • 306
  • +0/-0
    • LEI Engineering & Surveying
Re: Samba as an Active Directory Domain Member
« Reply #6 on: November 16, 2008, 07:18:23 PM »
Hi,

I don't have the contrib installed yet, but I was searching for options to configure the SME server to become a Domain Member (DM) quite a while. This contrib is really important for more advanced SME usage.

Domain membership in an NT4 type domain works fine with the contrib.

@Greg,
I would assume that DM was the most wanted option, and I think that it should pave the way to implement the other options as well. Are there any (ideas on) time plans to overcome the limitations with regard to access control as described here http://wiki.contribs.org/Advanced_Samba#Known_issues ?

Functionality needed to provide activate directory membership won't help with SME becoming a backup domain controller or an active directory domain controller.  Backup domain controller functionality won't happen until we get a solid LDAP authentication backend to SME.  My understanding is that most of the pieces are in place to deploy and LDAP auth backend to SME.

SME as an Active Directory PDC won't happen until we get Samba 4, which is a ways off yet.

How's that for timelines. ;)
« Last Edit: November 17, 2008, 06:17:32 AM by gzartman »
----
Greg J. Zartman
LEI Engineering & Surveying

SME user and community member since 2000.

Offline turandot

  • *
  • 82
  • +0/-0
Re: Samba as an Active Directory Domain Member
« Reply #7 on: November 16, 2008, 10:53:26 PM »
Hi Greg,

many thanks for your update. I know that Samba 4 may take more than a while, but currently I am not too much hoping on Active Directory support. I am primarily interested  in full support of the Domain Member (NT4 style) including access control of shares based on domain users and groups...

Hope this clarifies.

Thanks a lot, turandot

Offline gzartman

  • *
  • 306
  • +0/-0
    • LEI Engineering & Surveying
Re: Samba as an Active Directory Domain Member
« Reply #8 on: November 17, 2008, 06:11:58 AM »
I am primarily interested  in full support of the Domain Member (NT4 style) including access control of shares based on domain users and groups...

All of this is available with smeserver-adv-samba, via winbindd. 

However, domain groups currently are not recognized by the ibays server-manager panel; therefore, there is no way to control access to ibays by domain group using the server-manager.  At this point, this is intentional because the domain member server role is not supported in the core SME distro.

To implement access control to ibays by domain group, you'll need to create a custom template fragment.
« Last Edit: November 17, 2008, 06:17:12 AM by gzartman »
----
Greg J. Zartman
LEI Engineering & Surveying

SME user and community member since 2000.

Offline mgb

  • *****
  • 558
  • +0/-0
Re: Samba as an Active Directory Domain Member
« Reply #9 on: December 26, 2008, 12:39:57 PM »
1 is not login
 net rpc join -U administrator@passwordserver2003
Password:
Could not connect to server T1
The username or password was not correct.
Connection failed: NT_STATUS_LOGON_FAILUR


2 is login join
#net rpc join -U adminisrtators
#password :
join to domain  DOMAIN

l login from xp to server2003Active Directory Domain Member user1@password activ Directory
is ok


type from xp
net use f: //mysem7.3/user1
is ok

net use g: //myserve2003/user1
is not work
net use g: //ip=server2003/user1   (ping myserver2003  is ok)
is work

help ?


Currently my configuration looks like this...

# config show smb
    smb=service
    DeadTime=10080
    DomainMaster=no
    KeepVersions=enabled
    OpLocks=enabled
    OsLevel=35
    RecycleBin=enabled
    RoamingProfiles=no
    ServerName=mysme7.3
    ServerRole==DM
    ShadowCopy=enabled
    ShadowCount=10
    ShadowDir=/home/e-smith/files/.shadow
    UnixCharSet=UTF8
    UseClientDriver=no
     DOMAIN=domain
    Workgroup=domain
    status=enabled
« Last Edit: December 26, 2008, 05:41:33 PM by mgb »
Thanks all for helping
Skype yosii2009

Offline gzartman

  • *
  • 306
  • +0/-0
    • LEI Engineering & Surveying
Re: Samba as an Active Directory Domain Member
« Reply #10 on: December 26, 2008, 06:59:03 PM »
The net command in the current version of Samba isn't working correctly.  You'll need to use the following syntax to join a domain:

net rpc join -U pdc_admin_username%pdc_admin_password
----
Greg J. Zartman
LEI Engineering & Surveying

SME user and community member since 2000.

Offline mgb

  • *****
  • 558
  • +0/-0
Re: Samba as an Active Directory Domain Member
« Reply #11 on: December 27, 2008, 06:08:06 AM »
ok  (@ %)
 net rpc join -U administrator%password
Joined domain T10.
[root@linux  ~]#
 is work good
Thanks all for helping
Skype yosii2009

Offline mgb

  • *****
  • 558
  • +0/-0
Re: Samba as an Active Directory Domain Member
« Reply #12 on: December 27, 2008, 06:32:45 AM »
howto   stop join to domain   

for join to new domain  ?
Thanks all for helping
Skype yosii2009

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Samba as an Active Directory Domain Member
« Reply #13 on: December 27, 2008, 04:08:06 PM »
howto   stop join to domain   

for join to new domain  ?
Please do some research your self (you have been told multiple times). These are general linux commands from the samba package. For instance this would give you a detailed list of commands and their functions when entered on the command line of your server:

Code: [Select]
man net
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline mgb

  • *****
  • 558
  • +0/-0
Re: Samba as an Active Directory Domain Member
« Reply #14 on: December 29, 2008, 05:44:44 AM »
Very good!
Thank you
is work Active Directory    users  and groups
i open only groups in sme is work (groups = Active Directory =sme 7.3)
if you  make new grous It is necessary to signal-event workgroup-update
Thanks all for helping
Skype yosii2009

Offline gzartman

  • *
  • 306
  • +0/-0
    • LEI Engineering & Surveying
Re: Samba as an Active Directory Domain Member
« Reply #15 on: January 03, 2009, 08:41:40 AM »
is work Active Directory    users  and groups
i open only groups in sme is work (groups = Active Directory =sme 7.3)
if you  make new grous It is necessary to signal-event workgroup-update

No, SME 7.4 cannot read active directory domain users nor groups.  SME 7.4 will join the domain, however it can't use the AD auth mechanisms, so the membership is basically useless.
----
Greg J. Zartman
LEI Engineering & Surveying

SME user and community member since 2000.

Offline mgb

  • *****
  • 558
  • +0/-0
Re: Samba as an Active Directory Domain Member
« Reply #16 on: January 18, 2009, 09:25:31 AM »
Very good!
Thank you
is work Active Directory    users  and groups
i open only groups in sme is work (groups = Active Directory =sme 7.3)
if you  make new grous It is necessary to signal-event workgroup-update

  to  stop join to domain    del /etc/lpd/*.*

config new smb
join to new domain   
 
Thanks all for helping
Skype yosii2009