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
ee385c93
Commit
ee385c93
authored
May 31, 2006
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 320751: LDAP: Ability to have Bugzilla use the LDAP username directly as the Bugzilla username
Patch By guillomovitch@zarb.org r=mkanat, a=myk
parent
f3254c63
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
18 deletions
+29
-18
LDAP.pm
Bugzilla/Auth/Verify/LDAP.pm
+10
-5
installation.xml
docs/xml/installation.xml
+13
-11
ldap.html.tmpl
template/en/default/admin/params/ldap.html.tmpl
+6
-2
No files found.
Bugzilla/Auth/Verify/LDAP.pm
View file @
ee385c93
...
...
@@ -86,13 +86,18 @@ sub check_credentials {
my
$user_entry
=
$detail_result
->
shift_entry
;
my
$mail_attr
=
Param
(
"LDAPmailattribute"
);
if
(
!
$user_entry
->
exists
(
$mail_attr
))
{
return
{
failure
=>
AUTH_ERROR
,
error
=>
"ldap_cannot_retreive_attr"
,
details
=>
{
attr
=>
$mail_attr
}
};
if
(
$mail_attr
)
{
if
(
!
$user_entry
->
exists
(
$mail_attr
))
{
return
{
failure
=>
AUTH_ERROR
,
error
=>
"ldap_cannot_retreive_attr"
,
details
=>
{
attr
=>
$mail_attr
}
};
}
$params
->
{
bz_username
}
=
$user_entry
->
get_value
(
$mail_attr
);
}
else
{
$params
->
{
bz_username
}
=
$username
;
}
$params
->
{
bz_username
}
=
$user_entry
->
get_value
(
$mail_attr
);
$params
->
{
realname
}
||=
$user_entry
->
get_value
(
"displayName"
);
$params
->
{
realname
}
||=
$user_entry
->
get_value
(
"cn"
);
...
...
docs/xml/installation.xml
View file @
ee385c93
<!-- <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"> -->
<!-- $Id: installation.xml,v 1.11
8 2006/04/30 20:35:15 lpsolit%gmail.com
Exp $ -->
<!-- $Id: installation.xml,v 1.11
9 2006/05/30 21:17:34 mkanat%bugzilla.org
Exp $ -->
<chapter
id=
"installing-bugzilla"
>
<title>
Installing Bugzilla
</title>
...
...
@@ -1320,16 +1320,18 @@ c:\perl\bin\perl.exe -xc:\bugzilla -wT "%s" %s
you need to deal with user ID (e.g assigning a bug) use the email
address. The LDAP authentication builds on top of this scheme, rather
than replacing it. The initial log in is done with a username and
password for the LDAP directory. This then fetches the email address
from LDAP and authenticates seamlessly in the standard Bugzilla
authentication scheme using this email address. If an account for this
address already exists in your Bugzilla system, it will log in to that
account. If no account for that email address exists, one is created at
the time of login. (In this case, Bugzilla will attempt to use the
"displayName" or "cn" attribute to determine the user's full name.)
After authentication, all other user-related tasks are still handled by
email address, not LDAP username. You still assign bugs by email
address, query on users by email address, etc.
password for the LDAP directory. Bugzilla tries to bind to LDAP using
those credentials, and if successful, try to map this account to a
Bugzilla account. If a LDAP mail attribute is defined, the value of this
attribute is used, otherwise emailsuffix parameter is appended to LDAP
username to form a full email adress. If an account for this address
already exists in your Bugzilla system, it will log in to that account.
If no account for that email address exists, one is created at the time
of login. (In this case, Bugzilla will attempt to use the "displayName"
or "cn" attribute to determine the user's full name.) After
authentication, all other user-related tasks are still handled by email
address, not LDAP username. You still assign bugs by email address, query
on users by email address, etc.
</para>
<caution>
...
...
template/en/default/admin/params/ldap.html.tmpl
View file @
ee385c93
...
...
@@ -39,8 +39,12 @@
LDAPuidattribute => "The name of the attribute containing the user's login name.",
LDAPmailattribute => "The name of the attribute of a user in your directory that " _
"contains the email address.",
LDAPmailattribute => "The name of the attribute of a user in your " _
"directory that contains the email address, to be " _
"used as $terms.Bugzilla username. If this parameter " _
"is empty, $terms.Bugzilla will use the LDAP username"_
" as the $terms.Bugzilla username. You may also want" _
" to set the \"emailsuffix\" parameter, in this case.",
LDAPfilter => "LDAP filter to AND with the <tt>LDAPuidattribute</tt> for " _
"filtering the list of valid users." }
...
...
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