Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
agallavardin
fusiondirectory-plugins
Commits
e27505ff
Commit
e27505ff
authored
9 years ago
by
Côme Bernigaud
Committed by
Benoit Mortier
9 years ago
Browse files
Options
Download
Patches
Plain Diff
Fixes #3929 Do not activate samba tab automatically
parent
0f341e80
1.4-dev
1.2
1.2.3-fixes
1.3-fixes
6017-create-a-plugin-for-managing-groupofuniquename
master
fusiondirectory-1.3
fusiondirectory-1.2.3
fusiondirectory-1.2.2
fusiondirectory-1.2.1
fusiondirectory-1.2
fusiondirectory-1.1.1
fusiondirectory-1.1
fusiondirectory-1.0.20
fusiondirectory-1.0.19
fusiondirectory-1.0.18
fusiondirectory-1.0.17
fusiondirectory-1.0.16
fusiondirectory-1.0.15
fusiondirectory-1.0.14
fusiondirectory-1.0.13
fusiondirectory-1.0.12
fusiondirectory-1.0.11
fusiondirectory-1.0.10
fusiondirectory-1.0.9.3
fusiondirectory-1.0.9.2
fusiondirectory-1.0.9.1
fusiondirectory-1.0.9
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
samba/personal/samba/class_sambaAccount.inc
+13
-6
samba/personal/samba/class_sambaAccount.inc
with
13 additions
and
6 deletions
+13
-6
samba/personal/samba/class_sambaAccount.inc
+
13
−
6
View file @
e27505ff
...
...
@@ -508,13 +508,20 @@ class sambaAccount extends simplePlugin
}
else
{
$ldap
->
fetch
();
$tabGroup
=
objects
::
open
(
$ldap
->
getDN
(),
'posixGroup'
);
$tabGroup
->
by_object
[
'sambaGroup'
]
->
is_account
=
TRUE
;
if
(
$tabGroup
->
by_object
[
'sambaGroup'
]
->
sambaSID
==
""
)
{
$tabGroup
->
by_object
[
'sambaGroup'
]
->
sambaDomainName
=
$this
->
sambaDomainName
;
$tabGroup
->
by_object
[
'sambaGroup'
]
->
smbgroup
=
TRUE
;
$tabGroup
->
save
();
if
(
$tabGroup
->
by_object
[
'sambaGroup'
]
->
is_account
)
{
if
(
$tabGroup
->
by_object
[
'sambaGroup'
]
->
sambaSID
==
""
)
{
$tabGroup
->
by_object
[
'sambaGroup'
]
->
sambaDomainName
=
$this
->
sambaDomainName
;
$tabGroup
->
by_object
[
'sambaGroup'
]
->
smbgroup
=
TRUE
;
$tabGroup
->
save
();
}
$this
->
attrs
[
'sambaPrimaryGroupSID'
]
=
$tabGroup
->
by_object
[
'sambaGroup'
]
->
sambaSID
;
}
else
{
msg_dialog
::
display
(
_
(
"Warning"
),
_
(
"Cannot convert primary group to samba group: group samba tab is disabled!"
),
WARNING_DIALOG
);
}
$this
->
attrs
[
'sambaPrimaryGroupSID'
]
=
$tabGroup
->
by_object
[
'sambaGroup'
]
->
sambaSID
;
}
}
...
...
This diff is collapsed.
Click to expand it.
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!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets