Exchanging the

setgrent;
push @gids, $gid while defined($gid = (getgrent)[2]);
endgrent;

loop with something similar to this

my $id = $min;
while (defined(getpwuid($id))) $id++;
return $id;

has probably the already mentioned effect of slowing down when using
"files" NSS. But if the case is "slow vs fails because the LDAP server
doesn't even return all wanted values" slow code is acceptable.

But we still need to consider that adduser isn't the right tool if you
use LDAP (see #294579).

Joerg

-- 
Was denen einen ihr Watergate, ist den anderen ihr Firstgate.
- Thomas Bliessner, <[EMAIL PROTECTED]>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to