summaryrefslogtreecommitdiff
path: root/source4/utils
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-04-26 15:48:18 +0300
committerKamen Mazdrashki <kamenim@samba.org>2010-04-28 12:11:03 +0300
commiteed665d653828832ec57642126c4040c47dd6e90 (patch)
tree57d2a6a7d32803c5c41d0b666a3b6505e0c0a42d /source4/utils
parentbf49ac99c94e4d937fd8d0532761b5635e372d84 (diff)
downloadsamba-eed665d653828832ec57642126c4040c47dd6e90.tar.gz
samba-eed665d653828832ec57642126c4040c47dd6e90.tar.bz2
samba-eed665d653828832ec57642126c4040c47dd6e90.zip
s4/net_drs: Fix Connection name printed
Diffstat (limited to 'source4/utils')
-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);