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-plugins
Commits
a2cb34eb
Commit
a2cb34eb
authored
Jul 19, 2013
by
Côme Bernigaud
Committed by
Benoit Mortier
Jul 19, 2013
Browse files
Fixes:
#2574
when saving a windows workstations the uid is not stored
parent
41d75d87
Changes
1
Hide whitespace changes
Inline
Side-by-side
samba/admin/systems/samba/class_winstationGeneric.inc
View file @
a2cb34eb
...
...
@@ -179,7 +179,7 @@ class winstationGeneric extends simplePlugin
function
save_object
()
{
parent
::
save_object
();
$this
->
uid
=
$this
->
cn
;
$this
->
attributesAccess
[
'uid'
]
->
setValue
(
$this
->
attributesAccess
[
'cn'
]
->
getValue
())
;
}
function
resetCopyInfos
()
...
...
@@ -225,7 +225,7 @@ class winstationGeneric extends simplePlugin
function
prepare_save
()
{
$this
->
uid
=
$this
->
cn
;
$this
->
attributesAccess
[
'uid'
]
->
setValue
(
$this
->
attributesAccess
[
'cn'
]
->
getValue
())
;
parent
::
prepare_save
();
//verify that the $this->sambaSID exist and that it is correct
...
...
@@ -265,7 +265,7 @@ class winstationGeneric extends simplePlugin
function
compute_dn
()
{
$this
->
uid
=
$this
->
cn
;
$this
->
attributesAccess
[
'uid'
]
->
setValue
(
$this
->
attributesAccess
[
'cn'
]
->
getValue
())
;
return
'uid='
.
$this
->
uid
.
','
.
get_winstations_ou
()
.
$this
->
base
;
}
}
...
...
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