[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Re: How to add windows workstation in Wheezy?



[Arne Sørli]
> I hadn't thought about that. Here is the last part of
> /var/log/samba/log.static21 (I think the first entry is when i tried
> with first-user or root, the last is with SKOLELINUX\Administrator):
> [2013/08/04 11:32:53.836372,  0]
> rpc_server/netlogon/srv_netlog_nt.c:931(_netr_ServerAuthenticate3)
>   _netr_ServerAuthenticate: no challenge sent to client STATIC21
> [2013/08/04 11:32:54.234986,  0]
> passdb/passdb.c:2247(pdb_increment_bad_password_count)
>   pdb_increment_bad_password_count: pdb_get_account_policy failed.
> [2013/08/04 11:33:28.122568,  0]
> rpc_server/netlogon/srv_netlog_nt.c:931(_netr_ServerAuthenticate3)
>   _netr_ServerAuthenticate: no challenge sent to client STATIC21
> Use of qw(...) as parentheses is deprecated at
> /usr/share/perl5/smbldap_tools.pm line 1423, <DATA> line 558.
> Can't exec "/usr/bin/netx": No such file or directory at
> /usr/share/perl5/smbldap_tools.pm line 245.
> Failed to get SID from Samba net command at
> /usr/share/perl5/smbldap_tools.pm line 249.
> Compilation failed in require at /etc/samba/smbldap-machineadd-gosa line 42.
> BEGIN failed--compilation aborted at
> /etc/samba/smbldap-machineadd-gosa line 42.

Hm, a look in /usr/share/perl5/smbldap_tools.pm show this:

    # automatically find SID
    if ( not $conf{SID} ) {
        $conf{SID} = getLocalSID()
          || die
"Unable to determine domain SID: please edit your smbldap.conf, or start your samba server for a few minutes to allow for SID generation to proceed\n";
    }
[...]
sub getLocalSID {
    open my $fh, "-|" or exec("$samba_bindir/netx", "getlocalsid") || exit(1);

    my $line = <$fh>;
    if (!defined($line)) {
        die "Failed to get SID from Samba net command";
    }

    my ($sid) = ($line =~ m/^SID for domain \S+ is: (\S+)$/);
    if (!defined($sid)) {
        die "Samba net command returns invalid output: $line";
    }

    return $sid;
}

But there is no netx program in Debian.  But "net getLocalSid" work.
Try to replace "$samba_bindir/netx" with "$samba_bindir/net" in
/usr/share/perl5/smbldap_tools.pm and see if it make a difference?

-- 
Happy hacking
Petter Reinholdtsen


Reply to: