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
agallavardin
fusiondirectory-plugins
Commits
22729de6
Commit
22729de6
authored
May 27, 2015
by
Côme Bernigaud
Committed by
Benoit Mortier
May 27, 2015
Browse files
Fixes #3785 TXT records are now authorized in global records
parent
6fc8f14f
Changes
1
Hide whitespace changes
Inline
Side-by-side
dns/admin/systems/services/dns/class_DNS.inc
View file @
22729de6
...
...
@@ -83,12 +83,12 @@ class DNS
$ldap
->
cd
(
$config
->
current
[
'BASE'
]);
/* Not all records are allowed within a zone entry */
$SkipRecords
=
array
(
"
tXTRecord"
,
"
cNAMERecord"
,
"pTRRecord"
);
$SkipRecords
=
array
(
"cNAMERecord"
,
"pTRRecord"
);
/* Special sOArecords */
$sOAREcords
=
array
(
"0"
=>
"sOAprimary"
,
"1"
=>
"sOAmail"
,
"2"
=>
"sOAserial"
,
"3"
=>
"sOArefresh"
,
"4"
=>
"sOAretry"
,
"5"
=>
"sOAexpire"
,
"6"
=>
"sOAttl"
);
/* Create temp
a
lte for all fetched zone Data */
/* Create templ
a
te for all fetched zone Data */
$ZoneBase
=
array
();
$ZoneBase
[
'exists'
]
=
FALSE
;
...
...
@@ -139,11 +139,10 @@ class DNS
$Zones
[
$zoneName
][
$name
]
=
""
;
}
}
}
// END
E
SOA Record
}
// END SOA Record
/* Get record attributes */
foreach
(
DNS
::
$RecordTypes
as
$name
=>
$value
)
{
/* Skip some attributes */
if
(
in_array
(
$name
,
$SkipRecords
))
{
continue
;
...
...
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