summaryrefslogtreecommitdiff
path: root/source4/libnet
AgeCommit message (Collapse)AuthorFilesLines
2010-10-05s4-libnet_vampire: Reparent result.lp_ctx - we have already referenced itKamen Mazdrashki1-1/+1
which leads to warning that we are trying to steal a context with references
2010-10-05Add missing dependencies for com_err.Jelmer Vernooij1-1/+1
2010-10-01s4-rpc: added target_principal binding handle optionAndrew Tridgell2-2/+2
this allows you to specify a target SPN for a connection Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-30s4-libnet: wipe the old keytab when exportingAndrew Tridgell1-0/+2
this prevents confusion with old keytab entries Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-25s4-pynet: added server keyword to Net() initialisationAndrew Tridgell1-3/+7
this sets up server_address in the libnet context Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2010-09-25s4-libnet: added server_address option in libnet contextAndrew Tridgell3-1/+6
this is used by libnet_LookupDCs Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2010-09-24s4-libnet_join Use header constant for 'all encryption types' in ↵Andrew Bartlett1-4/+3
msDS-SupportedEncryptionTypes
2010-09-24s4-libnet Remove libnet_samdump_keytab() and net samdump keytabAndrew Bartlett3-133/+2
There is a beter implementation of this in Samba3, and this uses functions in the credentials code that I want to remove. The same functionality is available by running 'net samsync' and 'net export keytab'. This isn't a DRS-backed utility, it only used netlogon replication. Andrew Bartlett
2010-09-19s4-libnet: use the right domain name in libnet_lookupAndrew Tridgell1-4/+1
2010-09-16s4-pynet: return the full netlogon response from python finddcAndrew Tridgell1-7/+8
this gives the caller the other server parameters Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-16s4-pyjoin: fill in the dns name in the python replication methodAndrew Tridgell2-0/+5
this is needed to get the repsFrom DNS entry right Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-15s4-libnet: force IDL printing for high debug levelsAndrew Tridgell1-0/+4
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-15s4-finddc: use NBT lookup for a 1C name if joining a short domain nameAndrew Tridgell2-2/+5
once we get the 1C lookup reply, use a CLDAP query to find the details for the server Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-15s4-pynet: added finddc callAndrew Tridgell1-0/+45
this gives access to the CLDAP/DNS finddc code from python Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-15s4-libcli: change finddcs.h -> finddc.hAndrew Tridgell1-1/+1
this prevents conflicts with old generated files and we can only even return one DC with this interface. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-15s4-libnet: use finddcs_cldap() in libnet_lookupAndrew Tridgell1-11/+17
this may later be changed to do fallback to NBT as well, but for now cldap is sufficient Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-15s4-libnet: converted finddcs call to tevent_reqAndrew Tridgell2-25/+25
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-09s4-rodc: s->schema need initialisationAndrew Tridgell1-0/+1
this fixes a segfault in net rodc preload
2010-09-02pynet: fixed ref count error on Py_NoneAndrew Tridgell1-1/+1
ensure we don't run out of None ... Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
2010-08-27s4-pynet: pynet depends on pyrpc_utilAndrew Tridgell1-1/+1
2010-08-27pyrpc: Add py_check_dcerpc_type().Jelmer Vernooij1-8/+3
This function checks whether the type of a PyObject matches a DCE/RPC Python type. Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
2010-08-25s4-pynet: some systems don't have Py_TYPE()Andrew Tridgell1-0/+4
we need a better method than this ....
2010-08-25s4-pynet: added replicate_init() and replicate_chunk() callsAndrew Tridgell1-35/+134
these calls allow python code to pass chunks from DRS replication calls into the code that applies the chunks to a database Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-25s4-libnet: added libnet_vampire_replicate_init()Andrew Tridgell1-0/+17
this is used to setup for later calls to the replicate chunk functions Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-23libnet-s4: added replicate() command in pynetAndrew Tridgell1-0/+60
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-23s4-libnet: split libnet_Vampire() into two partsAndrew Tridgell2-26/+82
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>
2010-08-23s4-libnet: show the DN when DsAddEntry() failsAndrew Tridgell1-1/+2
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-23s4-libnet: added join type constants to python interfaceAndrew Tridgell1-0/+4
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-14s4:libnet - free the "c" context also on error conditionsMatthias Dieter Wallnöfer2-1/+3
(and if it's NULL then "talloc_free" does ignore it)
2010-08-03s4/vampire: update dNSHostName for the Server objectAnatoliy Atanasov1-1/+61
2010-07-16s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell10-28/+28
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>
2010-07-10s4:libnet_GroupList: allocate children strings on the correct talloc parentStefan Metzmacher1-2/+2
Otherwise the _recv() function won't move the children strings to the callers memory context and let the callers crash. metze
2010-07-10s4:libnet_UserList: allocate children strings on the correct talloc parentStefan Metzmacher1-2/+2
Otherwise the _recv() function won't move the children strings to the callers memory context and let the callers crash. metze
2010-07-04s4:libnet - add missing "talloc_free"s for "c" contexts on "recv" operationsMatthias Dieter Wallnöfer3-5/+8
2010-06-29s4:libnet_join Fix typo in msDS-SupportedEncryptionTypesAndrew Bartlett1-1/+1
2010-06-24s4:libnet_join.c - always use LDB constantsMatthias Dieter Wallnöfer1-5/+5
2010-06-23s4:provision Raise default max functional level to 2008R2Andrew Bartlett1-2/+2
We don't support many of the extra features, but that applies across many other parts of AD. Allow the admin to join a 2008R2 domain if he or she wants. This also makes it possible to test 2008R2 domain code in 'make test' Andrew Bartlett
2010-06-23s4:libnet When joining a domain, update msDS-SupportedEncryptionTypesAndrew Bartlett1-0/+32
We need this for our DC to have clients use AES keys to us
2010-06-23libds:common Remove DS_DC_* domain functionality flagsAndrew Bartlett1-1/+1
These are just a subset of the DS_DOMAIN_ functionality flags, are compared and often confused with each other. Just make them one set. Andrew Bartlett
2010-06-16s4:lib: merge LDB_WRAP and LDBSAMBA and make LDBSAMBA a library.Stefan Metzmacher4-4/+3
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>
2010-06-16s4:libnet Remove 'ads min function level' checks.Andrew Bartlett1-23/+0
We support Windows 2000 native now. Andrew Bartlett
2010-06-15s4:dsdb Rework the vampire schema handling to convert 3 times.Andrew Bartlett1-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>
2010-06-15s4:provision Allow a specific prefix map to be loaded into a new schema ↵Andrew Bartlett1-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>
2010-06-15s4:dsdb Keep the DRS-based prefix map for use in provision-based schemaAndrew Bartlett1-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>
2010-06-15s4:dsdb Allow the setting an override on the schemaAndrew Bartlett1-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>
2010-06-15s4:dsdb Use the schema from our local provision to decode the schemaAndrew Bartlett1-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>
2010-06-15s4:libnet Steal ldb and lp_ctx from python result into correct structures.Andrew Bartlett1-2/+2
Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
2010-06-15s4:libnet Make the libnet_vampire default callbacks non-staticAndrew Bartlett2-40/+71
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>
2010-06-12s4:dsdb Add debugAndrew Bartlett1-0/+1
2010-05-22s4:libnet: use the new generated config from the provision for the self_joinStefan Metzmacher1-1/+1
This fixes net vampire with the --target-dir option. metze