Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fusiondirectory
fusiondirectory
Commits
6954036c
Commit
6954036c
authored
Nov 17, 2014
by
Côme Bernigaud
Committed by
Benoit Mortier
Nov 17, 2014
Browse files
Fixes
#3458
not adding samba attributes when samba plugin is not there
parent
c3665962
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/functions.inc
View file @
6954036c
...
...
@@ -3051,15 +3051,17 @@ function change_password ($dn, $password, $mode = 0, $hash = "")
// Not for groups
if
(
$mode
==
0
)
{
if
(
$test
->
need_password
())
{
// Create SMB Password
$attrs
=
generate_smb_nt_hash
(
$password
);
}
else
{
$attrs
[
'sambaLMPassword'
]
=
array
();
$attrs
[
'sambaNTPassword'
]
=
array
();
$attrs
[
'sambaPwdLastSet'
]
=
array
();
$attrs
[
'sambaBadPasswordCount'
]
=
array
();
$attrs
[
'sambaBadPasswordTime'
]
=
array
();
if
(
class_available
(
'sambaAccount'
))
{
if
(
$test
->
need_password
())
{
// Create SMB Password
$attrs
=
generate_smb_nt_hash
(
$password
);
}
else
{
$attrs
[
'sambaLMPassword'
]
=
array
();
$attrs
[
'sambaNTPassword'
]
=
array
();
$attrs
[
'sambaPwdLastSet'
]
=
array
();
$attrs
[
'sambaBadPasswordCount'
]
=
array
();
$attrs
[
'sambaBadPasswordTime'
]
=
array
();
}
}
if
(
$shadow
!=
0
)
{
$attrs
[
'shadowLastChange'
]
=
$shadow
;
...
...
Write
Preview
Supports
Markdown
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