Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Ng
OpenLDAP
Commits
18f31148
Commit
18f31148
authored
24 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Working (but likely not robust) DNS SRV backend!
parent
fbb58dec
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
servers/slapd/back-dnssrv/request.c
+12
-2
12 additions, 2 deletions
servers/slapd/back-dnssrv/request.c
tests/data/slapd-dnssrv.conf
+16
-0
16 additions, 0 deletions
tests/data/slapd-dnssrv.conf
with
28 additions
and
2 deletions
servers/slapd/back-dnssrv/request.c
+
12
−
2
View file @
18f31148
...
...
@@ -24,6 +24,7 @@ dnssrv_back_request(
const
char
*
ndn
)
{
int
i
;
int
rc
;
char
*
domain
=
NULL
;
char
*
hostlist
=
NULL
;
char
**
hosts
=
NULL
;
...
...
@@ -40,8 +41,9 @@ dnssrv_back_request(
domain
==
NULL
?
""
:
domain
,
0
);
if
(
ldap_domain2hostlist
(
dn
,
&
domain
)
)
{
Debug
(
LDAP_DEBUG_TRACE
,
"DNSSRV: no such object
\n
"
,
0
,
0
,
0
);
if
(
rc
=
ldap_domain2hostlist
(
domain
,
&
hostlist
)
)
{
Debug
(
LDAP_DEBUG_TRACE
,
"DNSSRV: domain2hostlist returned %d
\n
"
,
rc
,
0
,
0
);
send_ldap_result
(
conn
,
op
,
LDAP_NO_SUCH_OBJECT
,
NULL
,
"could not locate DNS SRV records"
,
NULL
,
NULL
);
goto
done
;
...
...
@@ -73,6 +75,14 @@ dnssrv_back_request(
}
}
Statslog
(
LDAP_DEBUG_STATS
,
"conn=%ld op=%d DNSSRV dn=
\"
%s
\"
domain=%d url=
\"
%s
\"\n
"
,
op
->
o_connid
,
op
->
o_opid
,
dn
,
domain
,
urls
[
0
]
->
bv_val
);
Debug
(
LDAP_DEBUG_TRACE
,
"DNSSRV: dn=
\"
%s
\"
-> url=
\"
%s
\"\n
"
,
dn
==
NULL
?
""
:
dn
,
urls
[
0
]
->
bv_val
,
0
);
send_ldap_result
(
conn
,
op
,
LDAP_REFERRAL
,
NULL
,
NULL
,
urls
,
NULL
);
...
...
This diff is collapsed.
Click to expand it.
tests/data/slapd-dnssrv.conf
0 → 100644
+
16
−
0
View file @
18f31148
# $OpenLDAP$
#
# DNS SRV slapd config -- for testing
#
include
./
data
/
slapd
.
at
.
conf
include
./
data
/
slapd
.
oc
.
conf
schemacheck
on
pidfile
./
test
-
db
/
slapd
.
pid
argsfile
./
test
-
db
/
slapd
.
args
#######################################################################
# ldbm database definitions
#######################################################################
database
dnssrv
suffix
""
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment