samba-users July 2010 archive
Main Archive Page > Month Archives  > samba-users archives
samba-users: Re: [Samba] wbinfo -u and -g work, wbinfo -s works

Re: [Samba] wbinfo -u and -g work, wbinfo -s works only for some users

From: Michael Wood <esiotrot_at_nospam>
Date: Tue Jul 27 2010 - 19:00:48 GMT
To: podpora@agenda.si

On 27 July 2010 10:29, Danilo Godec <danilo.godec@agenda.si> wrote:
> While my situation is a bit different (no AD server, Samba is PDC for
> the domain, using OpenLDAP for users, groups, ...), I tried running your
> Perl script in 'Wizard' mode, but it fails (using perl 5.8.3):
>
> # ./UID2SID.pl
> syntax error at ./UID2SID.pl line 204, near "= ;"
> syntax error at ./UID2SID.pl line 239, near "= ;"
> syntax error at ./UID2SID.pl line 380, near "= ;"
> syntax error at ./UID2SID.pl line 404, near "= ) "
> syntax error at ./UID2SID.pl line 410, near "}"
> Execution of ./UID2SID.pl aborted due to compilation errors.

It seems something was lost in translation :)

These errors appear to be because all instances of "<RES>" have been
stripped from the script you tried to run. Perhaps your browser got
rid of them somehow.

Anyway, the first one should be:
    my( @lines ) = <RES>;

where you seem to have:
    my( @lines ) = ;

The other ones I checked are similar.

Hope that helps.

-- Michael Wood <esiotrot@gmail.com> -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba