Hello,

I try to connect to an ipc$ using Win32::Lanman. The code used is straight 
from the man page: 

    if(!Win32::Lanman::NetUseAdd({remote   => "\\\\server\\ipc\$",
                                  password => "passwd",
                                  username => "user",
                                  domain   => "domain",
                                  asg_type => &USE_IPC}))
    {
        print "\nSorry, something went wrong; error: ";
        # get the error code
        print Win32::Lanman::GetLastError();
        exit 1;
    }


Unfortunately I always get an error 1326 (Logon failure: unknown user name 
or bad password.).  If I do the equivalent "net use" on the commandline

> net use \\server\ipc$ passwd /u:domain\user

the command is successful. Any idea where to dig for the reason ?

Thanks,
Ekkehard



_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to