summaryrefslogtreecommitdiffstats
path: root/source4/libnet
Commit message (Collapse)AuthorAgeFilesLines
* 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
* nbt: samlogon/netlogon structures - unify denominationsMatthias Dieter Wallnöfer2010-04-272-2/+2
|
* s4-libnet: cope with an empty client site name from CLDAPAndrew Tridgell2010-04-271-0/+5
| | | | | | We fall back to the server site name in a vampire Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-vampire: show main CLDAP response attributes during vampireAndrew Tridgell2010-04-271-0/+4
|
* s4-libnet: fixed two compiler warningsAndrew Tridgell2010-04-221-3/+2
|
* s4-pynet: accept None for target_dir in vampireAndrew Tridgell2010-04-211-1/+1
|
* pytalloc: ensure talloc_ctx is directly after PyObject_HEADAndrew Tridgell2010-04-201-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>
* s4-python: PyErr_SetString() will crash on NULL stringsAndrew Tridgell2010-04-191-6/+9
| | | | use nt_errstr() when no error available
* s4:libnet_passwd: check for NT_STATUS_RPC_ENUM_VALUE_OUT_OF_RANGE for ↵Stefan Metzmacher2010-04-151-1/+1
| | | | | | SetPassword metze
* s4:libnet_passwd: check for NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE in the ↵Stefan Metzmacher2010-04-151-3/+3
| | | | | | ChangePassword calls metze
* s4:libnet_rpc: check for NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE instead of ↵Stefan Metzmacher2010-04-151-1/+1
| | | | | | NT_STATUS_NET_WRITE_FAULT metze
* s4:libnet/libnet_join: don't look at p->last_fault_code for debugging anymoreStefan Metzmacher2010-04-151-49/+20
| | | | metze
* Revert "s4:prefer "samdb_*_dn" basedn calls over the "ldb_get_*_dn" functions"Matthias Dieter Wallnöfer2010-04-131-2/+4
| | | | | We should use the "ldb_get_*_basedn" calls since they are available in the LDB library.
* 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/py_net: Source code formatting fixKamen Mazdrashki2010-04-121-16/+17
|
* s4/libnet: handle errors returned for DsAddEntry_v3 properlyKamen Mazdrashki2010-04-121-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!
* s4/libnet: Add few new lines in the debug log so it is readable againKamen Mazdrashki2010-04-121-14/+16
|
* s4/libnet: Dump DRSUAPI_DIRERR_OK as unexpectedKamen Mazdrashki2010-04-121-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
* s4-net: Convert vampire command over to Python.Jelmer Vernooij2010-04-091-0/+56
|
* s4-net: Convert user subcommand to Python.Jelmer Vernooij2010-04-091-0/+70
|
* net: Convert time command to python.Jelmer Vernooij2010-04-081-11/+49
|
* s4-net: Use new Net() object in net export keytab.Jelmer Vernooij2010-04-081-1/+5
|
* pynet: Create a net class.Jelmer Vernooij2010-04-081-69/+83
|
* Migrate 'net export keytab' to python.Jelmer Vernooij2010-04-081-12/+55
|
* s4-waf: removed the AUTOGENERATED markersAndrew Tridgell2010-04-061-4/+0
| | | | we won't be using the mk -> wscript generator again
* s4-waf: mark the wscript files as python so vim/emacs knows how to highlight ↵Andrew Tridgell2010-04-061-0/+2
| | | | them
* build: fixed libcli/ndr_netlogon.c dependency rulesAndrew Tridgell2010-04-061-0/+1
|
* build: commit all the waf build files in the treeAndrew Tridgell2010-04-061-0/+17
|
* s4:libnet/libnet_passwd.c: add explicit check for NTSTATUS r.out.resultStefan Metzmacher2010-03-291-0/+36
| | | | metze
* s4:libnet/libnet_samsync.c: add explicit check for NTSTATUS r.out.resultStefan Metzmacher2010-03-291-0/+3
| | | | metze
* s4:libnet/libnet_join.c: add explicit check for NTSTATUS r.out.resultStefan Metzmacher2010-03-291-0/+30
| | | | metze
* s4/drs: Implement DsAddEntry V3 error handlingKamen Mazdrashki2010-03-241-10/+67
|
* s4/drs: Refactor error handling for DsAddEntry V3 repliesKamen Mazdrashki2010-03-241-15/+43
| | | | | Dumping for specific error classes are to be implemented properly in the near future.
* s4/drs: drsuapi_DsAddEntry_ErrData propagate structure def in source codeKamen Mazdrashki2010-03-241-7/+7
|
* s4/drs: DsAddEntry - extending error handling for V2 repliesKamen Mazdrashki2010-03-241-2/+15
| | | | | | After having more complete definition for DsAddEntryReply V2 structure, we can now handle error state in more robust way, not just counting on number of objects returned.
* s4/drs: drsuapi_DsAddEntryErrorInfoX changes propagated to source codeKamen Mazdrashki2010-03-241-2/+2
|
* s4/drs: DsAddEntry - Propagating unsigned switches to source codeKamen Mazdrashki2010-03-241-1/+1
|
* s4:libnet: don't include librpc/rpc/dcerpc.h directlyStefan Metzmacher2010-03-233-3/+0
| | | | metze
* 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/libnet_time.c: make use of dcerpc_binding_handle stubsStefan Metzmacher2010-03-121-1/+1
| | | | metze
* s4:libnet/libnet_share.c: make use of dcerpc_binding_handle stubsStefan Metzmacher2010-03-121-3/+3
| | | | metze
* s4:libnet/libnet_samsync.c: make use of dcerpc_binding_handle stubsStefan Metzmacher2010-03-121-1/+1
| | | | metze
* s4:libnet/libnet_passwd.c: make use of dcerpc_binding_handle stubsStefan Metzmacher2010-03-121-13/+13
| | | | metze
* s4:libnet/libnet_join.c: make use of dcerpc_binding_handle stubsStefan Metzmacher2010-03-121-13/+13
| | | | metze
* s4:libnet/libnet_rpc.c: make use of use tevent_req based ↵Stefan Metzmacher2010-03-121-24/+31
| | | | | | dcerpc_binding_handle stubs metze
* s4:libnet/usernam.c: make use of use tevent_req based dcerpc_binding_handle ↵Stefan Metzmacher2010-03-121-64/+89
| | | | | | stubs metze
* s4:libnet/userinfo.c: make use of use tevent_req based dcerpc_binding_handle ↵Stefan Metzmacher2010-03-121-35/+46
| | | | | | stubs metze
* s4:libnet/libnet_user.c: make use of use tevent_req based ↵Stefan Metzmacher2010-03-121-24/+33
| | | | | | dcerpc_binding_handle stubs metze
* s4:libnet/libnet_lookup.c: make use of use tevent_req based ↵Stefan Metzmacher2010-03-121-12/+17
| | | | | | dcerpc_binding_handle stubs metze
* s4:libnet/libnet_group.c: make use of use tevent_req based ↵Stefan Metzmacher2010-03-121-24/+33
| | | | | | dcerpc_binding_handle stubs metze