Skip Menu |

This queue is for tickets about the Net-LDAP-Server-Test CPAN distribution.

Report information
The Basics
Id: 58337
Status: resolved
Priority: 0/
Queue: Net-LDAP-Server-Test

People
Owner: Nobody in particular
Requestors: tedkat [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.09
Fixed in: (no value)



Subject: Line noise when testing
During testing with active_directory set I see a lot of these ... Use of uninitialized value $gid in concatenation (.) or string at /usr/lib/perl5/site_perl/5.10.0/Net/LDAP/Server/Test.pm line 539 For our testing we cannot use attribute primaryGroupID. Attached patch just eliminates testing line noise.
Subject: Net-LDAP-Server-Test.patch
diff -Naur Net-LDAP-Server-Test-0.09.orig/lib/Net/LDAP/Server/Test.pm Net-LDAP-Server-Test-0.09/lib/Net/LDAP/Server/Test.pm --- Net-LDAP-Server-Test-0.09.orig/lib/Net/LDAP/Server/Test.pm 2010-02-13 11:25:59.000000000 -0600 +++ Net-LDAP-Server-Test-0.09/lib/Net/LDAP/Server/Test.pm 2010-06-11 09:54:27.141126356 -0500 @@ -536,6 +536,7 @@ # users my $gid = $entry->get_value('primaryGroupID'); + $gid = '1234' unless ( defined $gid ); ( my $user_sid_str = _get_server_sid_string() ) =~ s/-1234$/-$gid/;
Thanks. Patch applied and 0.10 uploaded to PAUSE.