Skip to content
GitLab
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
9398a0af
Commit
9398a0af
authored
Oct 01, 2014
by
Côme Bernigaud
Committed by
Benoit Mortier
Oct 01, 2014
Browse files
Fixes
#3387
Fixed locking when not a samba account
parent
cc9be50f
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/functions.inc
View file @
9398a0af
...
...
@@ -3156,6 +3156,9 @@ function generate_smb_nt_hash($password)
function
lock_samba_account
(
$mode
,
$attrs
)
{
global
$config
;
if
(
!
isset
(
$attrs
[
'sambaNTPassword'
][
0
]))
{
return
array
();
}
$modify
=
array
(
'sambaNTPassword'
=>
$attrs
[
'sambaNTPassword'
][
0
]);
if
(
$config
->
get_cfg_value
(
"sambaGenLMPassword"
,
"FALSE"
)
==
"TRUE"
)
{
$modify
[
'sambaLMPassword'
]
=
$attrs
[
'sambaLMPassword'
][
0
];
...
...
Côme Chilliet
@cchilliet
mentioned in issue #1128
·
Sep 02, 2017
mentioned in issue #1128
mentioned in issue #1128
Toggle commit list
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment