-u options fails with "Undefined subroutine &main::user_by_uid"

Bug #984810 reported by John Edwards on 2012-04-18
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
smbldap-tools (Ubuntu)
Undecided
Unassigned

Bug Description

Adding a user with the -u options for a specified UID fails because the user_by_uid function is not exported by the smbldap_tools.pm (or smbldap_tools.pl in original source code) library:

Example:
---- start ----
$ sudo /usr/sbin/smbldap-useradd -a -m -u 1099 test
Use of qw(...) as parentheses is deprecated at /usr/share/perl5/smbldap_tools.pm line 1423, <DATA> line 522.
Undefined subroutine &main::user_by_uid called at /usr/sbin/smbldap-useradd line 218.
---- end ----

There is a FreeBSD bug report with more detail here:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=161967

A simple one line patch already exists upstream here:
    http://svn.gna.org/viewcvs/smbldap-tools/trunk/smbldap_tools.pl?r1=123&r2=124

The deprecated parentheses is non-fatal and fixed by the previous patch:
    http://svn.gna.org/viewcvs/smbldap-tools/trunk/smbldap_tools.pl?r1=121&r2=123

The package in Debian unstable probably also has the same problems.

TJ (tj) wrote :

Marking as confirmed since it has also been reported on #ubuntu

<nicolegnu> I have ubuntu server 4.12 and the following error Use of qw (...) as parentheses is deprecated at / usr/share/perl5/smbldap_tools.pm line 1423, line 522 <DATA>

(Spanish native; actually means Ubuntu Server 12.04)

Changed in smbldap-tools (Ubuntu):
status: New → Triaged

Seems to be in version 0.9.7-1ubuntu1 on Ubuntu 14.04 beta1.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers