[Samba] 3.0.1/Solaris 9 - smbldap & dots in usernames
Jérôme Tournier
jerome.tournier at idealx.com
Tue Dec 30 11:03:01 GMT 2003
Le Tue, Dec 30, 2003 at 09:31:17PM +1100, Chew, Darren a ecrit:
> Is it possible to vampire across dots in usernames? I got over 1000
> accounts with dots in them eg. <firstname>.<lastname>
> The smbldap-tools (version 0.8.2) don't seem to like adding users and
> groups with dots in them.
Yes, you are right. If you really need this, you can use this patch to
correct the problem. But i think that windows does not like that !
--
Jérôme Tournier IDEALX SAS
Administrateur Systèmes 15-17 Avenue de Segur
jerome.tournier at IDEALX.com 75007 PARIS
Tel.: 01 44 42 00 53 Fax.: 01 44 42 00 01
gpg key ID: 0xDA962B24 (pgp.mit.edu)
-------------- next part --------------
--- smbldap-useradd.pl.orig 2003-12-30 11:46:47.000000000 +0100
+++ smbldap-useradd.pl 2003-12-30 11:46:51.000000000 +0100
@@ -128,7 +128,7 @@ if (!defined($userGidNumber)) {
my $userName = $ARGV[0];
# untaint $userName (can finish with one or two $)
-if ($userName =~ /^([\w -]+\$?)$/) {
+if ($userName =~ /^([\w -.]+\$?)$/) {
$userName = $1;
} else {
print "$0: illegal username\n";
More information about the samba
mailing list