You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# ADWS service endpoint metadata (unauthenticated)
93
+
# ADWS service endpoint metadata (unauthenticated - auth flags not needed)
93
94
$ sopa mex --dc <DC>
94
95
```
95
96
@@ -129,29 +130,78 @@ Notes:
129
130
-`hex` values are converted to `xsd:base64Binary`.
130
131
- To set an empty string explicitly, use `value: ""`.
131
132
133
+
## DC discovery & DNS
134
+
135
+
`--dc` accepts a **FQDN**, an **IP address**, or can be **omitted**.
136
+
Because the DC's hostname is sometimes not available from the network's default DNS, it is strongly recommended to always pass `--dns <DC-IP>` so that sopa uses the DC's own DNS server for all lookups:
137
+
138
+
```bash
139
+
# Option 1: let sopa resolve everything through the DC's DNS
When `--dc` is omitted and `--domain` is provided, sopa discovers a DC
144
+
automatically by querying SRV records:
145
+
146
+
```
147
+
_ldap._tcp.<domain> (tried first)
148
+
_kerberos._tcp.<domain> (fallback)
149
+
```
150
+
151
+
The target of the highest-priority record is used. This requires that the
152
+
DNS server pointed to by `--dns` can answer those SRV queries — the DC's own
153
+
integrated DNS server (when present) should be capable of that.
154
+
155
+
```bash
156
+
# Option 2: provide DC explicitly without Kerberos
157
+
$ sopa info version --dc 192.168.1.10 --domain corp.local -u user -p pass
158
+
```
159
+
160
+
When an IP is provided for `--dc` and Kerberos is in use, the IP is resolved to an FQDN via a **reverse PTR lookup** so that the Kerberos SPN / KDC address are correct.
161
+
This PTR lookup also goes through `--dns`, so a correctly configured reverse
SOCKS is currently not implemented. Use a solution like [OkamiW/proxy-ns](https://github.com/OkamiW/proxy-ns) if needed for your use case.
223
+
170
224
# Acknowledgements
171
225
172
226
* Big thanks to [oiweiwei](https://github.com/oiweiwei) for [go-msrpc](https://github.com/oiweiwei/go-msrpc), as his `ssp` package implemented the authentication flow with GSSAPI seamlessly.
0 commit comments