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
d89b3d56
Commit
d89b3d56
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
dbd4b15e
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/functions.inc
View file @
d89b3d56
...
@@ -2919,6 +2919,9 @@ function change_password ($dn, $password, $hash = "")
...
@@ -2919,6 +2919,9 @@ function change_password ($dn, $password, $hash = "")
function
lock_samba_account
(
$mode
,
$attrs
)
function
lock_samba_account
(
$mode
,
$attrs
)
{
{
global
$config
;
global
$config
;
if
(
!
isset
(
$attrs
[
'sambaNTPassword'
][
0
]))
{
return
array
();
}
$modify
=
array
(
'sambaNTPassword'
=>
$attrs
[
'sambaNTPassword'
][
0
]);
$modify
=
array
(
'sambaNTPassword'
=>
$attrs
[
'sambaNTPassword'
][
0
]);
if
(
$config
->
get_cfg_value
(
"sambaGenLMPassword"
,
"FALSE"
)
==
"TRUE"
)
{
if
(
$config
->
get_cfg_value
(
"sambaGenLMPassword"
,
"FALSE"
)
==
"TRUE"
)
{
$modify
[
'sambaLMPassword'
]
=
$attrs
[
'sambaLMPassword'
][
0
];
$modify
[
'sambaLMPassword'
]
=
$attrs
[
'sambaLMPassword'
][
0
];
...
...
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