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
fd-plugins
Commits
0e7ec070
Unverified
Commit
0e7ec070
authored
Mar 27, 2019
by
Côme Chilliet
Browse files
✨
feat(samba) Add %passwordClear% support for sambaAccount hooks
issue #5938
parent
b2f81513
Changes
1
Hide whitespace changes
Inline
Side-by-side
samba/personal/samba/class_sambaAccount.inc
View file @
0e7ec070
...
...
@@ -621,6 +621,14 @@ class sambaAccount extends simplePlugin
$this
->
sambaSID
=
""
;
}
function
callHook
(
$cmd
,
array
$addAttrs
=
array
(),
&
$returnOutput
=
array
(),
&
$returnCode
=
NULL
)
{
$addAttrs
[
'passwordMethod'
]
=
$this
->
parent
->
getBaseObject
()
->
attributesAccess
[
'userPassword'
]
->
getMethod
();
$addAttrs
[
'userLocked'
]
=
$this
->
parent
->
getBaseObject
()
->
attributesAccess
[
'userPassword'
]
->
isLocked
();
$addAttrs
[
'passwordClear'
]
=
$this
->
parent
->
getBaseObject
()
->
attributesAccess
[
'userPassword'
]
->
getClear
();
return
parent
::
callHook
(
$cmd
,
$addAttrs
,
$returnOutput
,
$returnCode
);
}
/* Returns TRUE if this attribute should be asked in the creation by template dialog */
function
showInTemplate
(
$attr
,
$templateAttrs
)
{
...
...
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