Discussion:
[Samba] Feature request: delete machine script
tom burkart
2005-05-17 06:02:02 UTC
Permalink
Hi everyone,
I am wondering what the likelyhood would be to get a "delete machine
script" implemented in the samba core that would delete a machine upon
successful un-join of a samba domain.
Alternatively, why is this not a good idea?

tom.
John H Terpstra
2005-05-17 06:07:47 UTC
Permalink
Post by tom burkart
Hi everyone,
I am wondering what the likelyhood would be to get a "delete machine
script" implemented in the samba core that would delete a machine upon
successful un-join of a samba domain.
Alternatively, why is this not a good idea?
How do you plan on creating the SMB/CIFS transaction that would delete the
account? Have you used ethereal to check what commands unjoining a
workstation from the domain passes over the network?

What is wrong with manually executing:

net rpc user delete machine\$ -Uroot%secret

It beats the challenge of getting Microsoft to change their workstation
code! :-)

- John T.
tom burkart
2005-05-17 06:32:20 UTC
Permalink
Post by John H Terpstra
Post by tom burkart
Hi everyone,
I am wondering what the likelyhood would be to get a "delete machine
script" implemented in the samba core that would delete a machine upon
successful un-join of a samba domain.
Alternatively, why is this not a good idea?
How do you plan on creating the SMB/CIFS transaction that would delete the
account? Have you used ethereal to check what commands unjoining a
workstation from the domain passes over the network?
net rpc user delete machine\$ -Uroot%secret
Sorry, you seem to misunderstand:
When the machine is detached from the domain (with the above command),
what I want is Samba to execute a script that deletes the appropriate
machine name from the LDAP directory.

tom.
John H Terpstra
2005-05-17 07:26:14 UTC
Permalink
Post by tom burkart
Post by John H Terpstra
Post by tom burkart
Hi everyone,
I am wondering what the likelyhood would be to get a "delete machine
script" implemented in the samba core that would delete a machine upon
successful un-join of a samba domain.
Alternatively, why is this not a good idea?
How do you plan on creating the SMB/CIFS transaction that would delete
the account? Have you used ethereal to check what commands unjoining a
workstation from the domain passes over the network?
net rpc user delete machine\$ -Uroot%secret
When the machine is detached from the domain (with the above command),
what I want is Samba to execute a script that deletes the appropriate
machine name from the LDAP directory.
Exactly! When you un-join the domain does the windows client send any CIFS
commands to the domain controller to remove the account? If not, then having
an interface script will not do a single bit of good.

In my experience, detachinf from a domain is a local-only operation; no
commands are sent to the domain controllers. So if you want this
functionality you will first have to convince Microsoft to implement it.

- John T.

Continue reading on narkive:
Loading...