struct ldb_message **dom_msgs,
struct samr_DomGeneralInformation *info)
{
- /* FIXME: this has a completely different meaning
- * MS-SAMR 2.2.4.1 - ReplicaSourceNodeName */
- info->primary.string = talloc_strdup(mem_ctx, "");
+ /* MS-SAMR 2.2.4.1 - ReplicaSourceNodeName: "domainReplica" attribute */
+ info->primary.string = ldb_msg_find_attr_as_string(dom_msgs[0],
+ "domainReplica",
+ "");
info->force_logoff_time = ldb_msg_find_attr_as_uint64(dom_msgs[0], "forceLogoff",
0x8000000000000000LL);
return DomInfo6
*/
static NTSTATUS dcesrv_samr_info_DomInfo6(struct samr_domain_state *state,
- TALLOC_CTX *mem_ctx,
- struct ldb_message **dom_msgs,
- struct samr_DomInfo6 *info)
+ TALLOC_CTX *mem_ctx,
+ struct ldb_message **dom_msgs,
+ struct samr_DomInfo6 *info)
{
- /* FIXME: this has a completely different meaning
- * MS-SAMR 2.2.4.1 - ReplicaSourceNodeName */
- info->primary.string = talloc_strdup(mem_ctx, "");
+ /* MS-SAMR 2.2.4.1 - ReplicaSourceNodeName: "domainReplica" attribute */
+ info->primary.string = ldb_msg_find_attr_as_string(dom_msgs[0],
+ "domainReplica",
+ "");
return NT_STATUS_OK;
}
case 2:
{
static const char * const attrs2[] = {"forceLogoff",
- "oEMInformation",
- "modifiedCount",
+ "oEMInformation",
+ "modifiedCount",
+ "domainReplica",
NULL};
attrs = attrs2;
break;
}
case 6:
{
- static const char * const attrs2[] = { NULL };
+ static const char * const attrs2[] = { "domainReplica",
+ NULL };
attrs = attrs2;
break;
}