summaryrefslogtreecommitdiff
path: root/source4/scripting/python/pyglue.c
AgeCommit message (Collapse)AuthorFilesLines
2010-08-25s4-pyglue: added talloc_total_blocks() python callAndrew Tridgell1-2/+22
2010-08-25s4-pyglue: added talloc_report_full() and talloc_enable_null_tracking()Andrew Tridgell1-0/+30
these are useful for tracking down leaks and bugs in python scripts Pair-Programmed-With: Jelmer Vernooij <jelmer@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-06-19pyglue: Remove unused code.Jelmer Vernooij1-27/+5
2010-06-19pydsdb: Move write_prefixes_from_schema_to_ldb to pydsdb from pyglue.Jelmer Vernooij1-26/+0
2010-06-19pydsdb: Move dsdb_set_schema_from_ldb to pydsdb.Jelmer Vernooij1-48/+0
2010-06-19pydsdb: Move set_schema_from_ldif function to pydsdb from pyglue.Jelmer Vernooij1-18/+0
2010-05-04s4:py_nttime2string - removed unused variable "nt2"Matthias Dieter Wallnöfer1-2/+3
And add some linespaces to look better.
2010-05-02s4 python: fix glues functions manipulating NTTIMEMatthieu Patou1-1/+35
The fix include reverse function (from NTTIME to timestamp) + fix on the transformation of a NTTIME to a PyLong object
2010-04-29Revert "s4/dsdb: Set schemaInfo attribute value during provisioning"Kamen Mazdrashki1-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.
2010-04-09s4/dsdb: Set schemaInfo attribute value during provisioningKamen Mazdrashki1-0/+26
After provisioning new Forest, schemaInfo should be set to a value with revision=1 and current invocation_id
2010-04-08pynet: Create a net class.Jelmer Vernooij1-3/+4
2010-04-08s4-python: Move load_partition_usn to dsdb module.Jelmer Vernooij1-48/+0
2010-04-08s4-python: rename samba.glue to samba._glue to indicate it's private.Jelmer Vernooij1-2/+2
2010-04-08s4-python: Move set_global_schema to pydsdb.Jelmer Vernooij1-18/+0
2010-04-07s4-python: Move samdb_ntds_objectGUID to pydsdb.Jelmer Vernooij1-144/+0
2010-04-06s4-python: Move set_session_info to PySambaLdb.Jelmer Vernooij1-24/+0
2010-04-06s4-python: Move register_samba_handlers to PySambaLdb.Jelmer Vernooij1-19/+0
2010-04-06s4-python: Move ldb_set_utf8_casefold to pyldb-samba.Jelmer Vernooij1-18/+0
2010-04-06Move glue.set_credentials hack to samba.Ldb.Jelmer Vernooij1-24/+0
2010-04-06Add C-based Samba-specific subclass of Ldb.Jelmer Vernooij1-24/+0
2010-04-04s4-python: Move dsdb_convert_schema_to_openldap to dsdb.Jelmer Vernooij1-25/+0
2010-04-04s4-python: Move set_opaque_integer -> dsdb.Jelmer Vernooij1-62/+0
2010-04-04s4-python: Remove convenience macro PyErr_SetStringError.Jelmer Vernooij1-2/+2
This macro assumed that all errors were runtime errors.
2010-04-04s4-python: Move samdb_server_site_name to dsdb module.Jelmer Vernooij1-29/+0
2010-04-04s4-python: Move dsdb constants to a separate python module.Jelmer Vernooij1-42/+0
2010-04-03s4-python: Remove unused imports, duplicate definitions of SECINFO_ constants.Jelmer Vernooij1-6/+0
2010-04-03s4-python: Remove duplicate definition of GUID_DRS_* constants.Jelmer Vernooij1-15/+0
2010-04-02s4-pyglue: setup talloc logging in python modulesAndrew Tridgell1-0/+2
2010-03-22s4:dsdb Remove unused 'dsdb_make_schema_global' call from pyglueAndrew Bartlett1-17/+0
2010-03-16Added a net acl ds command for modification of ACLs on directory objectsNadezhda Ivanova1-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
2010-03-16s4:dsdb Change dsdb_get_schema() callers to use new talloc argumentAndrew Bartlett1-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
2010-03-11s4:samba_dnsupdate Add a 'file based' mode to samba_dnsupdateAndrew Bartlett1-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
2010-02-26s4:pyglue: add generate_random_password()Stefan Metzmacher1-2/+22
metze
2010-02-26samdb: added get_ntds_GUID() methodAndrew Tridgell1-0/+35
2010-02-26pyglue: added py_samdb_server_site_name()Andrew Tridgell1-0/+29
2010-02-26pyglue: added py_samdb_ntds_invocation_id()Andrew Tridgell1-0/+36
2010-02-26pyglue: don't return 127.0.0.0/8 IPs in interface_ips()Andrew Tridgell1-5/+18
We don't generally want loopback addresses in the python code
2010-02-23s4-pyglue: added interface_ips() callAndrew Tridgell1-0/+43
This allows a python script to query the internal network interface lists from Samba
2010-02-15s4-drs: Function for accessing dsdb_load_partition_usn from PythonFernando J V da Silva1-0/+50
Returns both uSNHighest and uSNUrgent as a dict object in Python from a given partition dn. Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-02-09s4:Remove "Py_RETURN_NONE" compatibility codeMatthias Dieter Wallnöfer1-4/+0
This was needed only by Python 2.3 which we no longer support.
2010-01-21s4: add python bindings for wrap_(s|g)etxattrMatthieu Patou1-2/+2
2009-12-31pyldb: Add dom_sid.split in favor of less powerful dom_sid_to_rid().Jelmer Vernooij1-23/+0
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-11-20Some changes to allow processing of ldap controls on modify requests.Nadezhda Ivanova1-0/+6
ldap_backend used to filter out ldap controls on modify. Also, modified python binding for ldap_modify to allow writing tests for such controls.
2009-11-05s4:samdb python bindings - add a wrapper for "dsdb_make_schema_global"Matthias Dieter Wallnöfer1-0/+17
2009-11-05s4:samdb python bindings - Reorder some function bodies to match the order ↵Matthias Dieter Wallnöfer1-25/+24
in "ldb_wrap_connect"
2009-10-25s4-python: fixed annoyance where control-C doesn't kill our python scriptsAndrew Tridgell1-0/+10
We want our scripts to die immediately when a user hits control-C. Otherwise we not only annoy the hell out of the user, we also risk db corruption as the control-C could get delivered as an exception which gets mis-interpreted (eg. as a missing db object). We use transactions for all our databases, so the right thing to do in all our command line tools is to die immediately.
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-09-17s4/python: flagsMatthias Dieter Wallnöfer1-5/+41
- Introduce the "userAccountControl", "groupType" and "sAMAccountType" flags - Corrects the "domain/forestFunctionality" and "domainControllerFunctionality" flags
2009-09-10Revert "s4: Let the "setpassword" script finally use the ↵Matthias Dieter Wallnöfer1-63/+2
"samdb_set_password" routine" This reverts commit fdd62e9699b181a140292689fcd88a559bc26211. abartlet and I agreed that this isn't the right way to enforce the password policies. Sooner or later we've to control them anyway on the directory level.