summaryrefslogtreecommitdiff
path: root/source4/lib/policy/pypolicy.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix clang 9 missing-field-initializer warningsGary Lockyer2020-05-081-1/+1
| | | | Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andreas Schneider <asn@samba.org>
* py3: Remove #define PyInt_FromLong PyLong_FromLongAndrew Bartlett2020-03-231-4/+4
| | | | | | | This allows us to end the use of Python 2/3 compatability macros. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Noel Power
* py3: Remove PyStr_FromString() compatability macroAndrew Bartlett2019-06-241-2/+2
| | | | | | | | We no longer need Samba to be py2/py3 compatible so we choose to return to the standard function names. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Noel Power <noel.power@suse.com>
* Cleanup (decref) some objects added to list.Noel Power2019-02-071-2/+16
| | | | | | | | | PyList_Append doesn't steal references, so if the item created is a temp object, created just to be added to the list we need to decref the item appended in order for it to be released. Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* python3 port for policy moduleNoel Power2018-04-051-6/+16
| | | | | | Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* s4-policy: Add python wrapper for ads_to_dir_access_mask() functionAmitay Isaacs2011-08-031-2/+17
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* source4/lib: Fix prototypes for all functions.Jelmer Vernooij2011-03-191-0/+2
|
* Fix memory allocation with error handling.Wilco Baan Hofman2010-06-201-1/+1
| | | | | | Also moved pypolicy.c headers around so as not to generate compile warnings Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* samba4: Add python bindings for samba.policy.get_gplink_options.Jelmer Vernooij2010-06-201-0/+48
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* policy: Add samba.policy.get_gpo_flags binding.Jelmer Vernooij2010-06-201-0/+85
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>