diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-09-19 10:50:28 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-10-29 09:55:18 +0000 |
commit | 45cd2e445d75429fbd84a95ff4a0fa0852279cd3 (patch) | |
tree | 46d232a6aed2a0b0164b7616c3a0fed55e2c0e05 /source4/dsdb | |
parent | c5c69359d9d18c9b9be29b0442567cf19f7810a0 (diff) | |
download | samba-45cd2e445d75429fbd84a95ff4a0fa0852279cd3.tar.gz samba-45cd2e445d75429fbd84a95ff4a0fa0852279cd3.tar.bz2 samba-45cd2e445d75429fbd84a95ff4a0fa0852279cd3.zip |
s4:samr RPC server - remove wrong implementation of ReplicaSourceNodeName
This should represent a replication partner - never the DC iself
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/common/util.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index 39589e5fd5..39fcc4d49b 100644 --- a/source4/dsdb/common/util.c +++ b/source4/dsdb/common/util.c @@ -1347,28 +1347,6 @@ failed: return false; } -/* Obtain the short name of the flexible single master operator - * (FSMO), such as the PDC Emulator */ -const char *samdb_result_fsmo_name(struct ldb_context *ldb, TALLOC_CTX *mem_ctx, const struct ldb_message *msg, - const char *attr) -{ - /* Format is cn=NTDS Settings,cn=<NETBIOS name of FSMO>,.... */ - struct ldb_dn *fsmo_dn = ldb_msg_find_attr_as_dn(ldb, mem_ctx, msg, attr); - const struct ldb_val *val = ldb_dn_get_component_val(fsmo_dn, 1); - const char *name = ldb_dn_get_component_name(fsmo_dn, 1); - - if (!name || (ldb_attr_cmp(name, "cn") != 0)) { - /* Ensure this matches the format. This gives us a - * bit more confidence that a 'cn' value will be a - * ascii string */ - return NULL; - } - if (val) { - return (char *)val->data; - } - return NULL; -} - /* work out the ntds settings dn for the current open ldb */ |