Bluehost.com Web Hosting $6.95

[Samba] simple command to check domain membership

This is a discussion on [Samba] simple command to check domain membership within the Samba forums, part of the Networking and Network Related category; Hello, I'm planning to automate domain joining with samba+winbind for a classroom. Using cfengine, I'll have to ...


Go Back   Usenet Forums > Networking and Network Related > Samba

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-02-2008
Mikael Kermorgant
 
Posts: n/a
Default [Samba] simple command to check domain membership

Hello,

I'm planning to automate domain joining with samba+winbind for a classroom.

Using cfengine, I'll have to trigger domain joining by checking current
status via a shell command.

An example :

has_hostname = ( '/bin/test -f /etc/hostname' )


What would be a simple and safe test to check whether or not the machine has
already been joined to the domain ?

Thanks in advance,


--
Mikael Kermorgant
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba

Reply With Quote
  #2 (permalink)  
Old 07-02-2008
Guenther Deschner
 
Posts: n/a
Default Re: [Samba] simple command to check domain membership

Mikael Kermorgant wrote:
> Hello,
>
> I'm planning to automate domain joining with samba+winbind for a classroom.
>
> Using cfengine, I'll have to trigger domain joining by checking current
> status via a shell command.
>
> An example :
>
> has_hostname = ( '/bin/test -f /etc/hostname' )
>
>
> What would be a simple and safe test to check whether or not the machine has
> already been joined to the domain ?


net ads testjoin
or
net rpc testjoin

should do it.


Guenther

--
Günther Deschner GPG-ID: 8EE11688
Red Hat gdeschner@redhat.com
Samba Team gd@samba.org
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 01:37 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0