summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python
Commit message (Collapse)AuthorAgeFilesLines
* s4-provision: FreeBSD uses 'staff' for usersAndrew Tridgell2010-03-241-1/+1
|
* s4-provision: solaris uses the group "other"Andrew Tridgell2010-03-241-1/+1
|
* s4:dsdb Remove unused 'dsdb_make_schema_global' call from pyglueAndrew Bartlett2010-03-221-17/+0
|
* charset: fixed a problem with the global use of the iconv_convenience structureAndrew Tridgell2010-03-181-1/+2
| | | | | | | | | | | We had a crash bug where a cached copy of a iconv convenience pointer was used after being freed when loadparm asked for iconv to reload. This could happen if a python module used a iconv based function before loadparm was completed. The fix is to ensure that any use of this pointer remains valid, by reusing the pointer itself when it has already been initialised, but filling in the child elements with the updated values.
* Fixed MMR-URL-Split and changed RID-Range OpenLDAP ITS6394Oliver Liebel2010-03-181-8/+10
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* Added a net acl ds command for modification of ACLs on directory objectsNadezhda Ivanova2010-03-166-2/+242
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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:provision.py - small output improvementMatthias Dieter Wallnöfer2010-03-121-1/+1
|
* s4:provision Improve the handling of provision errorsAndrew Bartlett2010-03-112-11/+17
| | | | | | | | | The backtraces were too confusing for our users, and didn't tell them what to do to fix the problem. By printing the string (rather than a backtrace), and including in the error what to do, and what file to remove, we give them a chance. Andrew Bartlett
* s4:samba_dnsupdate Add a 'file based' mode to samba_dnsupdateAndrew Bartlett2010-03-112-4/+5
| | | | | | | | | 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-python: only install external python libs that are missingAndrew Tridgell2010-03-051-0/+12
|
* s4-python: import a copy of the python dns libraryAndrew Tridgell2010-03-05114-0/+16829
| | | | | | | | This library is not installed on enough systems for us to rely on it being available. We use the system copy if possible, and fallback to this local copy Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-python: allow us to have samba copies of python libraries we depend onAndrew Tridgell2010-03-051-0/+50
| | | | | | | | For python libraries like dns.resolver it is useful to be able to install a copy of the library with Samba. This set of functions allows us to do that while using the locally installed version if it is available Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4:provision - use the new "interface_ips" python call to detect the right ↵Matthias Dieter Wallnöfer2010-03-041-8/+8
| | | | | | | | | | | host IPv4 address Inform the user when there are more possibilities (so he can check for the right address and otherwise he is able to do an immediate reprovision) and no possibility at all (then we fall back to the loopback address "127.0.0.1" - this is thought for testing purposes). I think this should be enough for closing bug #5484.
* s4:provision - Moved default FDS SASL mappings deletion from post_setup() to ↵Endi S. Dewata2010-03-021-7/+0
| | | | | | init(). Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:provision - Moved setup_db_config() into OpenLDAPBackend class.Endi S. Dewata2010-03-021-16/+16
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:provision - Moved backend-specific variables into backend class.Endi S. Dewata2010-03-022-75/+60
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:provision - Use netbios name for FDS instance name.Endi S. Dewata2010-03-021-3/+5
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* Fix the build, add filtered subunit runner.Jelmer Vernooij2010-03-011-1/+1
|
* More formatting fixes, pointed out by pylint.Jelmer Vernooij2010-03-018-44/+51
|
* python: Add 'make pylint' convenience rule.Jelmer Vernooij2010-03-011-0/+5
|
* General cleanups of python code, hinted by pyflakes.Jelmer Vernooij2010-03-0114-152/+124
|
* Add 'pyflakes' rule.Jelmer Vernooij2010-03-011-0/+5
|
* ntacl: Use existing infrastructure.Jelmer Vernooij2010-03-012-27/+27
|
* Remove __contains__ from mock object for consistency with actualJelmer Vernooij2010-03-011-3/+0
| | | | implementation.
* Fix SharesContainer.__len__.Ricardo Jorge2010-03-011-1/+1
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* More formatting fixes.Jelmer Vernooij2010-03-011-16/+10
|
* Fix formatting.Jelmer Vernooij2010-03-011-172/+174
|
* upgradeprovision: Remove unused imports, use shutil.rmtree rather thanJelmer Vernooij2010-03-011-30/+11
| | | | rmall.
* upgradeprovision: Move to pythondoc formatMatthieu Patou2010-03-011-9/+33
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* upgradeprovision: code cleanupMatthieu Patou2010-03-011-6/+7
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* upgradeprovision: split the big script to put reusable functions appartMatthieu Patou2010-03-011-0/+220
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4:provision: use generate_random_password()Stefan Metzmacher2010-02-261-5/+5
| | | | metze
* s4:pyglue: add generate_random_password()Stefan Metzmacher2010-02-261-2/+22
| | | | metze
* s4-provision: fixed use of rndc command from pythonAndrew Tridgell2010-02-261-1/+1
| | | | rndc command is now a list
* s4-provision: also create the dns_update_list when running net vampireAndrew Tridgell2010-02-261-0/+10
| | | | | We need the list when joining a windows domain, so we can automatically maintain the right DNS entries on the Windows DNS server
* s4-provision: setup the dns_update_list at provision timeAndrew Tridgell2010-02-261-0/+5
| | | | This file is substituted at runtime by samba_dnsupdate
* s4-provision: if we aren't doing variable substitution then don't check for varsAndrew Tridgell2010-02-261-1/+1
|
* samdb: added get_ntds_GUID() methodAndrew Tridgell2010-02-262-0/+39
|
* py-samdb: added server_site_name methodAndrew Tridgell2010-02-261-0/+3
|
* pyglue: added py_samdb_server_site_name()Andrew Tridgell2010-02-261-0/+29
|
* py-samdb: added get_invocation_id() methodAndrew Tridgell2010-02-261-0/+5
|
* pyglue: added py_samdb_ntds_invocation_id()Andrew Tridgell2010-02-261-0/+36
|
* pyglue: don't return 127.0.0.0/8 IPs in interface_ips()Andrew Tridgell2010-02-261-5/+18
| | | | We don't generally want loopback addresses in the python code
* python: ntacls, fix a leftover that is not in the try/except branchMatthieu Patou2010-02-241-1/+0
| | | | Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
* s4-pyglue: added interface_ips() callAndrew Tridgell2010-02-231-0/+43
| | | | | This allows a python script to query the internal network interface lists from Samba
* s4:provision.py - try to use other addresses than "127.0.0.x" and "::1"Matthias Dieter Wallnöfer2010-02-211-2/+10
| | | | | | | | | | | | | On production systems a user for sure strongly disagrees to use local IP addresses (how should the server be accessible?). Therefore if the user didn't specify an IP as provision option and in the "/etc/hosts" file we have at least one not-local IP which resolves to our hostname use this or one of them. Notice: if a host has more public IP addresses with the same name assigned the behaviour is non-deterministic (well, okay - by the entries order it is). But then the user is invited to specify the host IP manually. This should address bug #5484.
* s4-provision: freeze the DNS zone before creating the zone fileAndrew Tridgell2010-02-171-2/+10
| | | | | This prevents bind from getting confused if it has a journal for the zone.
* s4-provision: fix permissions on generated DNS zone fileAndrew Tridgell2010-02-171-9/+11
| | | | | | | The zone file needs to be writeable by bind to allow for it to flush its journal on dynamic updates Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-drs: Function for accessing dsdb_load_partition_usn from PythonFernando J V da Silva2010-02-151-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>