I see no reasons why we should limit username lenght while checking
authorSimo Sorce <idra@samba.org>
Fri, 14 Dec 2001 18:49:02 +0000 (18:49 +0000)
committerSimo Sorce <idra@samba.org>
Fri, 14 Dec 2001 18:49:02 +0000 (18:49 +0000)
see bug 22130

jeremy, probably this should be fixed also in 2_2

source/lib/username.c

index 111a757e4ec97eba2dd0e31ec90897e53d1db710..3562ab3b958a68f57a114c83b645f488fe10bfc3 100644 (file)
@@ -551,10 +551,6 @@ static struct passwd *uname_string_combinations2(char *s,int offset,struct passw
        int i;
        struct passwd *ret;
 
-#ifdef PASSWORD_LENGTH
-       len = MIN(len,PASSWORD_LENGTH);
-#endif
-
        if (N <= 0 || offset >= len)
                return(fn(s));