summaryrefslogtreecommitdiff
path: root/source4/libnet/py_net.c
AgeCommit message (Collapse)AuthorFilesLines
2010-12-12ldb:pyldb.h - revert to the previous header behaviourMatthias Dieter Wallnöfer1-1/+3
"ldb_private.h" is private and therefore might not always be available.
2010-12-12s4:libcli/finddc.h - fix header dependanciesMatthias Dieter Wallnöfer1-5/+1
And optimise includes
2010-12-12s4:libnet/py_net.c - add checks for OOM conditionsMatthias Dieter Wallnöfer1-0/+13
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-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 Tridgell1-0/+2
this is needed to get the repsFrom DNS entry right 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 Tridgell1-1/+1
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-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-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-23libnet-s4: added replicate() command in pynetAndrew Tridgell1-0/+60
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-07-16s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell1-2/+2
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-05-18pynet: Remove unused credentials argument.Jelmer Vernooij1-4/+3
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-12s4/py_net: Source code formatting fixKamen Mazdrashki1-16/+17
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
2009-12-25py_net/libnet: Remove C++-style comments, add more error checking, moveJelmer Vernooij1-5/+9
initialization of dcerpc subsystem to libnet.
2009-12-25s4-libnet: Python binding for libnet_SetPassword()Kamen Mazdrashki1-6/+66
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-10-23s4-python: we need to include Python.h firstAndrew Tridgell1-1/+1
If we don't include Python.h first then we get a pile of warnings due to broken redefines of XOPEN_SOURCE in the Python includes.
2009-07-28Fix compile of py_net.cAndrew Bartlett1-1/+3
2009-07-28s4:libnet Add in a 'credentials' parameter for python libnet_JoinAndrew Bartlett1-7/+20
2008-12-29s4:lib/tevent: rename structsStefan Metzmacher1-2/+2
list="" list="$list event_context:tevent_context" list="$list fd_event:tevent_fd" list="$list timed_event:tevent_timer" for s in $list; do o=`echo $s | cut -d ':' -f1` n=`echo $s | cut -d ':' -f2` r=`git grep "struct $o" |cut -d ':' -f1 |sort -u` files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4` for f in $files; do cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp mv $f.tmp $f done done metze
2008-11-02Remove use of global loadparm in python modules.Jelmer Vernooij1-1/+4
2008-10-24Fix the build.Jelmer Vernooij1-0/+1
2008-10-24Remove unused include param/param.h.Jelmer Vernooij1-1/+0
2008-10-20Make sure prototypes are always included, make some functions static andJelmer Vernooij1-1/+1
remove some unused functions.
2008-06-14Use a custom init function for samba4 that sets a samba4Simo Sorce1-1/+1
specific debug function. By default do not debug, this is the most appropriate action for a library as we cannot assume what stderr is use for in the main app. The main app is responsible to set ev_debug_stderr if they so desire. (This used to be commit e566a2f308ac6fb4b526a744f7059b565670aea5)
2008-05-23Add docstring for samba.net.JoinJelmer Vernooij1-1/+4
(This used to be commit 382de5455363ab1ae7436ff8da4b952d2b6541e9)
2008-04-14Fix problems with event context not being the parent.Simo Sorce1-4/+9
(This used to be commit 957c4d893acf9e6db06a3fc3a4687ab6bb238635)
2008-04-08Add manually written Python binding for libnet_Join.Jelmer Vernooij1-0/+77
(This used to be commit 374654b43d9f9e8381991cedc433ce410a914f7a)