NTSTATUS status;
char *addr_str = NULL;
const uint16_t kdc_port = 88;
+ const uint16_t kpasswd_port = 464;
addr_str = print_canonical_sockaddr(talloc_tos(), pss);
if (addr_str == NULL) {
* the hard-coded portnumber workarounds the issue. - gd
*/
result = talloc_asprintf(mem_ctx,
- "\t\tkdc = %s:%u\n",
- addr_str, kdc_port);
+ "\t\tkdc = %s:%u\n"
+ "\t\tkpasswd_server = %s:%u\n",
+ addr_str, kdc_port,
+ addr_str, kpasswd_port);
TALLOC_FREE(addr_str);
if (result == NULL) {
goto out;
/* Append to the string - inefficient but not done often. */
new_str = talloc_asprintf_append_buffer(result,
- "\t\tkdc = %s:%u\n",
- addr_str, kdc_port);
+ "\t\tkdc = %s:%u\n"
+ "\t\tkpasswd_server = %s:%u\n",
+ addr_str, kdc_port,
+ addr_str, kpasswd_port);
TALLOC_FREE(addr_str);
if (new_str == NULL) {
goto out;