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
fcbd9671
Commit
fcbd9671
authored
Mar 08, 2016
by
Côme Chilliet
Browse files
Fixes
#4515
--migrate-dns now fixes DN of the entries
parent
648998fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
contrib/bin/fusiondirectory-setup
View file @
fcbd9671
...
...
@@ -1336,10 +1336,10 @@ sub migrate_dns {
@entries
=
$mesg
->
entries
;
foreach
my
$entry
(
@entries
)
{
$entry
->
dn
()
=~
m/^([^,]+),(relativeDomainName=[^,]+),$zoneDn$/
or
die
"
Could not parse dn
"
.
$entry
->
dn
()
.
"
\n
"
;
$entry
->
dn
()
=~
m/^([^,]+),(relativeDomainName=[^,]+),$zoneDn$/
or
next
;
$rdn
=
$
1
;
my
$relativeDomainName
=
$
2
;
if
(
$rdn
==
$relativeDomainName
)
{
if
(
$rdn
eq
$relativeDomainName
)
{
my
%replace
=
();
foreach
my
$attr
(
@
{
$entry
->
attributes
()})
{
$replace
{
$attr
}
=
$entry
->
get_value
(
$attr
,
asref
=>
1
)
...
...
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