File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -385,9 +385,19 @@ let query_domain_workgroup ~domain ~db_workgroup =
385385 Printf. sprintf " Failed to look up domain %s workgroup" domain
386386 in
387387 try
388+ let kdc =
389+ Helpers. call_script ~log_output: On_failure net_cmd
390+ [" lookup" ; " kdc" ; domain; " -d" ; debug_level]
391+ (* Result like 10.71.212.25:88\n10.62.1.25:88\n*)
392+ |> String. split_on_char '\n'
393+ |> List. hd
394+ |> String. split_on_char ':'
395+ |> List. hd
396+ in
397+
388398 let lines =
389399 Helpers. call_script ~log_output: On_failure net_cmd
390- [" ads" ; " lookup" ; " -S" ; domain ; " -d" ; debug_level]
400+ [" ads" ; " lookup" ; " -S" ; kdc ; " -d" ; debug_level]
391401 in
392402 match Xapi_cmd_result. of_output_opt ~sep: ':' ~key ~lines with
393403 | Some v ->
Original file line number Diff line number Diff line change 33set -e
44
55list-hd () {
6- N=295
6+ N=297
77 LIST_HD=$( git grep -r --count ' List.hd' -- ** /* .ml | cut -d ' :' -f 2 | paste -sd+ - | bc)
88 if [ " $LIST_HD " -eq " $N " ]; then
99 echo " OK counted $LIST_HD usages"
You can’t perform that action at this time.
0 commit comments