summaryrefslogtreecommitdiff
path: root/source4/libnet
AgeCommit message (Collapse)AuthorFilesLines
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
2010-04-12s4/libnet: Dump DRSUAPI_DIRERR_OK as unexpectedKamen Mazdrashki1-2/+1
Actually DRSUAPI_DIRERR_OK is not valid error to be returned. I introduce it in the IDL so that I can use it in enum. So it should be dumped as Unexpected error code
2010-04-09s4-net: Convert vampire command over to Python.Jelmer Vernooij1-0/+56
2010-04-09s4-net: Convert user subcommand to Python.Jelmer Vernooij1-0/+70
2010-04-08net: Convert time command to python.Jelmer Vernooij1-11/+49
2010-04-08s4-net: Use new Net() object in net export keytab.Jelmer Vernooij1-1/+5
2010-04-08pynet: Create a net class.Jelmer Vernooij1-69/+83
2010-04-08Migrate 'net export keytab' to python.Jelmer Vernooij1-12/+55
2010-04-06s4-waf: removed the AUTOGENERATED markersAndrew Tridgell1-4/+0
we won't be using the mk -> wscript generator again
2010-04-06s4-waf: mark the wscript files as python so vim/emacs knows how to highlight ↵Andrew Tridgell1-0/+2
them
2010-04-06build: fixed libcli/ndr_netlogon.c dependency rulesAndrew Tridgell1-0/+1
2010-04-06build: commit all the waf build files in the treeAndrew Tridgell1-0/+17
2010-03-29s4:libnet/libnet_passwd.c: add explicit check for NTSTATUS r.out.resultStefan Metzmacher1-0/+36
metze
2010-03-29s4:libnet/libnet_samsync.c: add explicit check for NTSTATUS r.out.resultStefan Metzmacher1-0/+3
metze
2010-03-29s4:libnet/libnet_join.c: add explicit check for NTSTATUS r.out.resultStefan Metzmacher1-0/+30
metze
2010-03-24s4/drs: Implement DsAddEntry V3 error handlingKamen Mazdrashki1-10/+67