summaryrefslogtreecommitdiff
path: root/source4/libnet
AgeCommit message (Collapse)AuthorFilesLines
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
2010-05-18Finish removal of iconv_convenience in public API's.Jelmer Vernooij5-37/+34
2010-05-18s4:provision Remove unused 'account_name' parameterAndrew Bartlett2-2/+0
The python glue code didn't even de-reference this element in the structure. Andrew Bartlett
2010-05-18pynet: Remove unused credentials argument.Jelmer Vernooij1-4/+3
2010-04-29s4:libnet Make 'net vampire' more robust to command line argumentsAndrew Bartlett1-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
2010-04-27nbt: samlogon/netlogon structures - unify denominationsMatthias Dieter Wallnöfer2-2/+2
2010-04-27s4-libnet: cope with an empty client site name from CLDAPAndrew Tridgell1-0/+5
We fall back to the server site name in a vampire Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-04-27s4-vampire: show main CLDAP response attributes during vampireAndrew Tridgell1-0/+4
2010-04-22s4-libnet: fixed two compiler warningsAndrew Tridgell1-3/+2
2010-04-21s4-pynet: accept None for target_dir in vampireAndrew Tridgell1-1/+1
2010-04-20pytalloc: ensure talloc_ctx is directly after PyObject_HEADAndrew Tridgell1-1/+1
the talloc python interface for tp_alloc and tp_dealloc relies on a cast to a py_talloc_Object to find the talloc_ctx (see py_talloc_dealloc). This means we rely on the talloc_ctx for the object being directly after the PyObject_HEAD This fixes the talloc free with references bug in samba_dnsupdate The actual problem was the tp_alloc() call in PyCredentialCacheContainer_from_ccache_container() which used a cast from a py_talloc_Object to a PyCredentialCacheContainerObject. That case effectively changed the parent/child relationship between the talloc_ctx and the ccc ptr. This patch changes all the structures that follow this pattern to put the TALLOC_CTX directly after the PyObject_HEAD, to ensure that if anyone else decides to do a dangerous cast like this that it won't cause the same sort of subtle breakage. Pair-Programmed-With: Rusty Russell <rusty@samba.org>
2010-04-19s4-python: PyErr_SetString() will crash on NULL stringsAndrew Tridgell1-6/+9
use nt_errstr() when no error available
2010-04-15s4:libnet_passwd: check for NT_STATUS_RPC_ENUM_VALUE_OUT_OF_RANGE for ↵Stefan Metzmacher1-1/+1
SetPassword metze
2010-04-15s4:libnet_passwd: check for NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE in the ↵Stefan Metzmacher1-3/+3
ChangePassword calls metze
2010-04-15s4:libnet_rpc: check for NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE instead of ↵Stefan Metzmacher1-1/+1
NT_STATUS_NET_WRITE_FAULT metze
2010-04-15s4:libnet/libnet_join: don't look at p->last_fault_code for debugging anymoreStefan Metzmacher1-49/+20
metze
2010-04-13Revert "s4:prefer "samdb_*_dn" basedn calls over the "ldb_get_*_dn" functions"Matthias Dieter Wallnöfer1-2/+4
We should use the "ldb_get_*_basedn" calls since they are available in the LDB library.
2010-04-12s4/libnet: Allocate mem in supplied mem_ctxKamen Mazdrashki1-2/+2
In this case, 'libnet_Vampire *r' may not be a pointer to a talloced memory.
2010-04-12s4/py_net: Source code formatting fixKamen Mazdrashki1-16/+17
2010-04-12s4/libnet: handle errors returned for DsAddEntry_v3 properlyKamen Mazdrashki1-4/+3
It turns out ms-docs are little bit misleading - in case of no error, r->out.ctr->ctr3.err_data is not NULL, but error information (r->out.ctr->ctr3.err_data->v1.info) is NULL!
2010-04-12s4/libnet: Add few new lines in the debug log so it is readable againKamen Mazdrashki1-14/+16