helpsmbldap-tools - Support: sr #2901, Possible typo in...

Show feedback again

sr #2901: Possible typo in "$samba_bindir/netx" ? (with patch)

Submitted by:  None
Submitted on:  Mon Apr 16 16:19:59 2012  
Category: NonePriority: 5 - Normal
Severity: 4 - ImportantStatus: Done
Privacy: PublicAssigned to: None
Originator Email: -unavailable-Open/Closed: Closed
Operating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Sun Mar 27 17:19:44 2016, comment #1:

Fixed in version 0.9.9.

Sorry for my late reply.

SATOH Fumiyasu <fumiyas>
Project Member
Mon Apr 16 16:19:59 2012, original submission:


Running smbldap-tools 0.9.7 on Ubuntu 12.04, and get the follow error when trying to run smbldap-passwd:
---- start ----
"Use of qw(...) as parentheses is deprecated at /usr/share/perl5/ line 1423, <DATA> line 522.
Can't exec "/usr/bin/netx": No such file or directory at /usr/share/perl5/ line 245.
Failed to get SID from Samba net command at /usr/share/perl5/ line 249.
Compilation failed in require at /usr/sbin/smbldap-passwd line 29.
BEGIN failed--compilation aborted at /usr/sbin/smbldap-passwd line 29.
---- end ----

A Google search turns up someone else with the same problem:

I think this is caused by a typo in the getLocalSID function in /usr/share/perl5/
open my $fh, "-|" or exec("$samba_bindir/netx", "getlocalsid") || exit(1);

Most Samba installations have the "net" command as "/usr/bin/net" because there is an Java application called netx. Is there any reason why the Samba "net" command needs to be called as "netx" instead of just "net"?

I've checked the SVN trunk version of this file and it still has

Attached is a simple patch file to change netx to net.



(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files
file #15582:  smbldap-tools_netx.patch added by None (432B - text/x-patch)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by fumiyas (Posted a comment)
  • -unavailable- added by None (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun Mar 27 17:19:44 2016fumiyasStatusNone=>Done
    Mon Apr 16 16:19:59 2012NoneAttached File-=>Added smbldap-tools_netx.patch, #15582
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup