summaryrefslogtreecommitdiff
path: root/source4/utils/net
diff options
context:
space:
mode:
Diffstat (limited to 'source4/utils/net')
-rw-r--r--source4/utils/net/drs/net_drs_showrepl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/utils/net/drs/net_drs_showrepl.c b/source4/utils/net/drs/net_drs_showrepl.c
index b3e5ab91c0..b5d355e2f4 100644
--- a/source4/utils/net/drs/net_drs_showrepl.c
+++ b/source4/utils/net/drs/net_drs_showrepl.c
@@ -358,10 +358,10 @@ static bool net_drs_showrepl_print_connection_objects(struct net_drs_context *dr
struct ldb_message **conn_msgs;
struct ldb_dn *dn;
uint32_t options;
- struct GUID guid;
const char *dc_dns_name;
TALLOC_CTX *mem_ctx;
const char *conn_attr[] = {
+ "name",
"enabledConnection",
"fromServer",
"mS-DS-ReplicatesNCReason",
@@ -403,8 +403,8 @@ static bool net_drs_showrepl_print_connection_objects(struct net_drs_context *dr
struct ldb_message *conn_msg = conn_msgs[i];
d_printf("Connection --\n");
- guid = samdb_result_guid(conn_msg, "name");
- d_printf("\tConnection name : %s\n", GUID_string(mem_ctx, &guid));
+ d_printf("\tConnection name : %s\n",
+ samdb_result_string(conn_msg, "name", NULL));
d_printf("\tEnabled : %s\n",
samdb_result_string(conn_msg, "enabledConnection", "TRUE"));
d_printf("\tServer DNS name : %s\n", dc_dns_name);