Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
glpi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
GLPI
glpi
Commits
8b4507af
Commit
8b4507af
authored
May 09, 2019
by
Cédric Anne
Committed by
Johan Cwiklinski
May 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix undefined action in LDAP sync command; see #5860
parent
3b53a092
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
inc/authldap.class.php
inc/authldap.class.php
+1
-1
No files found.
inc/authldap.class.php
View file @
8b4507af
...
@@ -1845,7 +1845,7 @@ class AuthLDAP extends CommonDBTM {
...
@@ -1845,7 +1845,7 @@ class AuthLDAP extends CommonDBTM {
'timestamp'
=>
$user_infos
[
$userfound
[
$field_for_sync
]][
'timestamp'
],
'timestamp'
=>
$user_infos
[
$userfound
[
$field_for_sync
]][
'timestamp'
],
'date_sync'
=>
$tmpuser
->
fields
[
'date_sync'
],
'date_sync'
=>
$tmpuser
->
fields
[
'date_sync'
],
'dn'
=>
$user
[
'user_dn'
]];
'dn'
=>
$user
[
'user_dn'
]];
}
else
if
((
$values
[
'
action
'
]
==
self
::
ACTION_ALL
)
}
else
if
((
$values
[
'
mode
'
]
==
self
::
ACTION_ALL
)
||
((
$ldap_users
[
$user
[
$field_for_db
]]
-
strtotime
(
$user
[
'date_sync'
]))
>
0
))
{
||
((
$ldap_users
[
$user
[
$field_for_db
]]
-
strtotime
(
$user
[
'date_sync'
]))
>
0
))
{
//If entry was modified or if script should synchronize all the users
//If entry was modified or if script should synchronize all the users
$glpi_users
[]
=
[
'id'
=>
$user
[
'id'
],
$glpi_users
[]
=
[
'id'
=>
$user
[
'id'
],
...
...
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