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-plugins
Commits
636d979a
Commit
636d979a
authored
Jan 15, 2014
by
Côme Bernigaud
Committed by
Benoit Mortier
Jan 15, 2014
Browse files
Fixes:
#2945
Default values are now handled by sambaMungedDial
parent
694b9039
Changes
1
Hide whitespace changes
Inline
Side-by-side
samba/personal/samba/class_sambaAccount.inc
View file @
636d979a
...
...
@@ -35,6 +35,15 @@ class MungedAttribute extends Attribute
$this
->
flagList
=
$flagList
;
}
protected
function
loadAttrValue
(
$attrs
)
{
if
(
isset
(
$attrs
[
$this
->
getLdapName
()]))
{
$this
->
setValue
(
$this
->
inputValue
(
$attrs
[
$this
->
getLdapName
()][
0
]));
}
else
{
$this
->
resetToDefault
();
}
}
function
setParent
(
&
$plugin
)
{
$this
->
plugin
=
$plugin
;
...
...
@@ -54,10 +63,9 @@ class MungedAttribute extends Attribute
function
setValue
(
$value
)
{
if
(
empty
(
$value
))
{
return
;
if
(
!
empty
(
$value
))
{
$this
->
mungedObject
->
load
(
$value
)
;
}
$this
->
mungedObject
->
load
(
$value
);
if
(
is_object
(
$this
->
plugin
))
{
foreach
(
$this
->
attrList
as
$attr
)
{
if
(
isset
(
$this
->
mungedObject
->
ctx
[
$attr
]))
{
...
...
@@ -185,7 +193,7 @@ class sambaAccount extends simplePlugin
'attrs'
=>
array
(
new
BooleanAttribute
(
_
(
'Allow login on terminal server'
),
_
(
'Allow login on terminal server'
),
'TsLogin'
,
FALSE
,
TRUE
'TsLogin'
,
FALSE
),
new
SelectAttribute
(
_
(
'Home directory drive'
),
_
(
'Letter for the home drive'
),
...
...
@@ -204,7 +212,7 @@ class sambaAccount extends simplePlugin
),
new
BooleanAttribute
(
_
(
'Inherit client config'
),
_
(
'Inherit client configuration'
),
'InheritMode'
,
FALSE
,
TRUE
'InheritMode'
,
FALSE
),
new
StringAttribute
(
_
(
'Initial progam'
),
_
(
'Program to start after connecting'
),
...
...
@@ -231,15 +239,15 @@ class sambaAccount extends simplePlugin
),
new
BooleanAttribute
(
_
(
'Connect client drives at logon'
),
_
(
'Drive to connect after login'
),
'ConnectClientDrives'
,
FALSE
,
TRUE
'ConnectClientDrives'
,
FALSE
),
new
BooleanAttribute
(
_
(
'Connect client printers at logon'
),
_
(
'Printers to connect after login'
),
'ConnectClientPrinters'
,
FALSE
,
TRUE
'ConnectClientPrinters'
,
FALSE
),
new
BooleanAttribute
(
_
(
'Default to main client printer'
),
_
(
'Default printer for this client'
),
'DefaultPrinter'
,
FALSE
,
TRUE
'DefaultPrinter'
,
FALSE
),
new
SelectAttribute
(
_
(
'Shadowing'
),
_
(
'Shadowing'
),
...
...
Alex-31
@Alex-31
mentioned in issue
#940 (closed)
·
Sep 02, 2017
mentioned in issue
#940 (closed)
mentioned in issue #940
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