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
ac25adce
Commit
ac25adce
authored
Mar 09, 2016
by
Côme Chilliet
Browse files
Fixes
#4515
Fixed a few problems in --migrate-dns
parent
585efce3
Changes
1
Hide whitespace changes
Inline
Side-by-side
contrib/bin/fusiondirectory-setup
View file @
ac25adce
...
...
@@ -1341,12 +1341,13 @@ sub migrate_dns {
my
$relativeDomainName
=
$
2
;
if
(
$rdn
eq
$relativeDomainName
)
{
my
%replace
=
();
foreach
my
$attr
(
@
{
$entry
->
attributes
()})
{
my
@attributes
=
$entry
->
attributes
();
foreach
my
$attr
(
@attributes
)
{
$replace
{
$attr
}
=
$entry
->
get_value
(
$attr
,
asref
=>
1
)
}
$result
=
$ldap
->
modify
(
"
$rdn
,
$zoneDn
",
replace
=>
%replace
replace
=>
\
%replace
);
$result
->
code
&&
die
"
Migration of DNS zone subentry failed, LDAP error:
"
.
$result
->
error
.
"
\n
";
$result
=
$ldap
->
delete
(
$entry
->
dn
());
...
...
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