Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
56ccd587
Commit
56ccd587
authored
Jun 27, 2008
by
eseyman%linagora.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 441503: Need update on contrib/syncLDAP.pl
Patch by A.A. Shimono <shimono@mozilla.gr.jp> r=manu a=LpSolit
parent
05f7de70
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
syncLDAP.pl
contrib/syncLDAP.pl
+11
-4
No files found.
contrib/syncLDAP.pl
View file @
56ccd587
...
...
@@ -96,12 +96,19 @@ if ($LDAPserver eq "") {
print
"No LDAP server defined in bugzilla preferences.\n"
;
exit
;
}
my
$LDAPport
=
"389"
;
# default LDAP port
if
(
$LDAPserver
=~
/:/
)
{
(
$LDAPserver
,
$LDAPport
)
=
split
(
":"
,
$LDAPserver
);
my
$LDAPconn
;
if
(
$LDAPserver
=~
/\:\/\//
)
{
# if the "LDAPserver" parameter is in uri scheme
$LDAPconn
=
Net::
LDAP
->
new
(
$LDAPserver
,
version
=>
3
);
}
else
{
my
$LDAPport
=
"389"
;
# default LDAP port
if
(
$LDAPserver
=~
/:/
)
{
(
$LDAPserver
,
$LDAPport
)
=
split
(
":"
,
$LDAPserver
);
}
$LDAPconn
=
Net::
LDAP
->
new
(
$LDAPserver
,
port
=>
$LDAPport
,
version
=>
3
);
}
my
$LDAPconn
=
Net::
LDAP
->
new
(
$LDAPserver
,
port
=>
$LDAPport
,
version
=>
3
);
if
(
!
$LDAPconn
)
{
print
"Connecting to LDAP server failed. Check LDAPserver setting.\n"
;
exit
;
...
...
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