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
c98eee6c
Commit
c98eee6c
authored
Mar 09, 2016
by
Côme Chilliet
Browse files
Fixes
#4515
--migrate-dns should now active DNS tab on DNS servers
parent
9220ea3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
contrib/bin/fusiondirectory-setup
View file @
c98eee6c
...
...
@@ -1363,13 +1363,32 @@ sub migrate_dns {
$result
->
code
&&
die
"
Migration of DNS zone subentry failed, LDAP error:
"
.
$result
->
error
.
"
\n
";
}
$result
=
$ldap
->
modify
(
"
$systemdn
",
add
=>
{
'
fdDNSZoneDn
'
=>
'
zoneName=fd.org.,ou=dns,dc=opensides,dc=be
',
'
objectClass
'
=>
'
fdDNSHost
'
}
$mesg
=
$ldap
->
search
(
base
=>
$systemdn
,
scope
=>
'
base
',
filter
=>
'
(objectClass=*)
'
);
$mesg
->
code
&&
die
$mesg
->
error
;
my
$system_entry
=
$mesg
->
shift_entry
;
$system_entry
->
get_value
('
objectClass
');
my
@classes
=
$system_entry
->
get_value
('
objectClass
');
if
(
grep
{
$_
eq
'
fdDNSHost
'}
@classes
)
{
$result
=
$ldap
->
modify
(
"
$systemdn
",
add
=>
{
'
fdDNSZoneDn
'
=>
$zoneDn
,
}
);
}
else
{
$result
=
$ldap
->
modify
(
"
$systemdn
",
add
=>
{
'
fdDNSZoneDn
'
=>
$zoneDn
,
'
objectClass
'
=>
'
fdDNSHost
'
}
);
}
$result
->
code
&&
print
"
Could not add DNS tab on
$systemdn
, LDAP error:
"
.
$result
->
error
.
"
\n
You'll need to activate it yourself
\n
";
}
}
...
...
bmortier
@bmortier
mentioned in issue
#1438 (closed)
·
Sep 02, 2017
mentioned in issue
#1438 (closed)
mentioned in issue #1438
Toggle commit list
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