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
9ba60234
Commit
9ba60234
authored
Jun 02, 2006
by
lpsolit%gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 282687: LDAP: TLS Support - Patch by guillomovitch@zarb.org r=mkanat a=justdave
parent
2b9f5bf8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
0 deletions
+20
-0
LDAP.pm
Bugzilla/Auth/Verify/LDAP.pm
+8
-0
LDAP.pm
Bugzilla/Config/LDAP.pm
+6
-0
ldap.html.tmpl
template/en/default/admin/params/ldap.html.tmpl
+3
-0
code-error.html.tmpl
template/en/default/global/code-error.html.tmpl
+3
-0
No files found.
Bugzilla/Auth/Verify/LDAP.pm
View file @
9ba60234
...
...
@@ -164,6 +164,14 @@ sub ldap {
my
$conn_string
=
"$protocol://$server:$port"
;
$self
->
{
ldap
}
=
new
Net::
LDAP
(
$conn_string
)
||
ThrowCodeError
(
"ldap_connect_failed"
,
{
server
=>
$conn_string
});
# try to start TLS if needed
if
(
Param
(
"LDAPstarttls"
))
{
my
$mesg
=
$self
->
{
ldap
}
->
start_tls
();
ThrowCodeError
(
"ldap_start_tls_failed"
,
{
error
=>
$mesg
->
error
()
})
if
$mesg
->
code
();
}
return
$self
->
{
ldap
};
}
...
...
Bugzilla/Config/LDAP.pm
View file @
9ba60234
...
...
@@ -47,6 +47,12 @@ sub get_param_list {
},
{
name
=>
'LDAPstarttls'
,
type
=>
'b'
,
default
=>
0
},
{
name
=>
'LDAPbinddn'
,
type
=>
't'
,
default
=>
''
...
...
template/en/default/admin/params/ldap.html.tmpl
View file @
9ba60234
...
...
@@ -29,6 +29,9 @@
"(e.g. ldap.company.com, or ldap.company.com:portnum). " _
"Can be prefixed with ldap:// (default) or ldaps:// (for a secure connection).",
LDAPstartls => "Whether to require encrypted communication once normal " _
"LDAP connection achieved with the server.",
LDAPbinddn => "If your LDAP server requires that you use a binddn and password " _
"instead of binding anonymously, enter it here " _
"(e.g. cn=default,cn=user:password). " _
...
...
template/en/default/global/code-error.html.tmpl
View file @
9ba60234
...
...
@@ -270,6 +270,9 @@
[% ELSIF error == "ldap_connect_failed" %]
Could not connect to the LDAP server <code>[% server FILTER html %]</code>.
[% ELSIF error == "ldap_start_tls_failed" %]
Could not start TLS with LDAP server: <code>[% error FILTER html %]</code>.
[% ELSIF error == "ldap_search_error" %]
An error occurred while trying to search LDAP for
"[% username FILTER html %]":
...
...
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