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
908d01ed
Commit
908d01ed
authored
Mar 09, 2016
by
Côme Chilliet
Browse files
Fixes
#4515
--migrate-dns should now active DNS tab on DNS servers
parent
3e6a5333
Changes
1
Hide whitespace changes
Inline
Side-by-side
contrib/bin/fusiondirectory-setup
View file @
908d01ed
...
...
@@ -1311,9 +1311,10 @@ sub migrate_dns {
}
else
{
if
(
ask_yn_question
("
Move these entries to the DNS branch (
$dnsrdn
)?
"))
{
foreach
my
$entrydn
(
@baddns
)
{
$entrydn
=~
m/^([^,]+),.+$systemrdn,(.+)$/
or
die
"
Could not parse dn
"
.
$entrydn
.
"
\n
";
$entrydn
=~
m/^([^,]+),
(
.+$systemrdn,(.+)
)
$/
or
die
"
Could not parse dn
"
.
$entrydn
.
"
\n
";
my
$rdn
=
$
1
;
my
$entrybase
=
$
2
;
my
$systemdn
=
$
2
;
my
$entrybase
=
$
3
;
if
(
!
branch_exists
(
$ldap
,
"
$dnsrdn
,
$entrybase
"))
{
create_branch
(
$ldap
,
$entrybase
,
$dnsrdn
);
}
...
...
@@ -1361,6 +1362,15 @@ 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
'
}
);
$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