summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python/pyglue.c
Commit message (Collapse)AuthorAgeFilesLines
* Move python modules from source4/scripting/python/ to python/.Jelmer Vernooij2013-03-021-250/+0
| | | | | | | Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Sat Mar 2 03:57:34 CET 2013 on sn-devel-104
* pyglue: Make all_interfaces argumen to interface_ips() optional.Jelmer Vernooij2012-10-211-2/+2
| | | | | Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Sun Oct 21 21:26:01 CEST 2012 on sn-devel-104
* pyglue: Mention parameters in interface_ips() docstring.Jelmer Vernooij2012-10-211-0/+2
|
* s4-python: Override SIGINT handler in scripts only.Jelmer Vernooij2012-09-251-7/+0
| | | | | | | | | | | | Override the SIGINT handler in a few select cases only, rather than doing so in one of the samba Python modules. I've done this where it matters most; we can add this code to other scripts too if necessary. This means that importing the 'samba' module from a third party application does not have side-effects on the state of the signal handlers. Bug: https://bugzilla.samba.org/show_bug.cgi?id=9068
* s4:pyglue: PyArg_ParseTuple("I") requires an 'unsigned int' argumentStefan Metzmacher2011-08-081-1/+5
| | | | | | | | | If we pass variable references we don't get implicit casting! metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Aug 8 18:01:19 CEST 2011 on sn-devel-104
* s4-ipv6: update callers to load_interface_list()Andrew Tridgell2011-06-061-1/+1
|
* selftest: Re-enable strings.py from source3/stf as a python subunit testAndrew Bartlett2011-05-181-0/+32
|
* s4-interfaces Rename interfaces code so not to conflict with source3/Andrew Bartlett2011-05-081-6/+6
| | | | | | | | | The iface_count, iface_n_bcast, and load_interfaces functions conflicted with functions of the same name in source3, so the source4 functions were renamed. Hopefully we can actually wrap one around the other in future. Andrew Bartlett
* pyglue: Add prototype for init function.Jelmer Vernooij2010-12-181-0/+2
|
* s4:scripting/python/pyglue.c - add a OOM handlingMatthias Dieter Wallnöfer2010-12-121-0/+4
| | | | | Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sun Dec 12 20:50:55 CET 2010 on sn-devel-104
* s4:scripting/python/pyglue.c - optimise includesMatthias Dieter Wallnöfer2010-12-121-4/+0
|
* s4-pyglue: added get_debug_level() methodAndrew Tridgell2010-11-291-0/+7
| | | | Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
* talloc: Add python talloc module, move convenience functions to it.Jelmer Vernooij2010-11-051-50/+0
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Fri Nov 5 02:48:21 UTC 2010 on sn-devel-104
* s4-param: Fix more memory leaks, invalid memory context.Jelmer Vernooij2010-09-221-0/+4
|
* s4-param: Check type when converting python object to lp_ctx, fix someJelmer Vernooij2010-09-221-2/+1
| | | | memory leaks.
* selftest: Fix run for systems without testtools installed.Jelmer Vernooij2010-09-211-2/+0
|
* s4-pyglue: added talloc_total_blocks() python callAndrew Tridgell2010-08-251-2/+22
|
* s4-pyglue: added talloc_report_full() and talloc_enable_null_tracking()Andrew Tridgell2010-08-251-0/+30
| | | | | | these are useful for tracking down leaks and bugs in python scripts Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-161-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>
* pyglue: Remove unused code.Jelmer Vernooij2010-06-191-27/+5
|
* pydsdb: Move write_prefixes_from_schema_to_ldb to pydsdb from pyglue.Jelmer Vernooij2010-06-191-26/+0
|
* pydsdb: Move dsdb_set_schema_from_ldb to pydsdb.Jelmer Vernooij2010-06-191-48/+0
|
* pydsdb: Move set_schema_from_ldif function to pydsdb from pyglue.Jelmer Vernooij2010-06-191-18/+0
|
* s4:py_nttime2string - removed unused variable "nt2"Matthias Dieter Wallnöfer2010-05-041-2/+3
| | | | And add some linespaces to look better.
* s4 python: fix glues functions manipulating NTTIMEMatthieu Patou2010-05-021-1/+35
| | | | | The fix include reverse function (from NTTIME to timestamp) + fix on the transformation of a NTTIME to a PyLong object
* Revert "s4/dsdb: Set schemaInfo attribute value during provisioning"Kamen Mazdrashki2010-04-291-26/+0
| | | | | | | | | | | This reverts commit 8149094eddebd9a0e8b7c123c2ed54d00164bb26. Windows implementation does not set schemaInfo attribute value until first Schema update request. This way, newly provisioned forest returns no schemaInfo value. I think it won't be bad for us to have this value preset, but I want to mimic Win AD behavior as close as possible.
* s4/dsdb: Set schemaInfo attribute value during provisioningKamen Mazdrashki2010-04-091-0/+26
| | | | | After provisioning new Forest, schemaInfo should be set to a value with revision=1 and current invocation_id
* pynet: Create a net class.Jelmer Vernooij2010-04-081-3/+4
|
* s4-python: Move load_partition_usn to dsdb module.Jelmer Vernooij2010-04-081-48/+0
|
* s4-python: rename samba.glue to samba._glue to indicate it's private.Jelmer Vernooij2010-04-081-2/+2
|
* s4-python: Move set_global_schema to pydsdb.Jelmer Vernooij2010-04-081-18/+0
|
* s4-python: Move samdb_ntds_objectGUID to pydsdb.Jelmer Vernooij2010-04-071-144/+0
|
* s4-python: Move set_session_info to PySambaLdb.Jelmer Vernooij2010-04-061-24/+0
|
* s4-python: Move register_samba_handlers to PySambaLdb.Jelmer Vernooij2010-04-061-19/+0
|
* s4-python: Move ldb_set_utf8_casefold to pyldb-samba.Jelmer Vernooij2010-04-061-18/+0
|
* Move glue.set_credentials hack to samba.Ldb.Jelmer Vernooij2010-04-061-24/+0
|
* Add C-based Samba-specific subclass of Ldb.Jelmer Vernooij2010-04-061-24/+0
|
* s4-python: Move dsdb_convert_schema_to_openldap to dsdb.Jelmer Vernooij2010-04-041-25/+0
|
* s4-python: Move set_opaque_integer -> dsdb.Jelmer Vernooij2010-04-041-62/+0
|
* s4-python: Remove convenience macro PyErr_SetStringError.Jelmer Vernooij2010-04-041-2/+2
| | | | This macro assumed that all errors were runtime errors.
* s4-python: Move samdb_server_site_name to dsdb module.Jelmer Vernooij2010-04-041-29/+0
|
* s4-python: Move dsdb constants to a separate python module.Jelmer Vernooij2010-04-041-42/+0
|
* s4-python: Remove unused imports, duplicate definitions of SECINFO_ constants.Jelmer Vernooij2010-04-031-6/+0
|
* s4-python: Remove duplicate definition of GUID_DRS_* constants.Jelmer Vernooij2010-04-031-15/+0
|
* s4-pyglue: setup talloc logging in python modulesAndrew Tridgell2010-04-021-0/+2
|
* s4:dsdb Remove unused 'dsdb_make_schema_global' call from pyglueAndrew Bartlett2010-03-221-17/+0
|
* Added a net acl ds command for modification of ACLs on directory objectsNadezhda Ivanova2010-03-161-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At present the command supports only addition of control access rigts, done so DRS access checks can be tested. It will be expanded to deal with most ways to modify and view a DS ACL. Shifted commands a bit. What used to be net acl is now "net acl nt" as apposed to this, which is "net acl ds" ./bin/net acl ds set --help Usage: set --objectdn=objectdn --car=control right --action=[deny|allow] --trusteedn=trustee-dn Options: -h, --help show this help message and exit --host=HOST LDB URL for database or target server --car=CAR The access control right to allow or deny --action=ACTION Deny or allow access --objectdn=OBJECTDN DN of the object whose SD to modify --trusteedn=TRUSTEEDN DN of the entity that gets access Samba Common Options: -s FILE, --configfile=FILE Configuration file Credentials Options: --simple-bind-dn=DN DN to use for a simple bind --password=PASSWORD Password -U USERNAME, --username=USERNAME Username -W WORKGROUP, --workgroup=WORKGROUP Workgroup -N, --no-pass Don't ask for a password -k KERBEROS, --kerberos=KERBEROS Use Kerberos
* s4:dsdb Change dsdb_get_schema() callers to use new talloc argumentAndrew Bartlett2010-03-161-2/+2
| | | | | | | | 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:samba_dnsupdate Add a 'file based' mode to samba_dnsupdateAndrew Bartlett2010-03-111-3/+4
| | | | | | | | | For the testsuite to use DNS like names, we need to write these names to a file. Also, to have this run in 'make test' the usual rules about 'no 127.*' IP addresses in DNS must be skipped, so glue.interface_ips takes two arguments now
* s4:pyglue: add generate_random_password()Stefan Metzmacher2010-02-261-2/+22
| | | | metze