Re: Samba/Winbind join domain requires password at every reboot?



Robert Harris skrev:
Tobias Skytte wrote:
goarilla@work skrev:
Tobias Skytte wrote:
Hi,

I have set up samba to join a windows domain (and everything works
great) but it seems to require joining to the domain everytime it
reboots with:
#net join -w mydomain -S myPDC -U administrator

and then it needs the administrator password, and then a restart of
the winbind daemon..

So the question is why is this necessary at every reboot? I don't
want to leave the admin password in some script. Windows machines
don't need to do this at every reboot so why winbind? How can I get
it to be joined permanently..?

PS: I have googled this alot and am not able to find a reason for
this.. so any hints will be helpful.
Thanks.
Tobias Skytte
maybe you can send it a HUP signal instead
because when smbd receives a HUP signal it rereads smb.conf and
changes its config according to them, maybe winbindd does the same

i'm not sure about this, it's just a suggestion
Hi,
Thanks, but its not so much a problem with restarting the daemon or
re-reding the conf, its more of a problem that it has to ask for the
admin password everytime it reboots (because it has to re-join the
domain which shouldn't be necessary), and I don't want to leave that in
some script. So the real question is, why is the domain joining not
persistent?

Regards,
Tobias Skytte

If you don't have to authenticate yourself to the domain when you
reboot, then how can the domain be sure who you are?

You have to store a password somewhere!

Robert

Well, in Windows once you join the domain you don't have to enter the admin password at every reboot, and if you change the admin password in the PDC then all the machines don't have to be re-joined, so once they are joined they are joined forever. Why should this behaviour be different under linux?
The main prob, is 1) I have to put the PDC admin password in plain text in a script, and 2) if the admin password changes then the script has to be changed and 3) why should it be different under linux than under windows?


Regards,
Tobias
.



Relevant Pages

  • Re: Samba/Winbind join domain requires password at every reboot?
    ... Well, in Windows once you join the domain you don't have to enter the admin password at every reboot, and if you change the admin password in the PDC then all the machines don't have to be re-joined, so once they are joined they are joined forever. ... Do you have an account for the machine under Computers in Users and Computers? ...
    (comp.os.linux.networking)
  • Failed Windows Attempts with Correct password etc.
    ... I am using Windows 2000 and everything was fine. ... virtual memory was low, so I did a reboot. ... when I brought it back to work the network admin password will ...
    (microsoft.public.win2000.general)
  • Re: lsass.exe worm
    ... > our Login Script which is based upon the kixtart script Interpreter. ... > reboot and requires no user intervention. ... > the patches wre self extracting ZIP files. ... >> As soon as your computer reboots and Windows loads, click Start, ...
    (microsoft.public.win2000.general)
  • Re: Samba/Winbind join domain requires password at every reboot?
    ... Well, in Windows once you join the domain you don't have to enter the admin password at every reboot, and if you change the admin password in the PDC then all the machines don't have to be re-joined, so once they are joined they are joined forever. ... Do you have an account for the machine under Computers in Users and Computers? ...
    (comp.os.linux.networking)
  • Script fires on XP but not Server 2003
    ... The script runs fine on a Windows XP but since ... WhatsUp is calling the script, ... the script runs fine on the Windows ... '3- Immediate Reboot ...
    (microsoft.public.scripting.wsh)

Loading