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 16 Apr 2012 04:19:59 PM UTC  
 
Category: NonePriority: 5 - Normal
Severity: 4 - ImportantStatus: None
Privacy: PublicAssigned to: None
Originator Email: -unavailable-Open/Closed: Open
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.

 

Mon 16 Apr 2012 04:19:59 PM UTC, original submission:

Hi

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/smbldap_tools.pm line 1423, <DATA> line 522.
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 /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:
http://nixos.org/irc/logs/log.20111227

I think this is caused by a typo in the getLocalSID function in /usr/share/perl5/smbldap_tools.pm:
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
http://svn.gna.org/svn/smbldap-tools/trunk/smbldap_tools.pl

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

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

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 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.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 16 Apr 2012 04:19:59 PM UTCNoneAttached File-=>Added smbldap-tools_netx.patch, #15582
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup