Note, our script causes two warnings to show up:

  root@tjener:/etc# ./samba/smbldap-machineadd-gosa -t0 -w "floffa"
  Use of uninitialized value $encoding in string eq at 
/usr/share/perl5/smbldap_tools.pm line 1387.
  Use of uninitialized value $encoding in string eq at 
/usr/share/perl5/smbldap_tools.pm line 1387.
  root@tjener:/etc# 

It is caused by these utf8Encode() calls in
/etc/samba/smbldap-machineadd-gosa:

  $givenName = ( utf8Encode( $Options{'N'} ) || $userName );
  $userSN    = ( utf8Encode( $Options{'S'} ) || $userName );

When the options are not used, the function is called with no
argument, triggering the warning.  Perhaps we should rewrite it for
wheezy to avoid the warnings?

-- 
Happy hacking
Petter Reinholdtsen


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to