Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
best-practical
rt-authen-externalauth
Commits
56f4748a
Commit
56f4748a
authored
Jun 06, 2012
by
Ruslan Zakirov
Browse files
create our generate_port method
refactoring in RT::Test was lost somewhere
parent
6f2516f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
lib/RT/Authen/ExternalAuth/Test.pm
lib/RT/Authen/ExternalAuth/Test.pm
+5
-1
No files found.
lib/RT/Authen/ExternalAuth/Test.pm
View file @
56f4748a
...
...
@@ -53,7 +53,7 @@ my %ldap;
sub
bootstrap_ldap_server
{
my
$self
=
shift
;
my
$port
=
RT::
Test
->
generate_port
;
my
$port
=
$self
->
generate_port
;
require
Net::LDAP::Server::
Test
;
my
$server
=
Net::LDAP::Server::
Test
->
new
(
$port
,
auto_schema
=>
1
);
...
...
@@ -97,6 +97,10 @@ sub bootstrap_ldap_basics {
return
(
$server
,
$client
);
}
sub
generate_port
{
return
1024
+
int
rand
(
10000
)
+
$$
%
1024
;
}
sub
add_ldap_user
{
my
$self
=
shift
;
my
%args
=
@_
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment