Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
ldap-3400728
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
ldap-3400728
Commits
2f28760e
Commit
2f28760e
authored
12 years ago
by
Kristopher Graham
Committed by
John Barclay
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#1733828
by thesaunterer. Patch by thesaunterer
parent
9d04ae71
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ldap_profile/ldap_profile.module
+7
-4
7 additions, 4 deletions
ldap_profile/ldap_profile.module
with
7 additions
and
4 deletions
ldap_profile/ldap_profile.module
+
7
−
4
View file @
2f28760e
...
...
@@ -83,16 +83,19 @@ function ldap_profile_user_login(&$edit, $account) {
module_load_include
(
'functions.inc'
,
'ldap_servers'
);
if
(
!
empty
(
$account
))
{
$ldapuser
=
ldap_servers_get_user_ldap_data
(
$account
);
if
(
!
empty
(
$ldapuser
)
&&
!
empty
(
$ldapuser
[
'dn'
]))
{
$dn
=
$ldapuser
[
'dn'
];
}
}
if
(
is_array
(
$account
->
data
)
&&
array_key_exists
(
"ldap_authentication"
,
$account
->
data
))
{
$authdata
=
$account
->
data
[
"ldap_authentication"
];
if
(
array_key_exists
(
'init'
,
$authdata
))
{
$authinit
=
$authdata
[
'init'
];
if
(
isset
(
$servers
[
$authinit
[
'sid'
]]))
{
$server
=
$servers
[
$authinit
[
'sid'
]];
$ldapuser
=
TRUE
;
if
(
array_key_exists
(
'dn'
,
$authinit
))
{
$dn
=
$authinit
[
'dn'
];
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment