Re: join a samba domain

2008-12-23 Thread Tim Golden
Toff wrote: On 22 déc, 19:37, Toff wrote: On 22 déc, 18:59, Jens Henrik Leonhard Jensen wrote: Toff wrote: d = c.Win32_ComputerSystem d.JoinDomainOrWorkGroup(None, 3, "mydom", "mydompw", r"admin\\mydom") Shouldn't r"admin\\mydom" be "admin\\mydom" or r"admin\mydom". Or maybe just "

Re: join a samba domain

2008-12-23 Thread Toff
Or maybe could I try with LoadLibrary("netapi32.dll"); and the netjoindomain function ? but it doesn't look very easy -- http://mail.python.org/mailman/listinfo/python-list

Re: join a samba domain

2008-12-23 Thread Toff
On 22 déc, 19:37, Toff wrote: > On 22 déc, 18:59, Jens Henrik Leonhard Jensen > > wrote: > > Toff wrote: > > >    d = c.Win32_ComputerSystem > > >    d.JoinDomainOrWorkGroup(None, 3, "mydom", "mydompw", r"admin\\mydom") > > > Shouldn't r"admin\\mydom" be "admin\\mydom" or r"admin\mydom". >

Re: join a samba domain

2008-12-22 Thread Toff
On 22 déc, 18:59, Jens Henrik Leonhard Jensen wrote: > Toff wrote: > >    d = c.Win32_ComputerSystem > >    d.JoinDomainOrWorkGroup(None, 3, "mydom", "mydompw", r"admin\\mydom") > > Shouldn't r"admin\\mydom" be "admin\\mydom" or r"admin\mydom". > Or maybe just "admin" > > /Jens Henrik you ar

Re: join a samba domain

2008-12-22 Thread Jens Henrik Leonhard Jensen
Toff wrote: d = c.Win32_ComputerSystem d.JoinDomainOrWorkGroup(None, 3, "mydom", "mydompw", r"admin\\mydom") Shouldn't r"admin\\mydom" be "admin\\mydom" or r"admin\mydom". Or maybe just "admin" /Jens Henrik -- http://mail.python.org/mailman/listinfo/python-list

Re: join a samba domain

2008-12-22 Thread Toff
On 22 déc, 17:57, Tim Golden wrote: > Toff wrote: > > On 22 déc, 17:02, Tim Golden wrote: > >> Toff wrote: > >>> hi, > >>> I 'm trying to write a script to make my computer join a samba. > >>> domeone have any idea ?? > >> Ummm. It's not clear if you're saying that your code doesn't > >> work,

Re: join a samba domain

2008-12-22 Thread M�ta-MCI (MVP)
Hi! If you are under Vista, you must change the LSA parameter. See: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa LMCompatibilityLevel try with value 1 or 0 And use a Samba not too old. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/

Re: join a samba domain

2008-12-22 Thread Tim Golden
Toff wrote: On 22 déc, 17:02, Tim Golden wrote: Toff wrote: hi, I 'm trying to write a script to make my computer join a samba. domeone have any idea ?? Ummm. It's not clear if you're saying that your code doesn't work, or asking for general advice, or what? I'm not in a position to have my

Re: join a samba domain

2008-12-22 Thread Toff
On 22 déc, 17:02, Tim Golden wrote: > Toff wrote: > > hi, > > > I 'm trying to write a script to make my computer join a samba. > > > domeone have any idea ?? > > Ummm. It's not clear if you're saying that your code doesn't > work, or asking for general advice, or what? I'm not in a > position to

Re: join a samba domain

2008-12-22 Thread Tim Golden
Toff wrote: hi, I 'm trying to write a script to make my computer join a samba. domeone have any idea ?? Ummm. It's not clear if you're saying that your code doesn't work, or asking for general advice, or what? I'm not in a position to have my machine join a domain or workgroup, but you seem

join a samba domain

2008-12-22 Thread Toff
hi, I 'm trying to write a script to make my computer join a samba. domeone have any idea ?? thanks regards, * # -*- coding: iso-8859-1 *-* import win32com.client import os,sys import win32api import impers import socket