Hi,
These errors come from undefined variables.
Some values are necessary, although they are not in the default
configuration file (/etc/smbldap-tools/smbldap.conf) and this is not
mentioned in the documentation (i.e. smbldap-useradd man page) where it
is written that only the login is compulsory.
There are:
* scope (scope="sub" seems is good default value to me)
* defaultUserGid (defaultUserGid="513" is the default gid for a Samba
domain users)
* gecos; I added in /usr/sbin/smbldap-useradd:
$config{userGecos} = $userName if (!defined($config{userGecos}));
* gid for Computer's accounts; I added in
/usr/share/perl5/smbldap_tools.pm the default gid for a Samba computer
account is 515:
$gid=515 if (!$gid);
> sub add_posix_machine
> {
> my ($user,$uid,$gid,$wait) = @_;
> $gid=515 if (!$gid);
> if (!defined $wait) {
> $wait=0;
> }
Another possibility is to make these values compulsory (documentation
needs to be changed and the script should exit with a message if the
value is not given as an argument).
BTW, tabbing is quite strange in /usr/share/perl5/smbldap_tools.pm
Regards,
Yann
--
Network & System Engineer
Goelaan SA, Switzerland
Tel. +41-22-960 98 20
Fax +41-22-960 98 21
http://www.goelaan.ch
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]