summaryrefslogtreecommitdiffstats
path: root/source4/libnet/libnet_vampire.c
Commit message (Collapse)AuthorAgeFilesLines
* dsdb: Do not store a struct ldb_dn in struct schema_dataAndrew Bartlett2014-06-111-5/+0
| | | | | | | | | | | | The issue is that the DN contains a pointer to the ldb it belongs to, and if this is not kept around long enough, we might reference memory after it is de-allocated. Andrew Bartlett Change-Id: I040a6c37a3164b3309f370e32e598dd56b1a1bbb Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s4:libnet: make use of dcerpc_binding_get_string_option("host")Stefan Metzmacher2014-02-131-1/+2
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* libnet-vampire: make use of dsdb_repl_resolve_working_schema()Stefan Metzmacher2013-05-231-210/+17
| | | | | | | | | | | Pair-Programmed-With: Matthieu Patou <mat@matws.net> Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu May 23 14:18:03 CEST 2013 on sn-devel-104
* libnet-vampire: add attributes and classes from the replicated schema to the ↵Matthieu Patou2013-05-231-7/+119
| | | | | | | | | | | | | | | | | | | | | | bootstrap schema (bug #8680) Replicated schema might have attributes and auxilary classes on some critical classes (ie. top, user, computer ) that are not in the bootstrap schema. Without those new attributes and classes, bootstrap schema is unable to translate those critical classes in the schema constructed from the replicated data. Without thoses classes new schema is useless and can't be indexed properly. In order to overcome this problem, we put all new attributes and classes definitions into the bootstrap schema so that foundations classes can be translated. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Matthieu Patou <mat@matws.net> Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* libnet-vampire: reports Exops as they rather than sync on some partitionsMatthieu Patou2013-01-091-6/+27
| | | | | | | | | | | | | | | Instead of showing: Partition[CN=RODC,OU=Domain Controllers,DC=samba,DC=example,DC=com] objects[1] linked_values[8] Report a exop based on CN=RODC,OU=Domain Controllers,DC=samba,DC=example,DC=com as Exop on CN=RODC,OU=Domain Controllers,DC=samba,DC=example,DC=com, ... Signed-off-by: Matthieu Patou <mat@matws.net> Reviewed-By: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Matthieu Patou <mat@samba.org> Autobuild-Date(master): Wed Jan 9 09:01:30 CET 2013 on sn-devel-104
* libnet: set the invocation_id earlier in order to avoid annoying messagesMatthieu Patou2013-01-091-13/+13
| | | | | | | | | At that moment we have all the information to set the invocation id so let's set it, it will avoid useless messages about missing invocation id. Signed-off-by: Matthieu Patou <mat@matws.net> Reviewed-By: Andrew Bartlett <abartlet@samba.org>
* s4-drs: Remove unused varMatthieu Patou2012-11-091-3/+0
| | | | Signed-off-by: Matthieu Patou <mat@matws.net>
* s4-provision: pass use_ntvfs from C wrappers and set to true in tests/vampireAndrew Bartlett2012-08-221-1/+1
| | | | | | None of these cases need the complexity of the s3fs backend. Andrew Bartlett
* Add some debug for FOOBAR return case as they are hard to diagnoseMatthieu Patou2012-04-291-2/+5
| | | | | Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Sun Apr 29 09:08:15 CEST 2012 on sn-devel-104
* s4:libnet_vampire: setup base_dn on the self_made_schemaStefan Metzmacher2011-11-151-0/+5
| | | | metze
* s4:libnet_vampire: use dsdb_modify(..., DSDB_FLAG_AS_SYSTEM) to store prefixMapStefan Metzmacher2011-11-151-1/+1
| | | | metze
* s4:param/provision: pass schema_dn to provision_get_schema()Stefan Metzmacher2011-11-151-1/+3
| | | | metze
* s4-vampire: Fix the output of fetched object for the schema-dnMatthieu Patou2011-11-011-2/+8
|
* s4-dsdb: update callers to dsdb_convert_object_ex()Andrew Tridgell2011-10-041-0/+3
|
* s4:libnet_vampire: don't keep the replication state if ↵Stefan Metzmacher2011-08-121-0/+30
| | | | | | | | | | | DRSUAPI_DRS_CRITICAL_ONLY was used In that case we have incomplete information and need to start from 0 in the next run. metze Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-libnet_vampire: Ignore some attributes when building working schema cacheKamen Mazdrashki2011-03-011-0/+9
| | | | | | | | | Working schema cache will be used to convert replicated Schema objects again later, i.e. used as reference, so we don't need to resolve all attribute OIDs for working Schema cache to be usable. Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Tue Mar 1 03:45:16 CET 2011 on sn-devel-104
* ldb: use #include <ldb.h> for ldbAndrew Tridgell2011-02-101-2/+2
| | | | | | | | thi ensures we are using the header corresponding to the version of ldb we're linking against. Otherwise we could use the system ldb for link and the in-tree one for include Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-repl: Allow dsdb_replicated_objects_commit() to use different schema ↵Kamen Mazdrashki2010-12-151-2/+2
| | | | | | | | | | | | | | | | | | while committing objects working_schema is to be used while committing a Schema replica. When we replicate Schema, then we most probably won't be able to convert all replicated objects using the current Schema cache (as we don't know anything about those new objects). Thus, during Schema replication, we make a temporary working_schema that contains both our current Schema + all objects we get on the wire. When we commit those new objects, we should use our working_schema (by setting it to the ldb), and after all changes are commited, we can refresh the schema cache so we have a brand new, full-featured Schema cache
* s4-repl: Let dsdb_replicated_objects_convert() to accept schema from callerKamen Mazdrashki2010-12-011-0/+9
| | | | | This allows us to use schema that is different than the one set to 'ldb' to decode objects.
* s4-repl: Propagate remote prefixMap in DRSUAPI data conversion functionsKamen Mazdrashki2010-11-111-1/+10
|
* s4-repl: dsdb_extended_replicated_objects_convert -> ↵Kamen Mazdrashki2010-11-111-22/+22
| | | | | | dsdb_replicated_objects_convert/ It is part of dsdb_replicated_* family of functions
* s4-repl: dsdb_extended_replicated_objects_commit -> ↵Kamen Mazdrashki2010-11-111-3/+2
| | | | | | dsdb_replicated_objects_commit It is part of dsdb_replicated_* family of functions
* libcli/security Use common security.hAndrew Bartlett2010-10-121-1/+1
| | | | | | | | | | This includes dom_sid.h and security_token.h and will be moved to the top level shortly. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Oct 12 03:35:36 UTC 2010 on sn-devel-104
* s4-libnet_vampire: Remove unused self_corrected_schemaKamen Mazdrashki2010-10-101-10/+0
| | | | | Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Sun Oct 10 10:40:38 UTC 2010 on sn-devel-104
* s4-libnet_vampire use a linked list to handle schema objects pending conversionAndrew Bartlett2010-10-101-26/+33
|
* s4-vampire: Optimize Schema decoding conversionKamen Mazdrashki2010-10-101-14/+10
| | | | | memmove() is removed and I am using the beginning of the list for storage for failed objects
* s4-vampire: Initial implementation for multi-pass schema decoding from DRS dataKamen Mazdrashki2010-10-101-69/+92
| | | | | We can't decode all schema object in just one (or even two) passes when Schema tree has more levels of inheritance.
* s4-libnet_vampire: Reparent result.lp_ctx - we have already referenced itKamen Mazdrashki2010-10-051-1/+1
| | | | | which leads to warning that we are trying to steal a context with references
* s4-pyjoin: fill in the dns name in the python replication methodAndrew Tridgell2010-09-161-0/+3
| | | | | | this is needed to get the repsFrom DNS entry right Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-rodc: s->schema need initialisationAndrew Tridgell2010-09-091-0/+1
| | | | this fixes a segfault in net rodc preload
* s4-libnet: added libnet_vampire_replicate_init()Andrew Tridgell2010-08-251-0/+17
| | | | | | this is used to setup for later calls to the replicate chunk functions Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-libnet: split libnet_Vampire() into two partsAndrew Tridgell2010-08-231-26/+66
| | | | | | | | | libnet_Replicate() will do just the replication portion of libnet_Vampire(). This will be used by the RODC join, where the join part of the operation happens in python, and behaves quite differently to the libnet_Join() code. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4/vampire: update dNSHostName for the Server objectAnatoliy Atanasov2010-08-031-1/+61
|
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-161-7/+7
| | | | | | | this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:lib: merge LDB_WRAP and LDBSAMBA and make LDBSAMBA a library.Stefan Metzmacher2010-06-161-1/+1
| | | | | | | | | This is needed to remove samba specifc symbols from the bundled ldb, in order to get the ABI right. metze Signed-off-by: Andreas Schneider <asn@samba.org>
* s4:dsdb Rework the vampire schema handling to convert 3 times.Andrew Bartlett2010-06-151-57/+117
| | | | | | | | | | | | | This seems like a lot of duplicate work, but by the end we should have, in normal LDB format, the remote DRS schema, having bootstrapped it with the locally loaded schema. The multiple steps are to resolve the problems with references to schema items that we don't 'yet' know about. Andrew Bartlett Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
* s4:provision Allow a specific prefix map to be loaded into a new schema ↵Andrew Bartlett2010-06-151-1/+24
| | | | | | | | | | | | provision This allows the prefixMap from a DRS server to be used when loading the schema from the local files. This helps us then import other schema with this map in place. Andrew Bartlett Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
* s4:dsdb Keep the DRS-based prefix map for use in provision-based schemaAndrew Bartlett2010-06-151-2/+13
| | | | | | | | | | We need to use the remote prefix map for the provision schema, or else we can't decode new, non-standard attributes into OIDs. Then once we decode that schema, we can try again and get them properly translated. Andrew Bartlett Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
* s4:dsdb Allow the setting an override on the schemaAndrew Bartlett2010-06-151-0/+4
| | | | | | | | | | | The change here is to try and convert a per the previous rules, but if we don't know a particular OID as a attributeID, then store it as an OID (for example). This allows known values to be converted as before, but still copes with unknown values. Andrew Bartlett Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
* s4:dsdb Use the schema from our local provision to decode the schemaAndrew Bartlett2010-06-151-78/+40
| | | | | | | | | | | | | | This works on the assumption that the schema partition can only contain schema objects. We may need to pass down some kind of 'relax' to the DRS -> LDB conversion code, so that it allows incomplete conversions, so that we don't fail if a new attribute is present, and we can't decode it. This would then be resolved the second time we do the conversion. Andrew Bartlett Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
* s4:libnet Steal ldb and lp_ctx from python result into correct structures.Andrew Bartlett2010-06-151-2/+2
| | | | Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
* s4:libnet Make the libnet_vampire default callbacks non-staticAndrew Bartlett2010-06-151-40/+69
| | | | | | | | | These are intended to be called from the NET-API-BECOMEDC torture test to avoid duplication of code. Andrew Bartlett Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
* s4:dsdb Add debugAndrew Bartlett2010-06-121-0/+1
|
* s4:libnet: use the new generated config from the provision for the self_joinStefan Metzmacher2010-05-221-1/+1
| | | | | | This fixes net vampire with the --target-dir option. metze
* Finish removal of iconv_convenience in public API's.Jelmer Vernooij2010-05-181-1/+1
|
* s4:provision Remove unused 'account_name' parameterAndrew Bartlett2010-05-181-1/+0
| | | | | | | The python glue code didn't even de-reference this element in the structure. Andrew Bartlett
* s4:libnet Make 'net vampire' more robust to command line argumentsAndrew Bartlett2010-04-291-0/+20
| | | | | | | | When we have just joined a domain, we know a bit about that domain. Use these to override previous guesses as to what domain and realm to use for the rest of the join. Andrew Bartlett
* s4/libnet: Allocate mem in supplied mem_ctxKamen Mazdrashki2010-04-121-2/+2
| | | | | In this case, 'libnet_Vampire *r' may not be a pointer to a talloced memory.
* s4:dsdb Change dsdb_get_schema() callers to use new talloc argumentAndrew Bartlett2010-03-161-1/+1
| | | | | | | | This choses an appropriate talloc context to attach the schema too, long enough lived to ensure it does not go away before the operation compleates. Andrew Bartlett
* s4:libnet: use generate_random_password()Stefan Metzmacher2010-02-261-1/+1
| | | | metze